[hobbit] Unexpected service response

Lowery, Michael mlowery at alliedtechgroup.com
Fri Jun 10 23:56:43 CEST 2005


It returns green too.  The sendmail servers did log their disapproval,
but they do to the method I had used as well.  I added a "mail
from:emailaddress" to it, and that seems to make everyone happy.

 [smtp]
   send "ehlo
hostname.domainname.com\r\nmailfrom:hobbit at server.com\r\nquit\r\n"
   expect "220"
   options banner
   port 25



Michael Lowery

-----Original Message-----
From: Henrik Storner [mailto:henrik at hswn.dk] 
Sent: Friday, June 10, 2005 4:29 PM
To: hobbit at hswn.dk
Subject: Re: [hobbit] Unexpected service response

In <40534FFD21F8E9428DD8CCF2B60B09EC7C0C9D at atlitdc01.atg.local> "Lowery,
Michael" <mlowery at alliedtechgroup.com> 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: <some.email at address.net>
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


To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk






More information about the Xymon mailing list