relay icon indicating copy to clipboard operation
relay copied to clipboard

Count number of failed deliveries in mtail

Open link2xt opened this issue 9 months ago • 0 comments

Postfix smtp (journalctl -u [email protected] -t postfix/smtp) should log something with status=bounced every time a mail is rejected.

For example:

status=bounced (host mailchat.pl[95.216.211.166] said: 554 5.7.1 No valid DKIM signature found (in reply to end of DATA command))

Such lines can be counted in mtail to see if the number of rejection grows for some reason. This should help with monitoring if mails are getting rejected because of blocklists. Of course most servers just silently consume what they think is spam and return no error.

link2xt avatar Mar 18 '25 18:03 link2xt