Xymon Mailing List Archive search

Unexpected service response

list Henrik Størner
Fri, 10 Jun 2005 21:28:34 +0000 (UTC)
Message-Id: <d8d0m2$s66$user-e356fad9864f@xymon.invalid>

In <user-c76c3e4c706a@xymon.invalid> "Lowery, Michael" <user-89d72f0c2e3d@xymon.invalid> writes:

[smtp flipping between green and yellow]
I have changed the smtp test to the following, and I get green, no
flapping between Yellow and green anymore in the history files either.
Is the test just wrong by default, or should I be concerned that I had
to change it from the default?
[smtp]
  send "ehlo hostname.domainname.com\r\nquit\r\n"
  expect "220"
  options banner
  port 25
The original test was the same as the BB way of testing. That is
not to say it was "right", just to explain where I grabbed it from.

Techically, the original test - which just sends "mail" and then
"quit" - is improper; the "mail" command requires arguments, e.g.
   mail from: <user-ead0747203fa@xymon.invalid>
so it isn't too surprising that some servers complain about it.

I'm tempted to change it to

  [smtp]
    send "rset\r\nquit\r\n"
    expect "220"
    options banner
    port 25

and would like to hear if that also works with your setup. I think
the reason for the "mail" command first was to please sendmail, 
which has a habit of logging connections that dont send a "mail"
command (it generated a "NOQUEUE" entry in the log, but I dont know
if it still does that).


Regards,
Henrik