[Tfug] Creating a Script to see if amavis is alive
elemint at theriver.com
elemint at theriver.com
Wed Jul 21 11:14:52 MST 2004
I am trying to create a script to see if amavis is alive and upon
failure send email to someuser at 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 at 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 at domain.com>, relay=none, delay=7586, status=deferred (delivery
temporarily suspended: connect to 127.0.0.1[127.0.0.1]: Connection refused)
Jim
More information about the tfug
mailing list