[Nagiosplug-devel] bugfix: check_smtp on MS exchange 2K servers

Reinier F. Kleipool reinierk at utelisys.com
Sun Sep 1 03:29:02 CEST 2002


Hello developers,

  I had some trouble with check_smtp against a Microsoft Exchnage 2000
server. The plugin checked ALL my mailservers, except MS ex2K. I solved this
by changing the SMTP_DUMMYCMD to the following definition:
#define SMTP_DUMMYCMD  "HELO nagios\r\nMAIL from:nagios at localhost\r\n"
It turn out that *^%^# exchange 2K needs a valid HELO and MAIL command AND
the \r 's to reply. If you don't, the read from the socket waits for ever,
and times out. this returns a critical to nagios. This change does not break
the checks with my other mailservers: sendmail and MS exchange 5.5..

Hope this helps....

Kind regards,
Reinier Kleipool





More information about the Devel mailing list