I am using QMail with Plesk 10 on an Apache server.
Occasionally the mail queue stops processing emails - this most recently happenend when an email account got hacked and started sending hundreds of emails.
We did not find out about this until a client of ours contacted to say that their emails were not being recieved, so we checked the mail queue and lo and behold the service had stopped.
In future I would like to be notified when the mailqueue stops.
How can I set something up so the server will run a command whenever the mailqueue stops?