Creating a Script to see if amavis is alive

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: elemint@theriver.com
Date:  
To: PLUG
Subject: Creating a Script to see if amavis is alive
I am trying to create a script to see if amavis is alive and upon
failure send email to

This is what I have so far.


cat amavis.check
grep Connection /var/log/mail.log |grep refused

if success
then cat /amavis.not.alive | mail [email][/email]


The thought is that when amavis is failing there are messages like the
one below in mail.log

"Jul 20 11:59:09 mail postfix/qmgr[5764]: 25AE16F8DF:
to=<>, relay=none, delay=7586, status=deferred (delivery
temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)


Jim


---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss