Creating a Script to see if amavis is alive

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: elemint@theriver.com
日付:  
To: PLUG
題目: 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