Does anyone know how can I setup email notifications every time my Mail Queue has over 25 items? I do have Monit & Munin installed in my ISPConfig. Thanks for your suggestions.
Sending email notifications to alert you that there are email problems.... doesn't always work. This is a little script we use to watch for large queue sizes, run from cron every 10 minutes. Usually that's hundreds of messages, but just change it to 25 if you wish, and edit the other variables for your email addr/smtp server. It uses msmtp (which needs installed) to bypass the local postfix environment in case you're having delivery problems. This would be fairly easy to integrate the variable settings into ispconfig panel for a nice built-in functionality, if you want to live with the msmtp dependency.