[Xymon] xymonnet additional capability -- pause

Michael T Pins mtpins at nndev.org
Sun May 30 17:46:50 CEST 2021


I wrote:

>On Sat, May 29, 2021 at 4:11 PM Shawn Heisey <hobbit at elyograg.org> wrote:

>> Over ten years ago, I asked on this list how I could get rid of the
>> "incorrect pipelining message" logged by postfix every time the smtp,
>> smtps, or submission tests are done.

>> https://lists.xymon.com/oldarchive/2010/11/msg00207.html

>> The fix that I claim worked (multiple send commands) was for a job I had
>> at the time.  Now I am have a personal mail server (that also runs
>> xymon) and that fix I mentioned so long ago is not working.

>> I tweaked the code to allow a "pause" action in protocols.cfg and after
>> modifying protocols.cfg to utilize it, I have eliminated the "incorrect
>> command pipelining" message in mail.log.  Here's the patch:

>[ code elided ]

>A much simpler method that works for me, talking to both postfix and
>sendmail, is simply adding an expect to the test in protocols.cfg:

>$ diff protocols.cfg.bak protocols.cfg
>70c70,72
><    send "mail\r\nquit\r\n"
>---
>>    send "mail\r\n
>>    expect "501"
>>    quit\r\n"

Or, if you want to be more "correct":

$ diff protocols.cfg.bak protocols.cfg
70c70,72
<    send "mail\r\nquit\r\n"
---
>    send "ehlo xymonnet\r\n
>    expect "501"
>    quit\r\n"
76c78,80
<    send "mail\r\nquit\r\n"
---
>    send "ehlo xymonnet\r\n
>    expect "501"
>    quit\r\n"



More information about the Xymon mailing list