>It's been an exciting couple of weeks. Thanks to all that responsed to my >cries for help. As I suspected three of my customers had viruses that were >killing my mail server. ( One was infected during the hour it took to unload >the current virusscanner and upload a newer version on on his Exchange >server ) It seems to me that a growing number of entries in the queue is a >bad sign. So I have added the following as a cronjob every 15 minutes. I was >going to call it canary.sh ;-) > > >mailq | tail -1 | awk '$5 > 500'| mail -s "BACH is sick" [EMAIL PROTECTED]
when the incoming queue is growing, it means postfix can't keep up with the, duh, incoming. when the deferred queue is growing, means postfix is having trouble delivering. the find command is faster than mailq find /var/spool/postfix/deferred -maxdepth 5 -type f | wc -l find /var/spool/postfix/incoming -maxdepth 5 -type f | wc -l and you can use it on any postfix queue tree, like with you have different postfix for in and out, etc. Len
