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

Subhendu Ghosh sghosh at sghosh.org
Sun Sep 1 09:08:16 CEST 2002


On Sun, 1 Sep 2002, Subhendu Ghosh wrote:

> > On Sun, 1 Sep 2002, Reinier F. Kleipool wrote:
> > 
> > > 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
> > > 
> > 
> 
> Hi Reinier
> 
> The current CVS version does just what you have said, but slightly 
> differently.
> 
> SMTP_HELO is concatenated with the local hostname and "\r\n" to create the 
> HELO statement
> 
> 
> For the MAIL command - rfc 821 allows the presence of a NULL reverse path 
> (see ex 7) - does Exchange 2k complain about a null reverse path?
> 
> SMTP_DUMMYCMD = "MAIL FROM:<> \r\n"


Using a FROM argument in the MAIL command will create a log entry (at 
least in sendlmail.


-- 
-sg





More information about the Devel mailing list