Re: 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: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: Creating a Script to see if amavis is alive
On Wed, 21 Jul 2004, Craig White wrote:

> but if new mail comes in, doesn't postfix hold it in the queue until
> amavis is ready? Does mail (postfix) refuse mail?


Depends on how postfix is configured.

> Also, how does one 'script' a telnet login, capture standard out and
> then logout? That's what I cannot fathom.


(echo quit ; sleep 3) | telnet 127.0.0.1 10024 2>&1 |       grep -q
'telnet:.*Connection refused' && echo "Not open"



I did something like this long ago ...
http://www.reedmedia.net/software/check_services/

Jeremy C. Reed

                 BSD News, BSD tutorials, BSD links
                http://www.bsdnewsletter.com/






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