Get notified when queue exceeds more than 500 emails
Hi, I am looking for a simple way to get notified each time the email queue gets full with 500 emails or more..
How can I achieve this?
I have installed Config server mail queue manager but it doesnt have this option.
-
Hi hermano, Didn't tried, but you can do some like this script: #!/bin/bash queue=`/usr/sbin/exim -bpc` if [ $queue -gt "500" ]; then mail -s "Queue alert!" some@email.com fi
0 -
Thanks will try It! I save it as .cgi ? 0 -
Hello, Its a shell script. So you can save as .sh, and add on your crontab, setting the time you will prefer to check the queue. Crontab examples 0 -
If you also have Config Server Firewall running, you can just set the LF_QUEUE_ALERT option. 0 -
If you also have Config Server Firewall running, you can just set the LF_QUEUE_ALERT option.
That"s exactly what I was looking for. Thanks a lot kdean.0 -
Hello, I am happy to see you were able to find a suitable solution. Thank you for updating us with the outcome. 0
Please sign in to leave a comment.
Comments
6 comments