<div dir="ltr">Actually, it's probably not just the malformed MAIL command, but the lack of an EHLO or (for compatibility with older SMTP servers that are not ESMTP) HELO command, e.g. HELO myhostname<div><br></div><div>Do send strings allow variables?  e.g. can one do</div><div>send "HELO $MACHINEDOTS\r\nQUIT\r\n"</div><div>and have it expanded properly?</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 24, 2016 at 6:25 PM, John Thurston <span dir="ltr"><<a href="mailto:john.thurston@alaska.gov" target="_blank">john.thurston@alaska.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">The default test in protocols.cfg  is<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
[smtp]<br>
   send "mail\r\nquit\r\n"<br>
   expect "220"<br>
   options banner<br>
   port 25<br>
</blockquote>
<br>
All of my smtp servers accept the connection, return the 220 response, and return a 50X response due to the mal-formed "mail" command. The test result in Xymon is green because of the 220 response, but my smtp logs an error for each connection.<br>
<br>
I can replace the send-string with:<br>
   send "quit\r\n"<br>
and get better behavior, but I expect that I'll need to make this change every time I update Xymon. It does not appear that re-defining the smtp test in a later (included) .cfg file replaces the first definition.<br>
<br>
Two questions:<br>
Is there anyone for whom this test is _not_ filling up the error log on their smtp server?<br>
<br>
If I edit the native protocol.cfg, am I correct that I'll need to replace protocols.cfg with each code update?<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
-- <br>
   Do things because you should, not just because you can.<br>
<br>
John Thurston    <a href="tel:907-465-8591" value="+19074658591" target="_blank">907-465-8591</a><br>
<a href="mailto:John.Thurston@alaska.gov" target="_blank">John.Thurston@alaska.gov</a><br>
Enterprise Technology Services<br>
Department of Administration<br>
State of Alaska<br>
_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</font></span></blockquote></div><br></div>