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

Postfix sendet keine Mails an externe Email-Adressen

Rolando

Newbie
Hallo.

Habe das Problem, das ich von meinem Mailclient keine Emails an externe Adressen senden kann. Email-Empfang funktioniert, genauso das Senden an interne Adressen.

Die Fehlermeldung in /var/log/mail:
postfix/smtpd[16201]: NOQUEUE: reject: RCPT from p54993DA1.dip0.t-ipconnect.de[84.153.61.161]: 554 <rolando@externe_domain.net>: Relay access denied; from=<r.reitberger@server_domain.com> to=<rolando@externe_domain.net> proto=ESMTP helo=<inspiron>

Hier die /etc/postfix/main.cf:

readme_directory = /usr/share/doc/packages/postfix/README_FILES
inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/confixx_virtualUsers, hash:/etc/postfix/confixx_localDomains
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
mydomain = server_domain.de
myhostname = host.server_domain.de
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = no
mydestination = $myhostname, localhost.$mydomain
defer_transports =
disable_dns_lookups = no
relayhost =
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,permit_sasl_authenticated,reject_unauth_destination,check_relay_domains
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no

smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000

smtpd_reject_unlisted_recipient = no
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
# smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd

smtpd_tls_auth_only = no
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
mynetworks_style = host
home_mailbox = Maildir/

Wer weis die Lösung???

Danke
Rolando
 

ceegee

Hacker
Hallo,

hast du die smtpd_recipient_restrictions selbst erstellt bzw. geändert? Die Restriktion permit_sasl_authenticated macht nämlich nur dann Sinn, wenn du auch smtpd_sasl_auth_enable auf yes gesetzt hast. Das hast du aber nicht.

Der Server erwartet also das du dich authentifizierst, auf der anderen Seite macht er jedoch keine Authentifizierung, also ein Widerspruch in sich.

Gruß,

Christian
 
OP
R

Rolando

Newbie
Die smtpd_recipient_restrictions hab ich verändert, weil ich eigentlich SASL Authentifizierung einrichten wollte.
Wenn ich permit_sasl_authenticated weglasse funktionierts auch nicht, gleiche Fehlermeldung.

Und beim Senden an interne Mailadressen steht ausserdem die Meldung
postfix/smtpd[17461]: warning: support for restriction "check_relay_domains" will be removed from Postfix; use "reject_unauth_destination" instead

im Log.
 

ceegee

Hacker
okay, hatte das check_relay_domains heute morgen übersehen, das kannst du weglassen, denn die funktion davon steckt schon in reject_unauth_destination mit drin.

richte dir smtp-auth mal fertig ein, dann kann man weiter sehen.
 
Oben