Everything I've found about monitoring postfix has just been monitoring the queue. I want to monitor all emails sent, so I set out to do it!
I wrote a (longer winded than I expected) post here with instructions:
The gist: since postfix doesn't expose statistics about total messages sent, I'm pulling them from log files,and reporting it to zabbix. I wrote a perl script to check the last X minutes of your log file, and report back the number of message sent. Its not 100% accurate, because its relying on log files, but its a lot better than nothing
I haven't found any other published solutions for doing this, so it seemed like I should post it up for others.
Lemme know if its helpful.
I wrote a (longer winded than I expected) post here with instructions:
The gist: since postfix doesn't expose statistics about total messages sent, I'm pulling them from log files,and reporting it to zabbix. I wrote a perl script to check the last X minutes of your log file, and report back the number of message sent. Its not 100% accurate, because its relying on log files, but its a lot better than nothing
I haven't found any other published solutions for doing this, so it seemed like I should post it up for others. Lemme know if its helpful.