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:user-31f70260d2a9@xymon.invalid\r\nquit\r\n"
expect "220"
options banner
port 25
Michael Lowery
-----Original Message-----
From: Henrik Storner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Friday, June 10, 2005 4:29 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Unexpected service response
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