Hallo,
ich habe postfix als Smarthost eingerichtet. D. h. er stellt
* externe Mails an
mail.gmx.net und
* interne Mails an den lokalen dovecot
zu.
Die externen Mails werden in analog der Einstellung
sender_canonical_maps = hash:/etc/postfix/sender_canonical
in der /etc/postfix/
main.cf von internem Absender (tony@localsmarthost)
auf korrektem externen Absender (
tony...@gmx.de) umgeschrieben. Nur
dann werden sie von
mail.gmx.net angenommen.
Leider kommt es vor, dass Mails an externe Mailadressen versandt werden,
deren Absender nicht in der /etc/postfix/sender_canonical enthalten ist.
In der /var/log/syslog erscheint dann eine Fehlermeldung (...
Authentication required - sender non-delivery notification - removed).
Die somit in der Auslieferung gescheiterten E-Mails "verschwinden"
vollständig. Es wird leider kein Mail an "Postmaster" ausgelöst, wovon
ich davon Kenntnis bekäme und die /etc/postfix/sender_canonical
erweitern könnte.
Wie kann ich denn einstellen, dass mich postmaster über die nicht
erfolgte Zustellung per E-Mail informiert und ich nicht manuell die
Log-Files lesen muss?
Vielen Dank!
Tony
P. S.
/var/log/syslog
Jun 11 08:46:55 localsmarthost postfix/smtpd[17940]: connect from
nextcloud[192.168.3.201]
Jun 11 08:46:55 localsmarthost postfix/smtpd[17940]: 29697AAAC:
client=nextcloud[192.168.3.201]
Jun 11 08:46:55 localsmarthost postfix/cleanup[17906]: 29697AAAC:
message-id=<202006110646...@nextcloud.localdomain>
Jun 11 08:46:55 localsmarthost postfix/smtpd[17940]: disconnect from
nextcloud[192.168.3.201] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Jun 11 08:46:55 localsmarthost postfix/qmgr[614]: 29697AAAC:
from=<ro...@nextcloud.duck>, size=602, nrcpt=1 (queue active)
Jun 11 08:46:55 localsmarthost postfix/smtp[17943]: 29697AAAC:
to=<
tony...@gmx.de>, relay=
mail.gmx.net[212.227.17.190]:587,
delay=0.3, delays=0.03/0.01/0.24/0.02, dsn=5.0.0, status=bounced (host
mail.gmx.net[212.227.17.190] said: 530 Authentication required (in reply
to MAIL FROM command))
Jun 11 08:46:55 localsmarthost postfix/cleanup[17906]: 83386AAAD:
message-id=<202006110646...@localsmarthost.localdomain>
Jun 11 08:46:55 localsmarthost postfix/bounce[17945]: 29697AAAC: sender
non-delivery notification: 83386AAAD
Jun 11 08:46:55 localsmarthost postfix/qmgr[614]: 83386AAAD: from=<>,
size=2531, nrcpt=1 (queue active)
Jun 11 08:46:55 localsmarthost postfix/qmgr[614]: 29697AAAC: removed
Jun 11 08:46:55 localsmarthost postfix/smtp[17943]: 83386AAAD:
to=<ro...@nextcloud.duck>, relay=
mail.gmx.net[212.227.17.190]:587,
delay=0.27, delays=0.01/0/0.23/0.02, dsn=5.0.0, status=bounced (host
mail.gmx.net[212.227.17.190] said: 530 Authentication required (in reply
to MAIL FROM command))
Jun 11 08:46:55 localsmarthost postfix/qmgr[614]: 83386AAAD: removed