Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

which tool (script, nagios plugin, whatever) can I use to monitor tge rate of outgoing mails on a postfix mail server? I would like that script to calculate the number of outgoing mails per minute or every ten minutes or so and alert me by e-mail if that rate exceeds a predefined number, thus detecting possible spam waves.

share|improve this question

closed as off-topic by masegaloeh, Andrew Schulman, Xavier Lucas, MadHatter, mdpc Jun 1 at 23:08

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

3 Answers 3

Munin has two plugins, postfix_mailstats and postfix_mailvolume, which should do what you want. It can also cope with thresholds, and if those are exceeded feed a notification through a NAGIOS server, or directly to anything else you care to plug into it.

share|improve this answer
Thanks for the answers. All helped me in on way or the other. In the end, I took the one core grep line for the munin plugin and wrapped my own alert script around it. – Michael Keller Oct 18 '12 at 19:53
Michael: glad we could help. Don't forget to accept your preferred answer by clicking on the "tick" outline next to it; it drives the SF reputation system for all concerned. – MadHatter Oct 19 '12 at 6:37

Cacti® - The Complete RRDTool-based Graphing Solution, can do that for you.

share|improve this answer

Check out qshape ; you should be able to awk sum params you want from qshape easily and send notice if needed. Periodic checks can be easily set up using cronjob.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.