Monitor queue sizes and put queue into hold when user definable threshold is exceeded.
To help detect spamming, when a queue size hits a user definable limit, the queue is automatically put into hold and the admin is notified (but cannot just queue an email notice to the admin as it could be in the queue that was just put into hold). If WMI performance counter monitoring could do this, is there any documentation? Are there queue hold semaphores?
Hello Jerry,
Thank you for submitting your idea to monitor the outbound queue and freeze it when a threshold is exceeded. There are a couple of options that are already possible. MDaemon includes a feature called Account HiJack detection that is designed to detect when an account is being used to send spam. This doesn’t monitor the remote queue, but it does monitor the emails being sent by a user account and if the user sends more than X messages in Y minutes, the account is frozen and the admin is alerted.
A second option would be to write a script that monitors the number of messages in the number of messages in the queue, which can be done with performance counters, and then use a queue.sem file to freeze the queue when the threshold is exceeded.
Thanks,
Arron