Hi there, On Sat, 26 May 2012 Paul Whelan wrote:
Thank you Joel, perhaps this needs to be done regularly - another one was stuck for over 2 years.
That's the trouble with Linux... :) root@mail:~ # uptime 12:28:19 up 95 days, 18:11, 11 users, load average: 0.00, 0.01, 0.05 On Sat, 26 May 2012 Joel Esler wrote:
Yes. I've cleared all the queues now, and will monitor closely going forward.
8<---------------------------------------------------------------------- root@mail:~$ >>> crontab -l | grep check_queue.sh 37 * * * * /etc/mail/check_queue.sh root@mail:~$ >>> cat /etc/mail/check_queue.sh #!/bin/bash # mail:/etc/mail/check_queue.sh [email protected] MESSAGE=/home/joel/check_queue_message QUEUE_DIRECTORY=/var/spool/clientmqueue QLIMIT=200 if [ `/bin/ls $QUEUE_DIRECTORY | /usr/bin/wc -l` -gt $QLIMIT ] ; then \ /usr/local/bin/mail -s "Check mail queue!" $EMAIL < $MESSAGE ; fi 8<---------------------------------------------------------------------- HTH -- 73, Ged. _______________________________________________ Help us build a comprehensive ClamAV guide: visit http://wiki.clamav.net http://www.clamav.net/support/ml
