Ralf Hildebrandt via Postfix-users: > I have several mails in my queue which exposed the same error: > "status=deferred (bounce failed)" > > Logs for 4dQkMb1TPYz2xXY: > > Dec 9 17:10:03 mx01 postfix/smtpd[2535872]: 4dQkMb1TPYz2xXY: > client=mail-qv1-xf45.google.com[2607:f8b0:4864:20::f45] > Dec 9 17:10:03 mx01 postfix/cleanup[2519341]: 4dQkMb1TPYz2xXY: > message-id=<ca+b+mrzkvu8pk7up1-w0xgs6xffsotsehwau9lbb9iuugh6...@mail.gmail.com> > Dec 9 17:10:03 mx01 postfix/qmgr[2494891]: 4dQkMb1TPYz2xXY: > from=<[email protected]>, > size=20709, nrcpt=1 (queue active) > Dec 9 17:11:19 mx01 postfix/smtp[2530437]: 4dQkMb1TPYz2xXY: > to=<[email protected]>, > relay=mailgate4.oneofmydomains.de[195.50.145.12]:25, delay=77, > delays=0.27/76/0.19/0.05, dsn=5.1.1, status=bounced (host > mailgate4.oneofmydomains.de[195.50.145.12] said: 550 5.1.1 > <[email protected]>: Recipient address rejected: undeliverable > address: host 192.168.180.5[192.168.180.5] said: 550 Address unknown (in > reply to RCPT TO command) (in reply to RCPT TO command))
So far, evertything is normal: - smtpd (SMTP server) accepts a message with a non-existent recipient, - cleanup queues the message envelope and content in a message file $queue_directory/incoming/4dQkMb1TPYz2xXY, - qmgr schedules it for delivery, - smtp (SMTP client) receives a 550 response and delegates further handling to a bounce daemon, - the bounce daemon (invisible) appends some info to a bounce logfile $queue_directory/bounce/4dQkMb1TPYz2xXY and reports success to smtp (SMTP client), - smtp (SMTP client) logs (status=bounced) that it has delegated further handling to a bounce daemon. > Dec 9 17:11:20 mx01 postfix/qmgr[2494891]: 4dQkMb1TPYz2xXY: status=deferred > (bounce failed) Here things go wrong: - As expected, the queue manaager asks a bounce daaemon to generate a bounce message for all rejected recipients in message file 4dQkMb1TPYz2xXY. - FOR SOME REASON THE BOUNCE DAEMON DOES NOT REPORT A SUCCESS STATUS. - The queue manager logs that the bounce could not be sent. > Dec 9 17:19:17 mx01 postfix/qmgr[2494891]: 4dQkMb1TPYz2xXY: > from=<[email protected]>, > size=20709, nrcpt=1 (queue active) > Dec 9 17:19:17 mx01 postfix/qmgr[2494891]: 4dQkMb1TPYz2xXY: status=deferred > (bounce failed) The queue manager tries again. > Dec 9 17:29:17 mx01 postfix/qmgr[2494891]: 4dQkMb1TPYz2xXY: > from=<[email protected]>, > size=20709, nrcpt=1 (queue active) > Dec 9 17:29:17 mx01 postfix/qmgr[2494891]: 4dQkMb1TPYz2xXY: status=deferred > (bounce failed) And so on. Reasons why the bounce daemon may fail: - The qmgr is unable to connect to the bounce service. Errors may be logged in verbose mode, not sure what is logged non-verbosely. - The bounce daemon is unable to process the bounce log file $queue_directory/bounce/4dQkMb1TPYz2xXY. It has to be really bad for the bounce daemon to give up, and it should complain in logging. - The bounce daemon is unable to connect to a cleanup daemon According to source code, post_mail_fopen_nowait() logs a warning if it is unable to connect. connect to pubic/cleanup: $reason - The cleanup daemon has a problem. It should complain in logging. When all goes as normal, the bounce daemon woll log 4dQkMb1TPYz2xXY: sender non-delivery notification: NEW-QUEUEID You don't have that. > These mails are all spam anyway, but I wonder WHY postfix would report > "bounce failed". > Should I add "-v" to the "bounce" entry in master.cf? Yup, that could reveal at what point the bounce daemon has given up, and whether the queue mamager can reach it. However that logging will not always contain the queuee ID. IMPORTANT: can you check for SeLinux errors. > There's no "(error|warning|fatal)" log entries in that period. That is consistent with the absence of bounce daemon error logging. > This is Postfix 3.5.25 Any particular distro? I got some questions a while ago for a historical Postfix version. Wietse > > -- > Ralf Hildebrandt > Gesch?ftsbereich IT | Abteilung Netz | Netzwerk-Administration > Invalidenstra?e 120/121 | D-10115 Berlin > Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 > [email protected] | https://www.charite.de > > _______________________________________________ > Postfix-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > _______________________________________________ Postfix-users mailing list -- [email protected] To unsubscribe send an email to [email protected]
