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: Craig White
Date:  
To: plug-discuss
Subject: Re: Creating a Script to see if amavis is alive
On Wed, 2004-07-21 at 13:37, Kevin Brown wrote:
> Craig White wrote:
>
> > On Wed, 2004-07-21 at 13:27, wrote:
> >
> >>Since it is amavis that is having a problem what about setting up a
> >>script to "telnet 127.0.0.1 10024" and if it fails then send emial to
> >>user@..,.
> >>
> >>This is how it looks when amavis is runnning
> >>
> >>telnet 127.0.0.1 10024
> >>Trying 127.0.0.1...
> >>Connected to 127.0.0.1.
> >>Escape character is '^]'.
> >>220 [127.0.0.1] ESMTP amavisd-new service ready
> >>
> >>This is how it looks when amavis is down
> >> telnet 127.0.0.1 10024
> >>Trying 127.0.0.1...
> >>telnet: Unable to connect to remote host: Connection refused
> >
> > ---
> > OK - I understand that.
> >
> > but if new mail comes in, doesn't postfix hold it in the queue until
> > amavis is ready? Does mail (postfix) refuse mail?
> >
> > Also, how does one 'script' a telnet login, capture standard out and
> > then logout? That's what I cannot fathom.
>
> perl or expect languages...

----
one other thing that I saw with expect...if you open a telnet connection
to the amavis port, it uses up 1 of the 4 possible threads. If it
doesn't disconnect, it will use up another one at loop time. I've seen
it used with ftp and when things went wrong, there were gobs of ftp
connections to the server...sort of like a self-generated DOS ;-)

Craig

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