Postfix mail queue monitoring
Posted on 2013-11-13
I have encountered an issue where my Postfix was compromised or better misused. It resulted in having many thousands of messages in my mail queue waiting to be send. It took me 2 days to notice it.
So I wonder if any of you know if a good and reliable script or tool that can warn me if the queue grows fast or goes over a specified number of mails. Maybe also if the emails send per minute or hour goes over a specified rate so that i can see if something needs attention.
The attack I had now was that someone managed to upload a php script using magento shop that is installed on my server and then used this to send 50k messages. It actually managed to send more than 30K before I noticed.
Any advice and suggestions on usable scripts or software is very welcome.