Yeah, it basically seems that there are no native capabilities in Postfix for 
what I’m looking for, and so everyone pretty much needs to roll whatever ad hoc 
log monitoring they want. It’s a challenge because of the diversity of 
responses that MTAs can respond when there are problems with your servers. 
Error codes are helpful but not used in sufficiently standardized ways based on 
what I’ve seen in our logs.

From: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> On 
Behalf Of IL Ka
Sent: Wednesday, May 12, 2021 3:05 PM
To: postfix-users@postfix.org
Subject: Re: Monitoring logs for blocks and deferrals


Postfix have any native capabilities good for detecting these issues and acting 
on them, or would I just need to do some kind of checks on the pflogsumm output 
each day? Obviously the sooner I can catch these messages and act on them, the 
better, so the more realtime I can do this, the better.
Random ideas:

* Configure your syslog/rsyslog to copy logs to the pipe. Write a simple script 
that parses "status=" and sends you a message.
There are alot of parsers like 
https://metacpan.org/pod/Mail::Log::Parse::Postfix

* Use your network monitor tool if you have any.
For Zabbix you could use https://github.com/aadz/mlogtail
Zabbix can send you email/sms/slack message/what ever when "bounced" (or some 
other counter) increased


Reply via email to