Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

3 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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