Mails über Mailrelay einliefern

sebastian at debianfan.de sebastian at debianfan.de
Fr Mai 18 23:23:39 CEST 2018


Guten Abend,

ich hab das letzte mal 1999 sowas eingerichtet - ich bin etwas aus der 
Übung.

Ein Testsystem soll seine Mails nicht selbst senden sondern über ein 
Mailrelay arbeiten - d.h. Anmeldung per Login&Passwort und analog meinem 
Mailprogramm auf meinem Mobiltelefon seine Mails dort abkippen.

Das Relay funktioniert - das ist das gleiche über welches ich sonst auch 
normalerweise Mails versende - der Fehler liegt eher im Testsystem.


Postfix-Log Empfängerseite:


May 18 23:15:28 debian postfix/submission/smtpd[2355]: connect from 
sub.neuessystem.de[85.100.100.100]
May 18 23:15:28 debian postfix/submission/smtpd[2355]: setting up TLS 
connection from sub.neuessystem.de[85.100.100.100]
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
sub.neuessystem.de[85.100.100.100]: TLS cipher list 
"EECDH+AESGCM:AES+EECDH:+ECDHE-RSA-AES256-SHA:+ECDHE-RSA-AES128-SHA:RSA+AESGCM:RSA+AES:RSA+CAMELLIA:+AES256-SHA:+AES128-SHA:!EXPORT:!eNULL:!aNULL:!DES:!3DES:!RC4:!RC2:!MD5:!IDEA:!SEED:!EDH:!aECDH:!aECDSA:!kECDHe:!SRP:!PSK:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CDB3-SHA:!KRB5-DES:!CBC3-SHA:!aNULL:!eNULL:!EXPORT:!DES:!RC4:!MD5:!PSK:!aECDH:!EDH-DSS-DES-CBC3-SHA:!EDH-RSA-DES-CDB3-SHA:!KRB5-DES:!CBC3-SHA"
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:before/accept initialization
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: 
SSL_accept:unknown state
May 18 23:15:28 debian postfix/submission/smtpd[2355]: Anonymous TLS 
connection established from sub.neuessystem.de[85.100.100.100]: TLSv1.2 
with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)
May 18 23:15:30 debian postfix/submission/smtpd[2355]: warning: 
sub.neuessystem.de[85.100.100.100]: SASL PLAIN authentication failed:
May 18 23:15:30 debian postfix/submission/smtpd[2355]: disconnect from 
sub.neuessystem.de[85.100.100.100]


Postfix-Log Testserver:

May 18 23:15:30 test postfix/smtp[3481]: 2EF77260C6C: 
to=<sebastian at debianfan.de>, relay=mailrelay.de[xxx.xxx.xxx.xxx]:587, 
delay=7.3, delays=0.14/0.01/7.2/0, dsn=4.7.8, status=deferred (SASL 
authentication failed; server mailrelay[xxx.xxx.xxx.xxx] said: 535 5.7.8 
Error: authentication failed: )


main.cf vom Testserver:

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

append_dot_mydomain = no
readme_directory = /usr/share/doc/postfix

compatibility_level = 2

smtpd_tls_cert_file= /etc/letsencrypt/live/sub.neuessystem.de/fullchain.pem
smtpd_tls_key_file= /etc/letsencrypt/live/sub.neuessystem.de/privkey.pem

smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated 
defer_unauth_destination
myhostname = sub.neuessystem.de
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = $myhostname, sub.neuessystem.de, localhost
relayhost = mailrelay.de:587
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces =  loopback-only
inet_protocols = all
html_directory = /usr/share/doc/postfix/html

smtp_sasl_password_maps=hash:/etc/postfix/relay_password
smtp_sasl_auth_enable=yes
smtp_sasl_security_options =


smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 7200s

smtp_use_tls = yes
smtp_tls_loglevel = 1
smtp_tls_note_starttls_offer = yes
smtp_tls_security_level = may
smtp_tls_cert_file= /etc/letsencrypt/live/sub.neuessystem.de/fullchain.pem
smtp_tls_key_file= /etc/letsencrypt/live/sub.neuessystem.de/privkey.pem
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache


Ich vermute den Fehler in der main.cf

gruss

Sebastian


Mehr Informationen über die Mailingliste Postfixbuch-users