[Tfug] when amavis is down mail from script does not go out

elemint at theriver.com elemint at theriver.com
Thu Jul 22 13:32:32 MST 2004


I have a scirpt that will check to see how many messages are in postfix 
que and when over 25 messages the script will then send out a message, 
the problem is when amavis is down (usually the reason that the postfix 
que is growing) postfix will not send out the message saying the que is 
growing.
Is it possible to send this message out with exim or some other way so 
the que is down the help message can go out.


Here is the script not sure if I have the > than 25 messages part 
correct from when I can tell this should work.
if echo `/utilities/checkque` > [25]
then
     cat /home/jimb/amavis.not.alive | mail [email]user at domain.com[/email]
fi


Here is /utilites/checkque:

cat /utilities/checkque
postqueue -p |grep ^[0-9] |wc -l







Jim




More information about the tfug mailing list