Hallo,
ich habe in meinem Heimnetz ein paar Server zu stehen. Ich habe einen Mailserver mit Postfix eingerichtet, der Mails ins Internet über meinen Provider per SASL-Auth senden kann. Das funktioniert soweit auch wie gewünscht. Nun habe ich ein paar andere Applikationsserver, die wiederum Postfix nutzen. Diese sollen die Mails an meinen Mailserver ohne Authentifizierung senden, welcher dann die Mail an meinen Provider weiterleitet. Das funktioniert nicht. Die Mail bleibt zwischen Mailserver und Provider mit folgender Fehlermeldung hängen:
1 | 7BA92141390: to=<destinationaddress@destinationdomain.de>, relay=Providerdomain[x.x.x.x]:25, delay=0.48, delays=0.03/0.01/0.38/0.06, dsn=5.0.0, status=bounced (host Providerdomain[x.x.x.x] said: 550-Verification failed for <Applicationuser@Applicationserver> 550-The mail server could not deliver mail to Applicationuser@Applicationserver. The account or domain may not exist, they may be blacklisted, or missing the proper dns entries. 550 Sender verify failed (in reply to RCPT TO command)) |
Aus irgend einem Grund scheint die Zieladresse mit der "Adresse" des Users auf dem Applikations ersetzt worden zu sein. Was muss ich ändern, damit das funktioniert wie vom Mailserver direkt?
Hier die Konfig des Mailservers:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_security_level=may
smtp_tls_CApath=/etc/ssl/certs
smtp_tls_security_level=may
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = svmail.jensz.local
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = ServerFQDN, $myhostname, Servername, localhost.localdomain, localhost
relayhost = Providermailserver
mynetworks = 192.168.1.0/24
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_password
sender_canonical_maps = hash:/etc/postfix/sender_canonical
|
Und das die Konfig vom Applikationsserver:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2
# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = ApplikationsserverFQDN
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, Applikationsservername, localhost.localdomain, localhost
relayhost = MailserverFQDN
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
|
Vielen Dank für eure Mühen und Hilfe.
MfG
Jens