• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

Postfix: said: 550 relay not permitted (in reply to RCPT TO.

Status
Für weitere Antworten geschlossen.

j4flou

Newbie
Hallo zusammen,

nach einem Tag Arbeit stecke ich leider an einer bestimmten Stelle fest. Zur Zeit bin ich mit der Konfiguration von Postfix beschäftigt. Ich möchte mit Hilfe von Postfix meine Mails über meinen E-Mail Provider senden. Wenn ich eine E-Mail mit Postfix an eine externe Adresse senden möchte erhalte ich in den Logfiles eine Fehlermeldung die besagt:

Jun 15 15:58:56 linbox postfix/smtp[4154]: 4AFA971F7: to=<Brother.Lou@gmx.de>, relay=mail.moserandreas.de[80.237.130.34], delay=42, status=bounced (host mail.moserandreas.de[80.237.130.34] said: 550 relay not permitted (in reply to RCPT TO command))
Jun 15 15:58:56 linbox postfix/cleanup[4152]: 35AD6BD89: message-id=<20040615135856.35AD6BD89@linbox.Netgame>
Jun 15 15:58:56 linbox postfix/qmgr[4146]: 35AD6BD89: from=<>, size=2133, nrcpt=1 (queue active)
Jun 15 15:58:56 linbox postfix/smtp[4154]: 35AD6BD89: to=<info@moserandreas.de>, relay=mail.moserandreas.de[80.237.130.34], delay=0, status=sent (250 OK id=1BaEAc-0001JQ-Iz)

Ich denke dass ich in dem Falle nicht authorisiert bin E-Mails über den Relayhost mail.moserandreas.de zu versenden. Wie kann ich postfix beibringen, dass die Mails ordnungsgemäß dort ankommen?

Zu debug Zwecken habe ich hier den Auszu der main.cf angefügt. Ich arbeite mit der SuSE Linux 8.2

Auszug aus der main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
mail_owner = postfix
default_privs = nobody
myorigin = linbox.Netgame
unknown_local_recipient_reject_code = 450
mynetworks = 192.168.1.0/24, 127.0.0.0/8
alias_database = hash:/etc/aliases
luser_relay = $root@linbox.Netgame
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/packages/postfix/samples
readme_directory = /usr/share/doc/packages/postfix/README_FILES
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
myhostname = linbox.Netgame
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = moserandreas.de
mydestination = $myhostname, localhost.$mydomain
disable_dns_lookups = yes
relayhost = [mail.moserandreas.de]
content_filter =
mailbox_command = /usr/lib/cyrus/bin/deliver
mailbox_transport = cyrus
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination

smtp_sasl_auth_enable = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = linbox.Netgame
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_application_name = smtpd
smtpd_use_tls = no

alias_maps = hash:/etc/aliases
mailbox_size_limit = 51200000
message_size_limit = 10240000
mail_name = Postfix Mein Mailserver
default_transport = smtp


Vielen Dank für Eure Mühe. Ich bin an dieser Stelle wirklich am verzweifeln.

Gruß j4flou
 

stka

Guru
Must du dich zum Versenden von Mails bei deinem Server mit einem Passwort autorisieren? Bei meinem ist das so hier mal ein Auszug aus meiner main.cf


relayhost = smtp.1und1.com
content_filter = vscan:
mailbox_command =
mailbox_transport =
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = yes
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000
smtp_sasl_security_options =
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd


Die Datei sasl_passwd ist folgendermaßen aufgegebaut:

smt.server.de user:passwort
 
OP
J

j4flou

Newbie
Hi, die letzte Zeile hat das Rätsel gelöst :)

ich habe in der sasl_passwd folgendes angegeben:
moserandreas.de <username>:<password>

das habe ich jetzt in
mail.moserandreas.de <username>:<password>
geändert und schon funktioniert es.

Thx a lot.
Gruß J4Flou
 
Status
Für weitere Antworten geschlossen.
Oben