I am trying to create a script to see if amavis is alive and upon
failure send email to
someuser@domain.com
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]
user@somedomain.com[/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=<
user@domain.com>, 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 -
PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss