Craig White wrote:
>On Wed, 2004-07-21 at 13:37, Kevin Brown wrote:
>
>
>>Craig White wrote:
>>
>>
>>
>>>On Wed, 2004-07-21 at 13:27, elemint@theriver.com 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 - 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
>
>
>
What about something that checks the postfix que with somehting like
this "postqueue -p |grep ^[0-9] |wc -l" and if the que gets higher than
say 25 messages in the que then kicks an email about a failure.
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