[Nagiosplug-devel] Recent patch to check_smtp.c

Subhendu Ghosh sghosh at sghosh.org
Thu Jun 13 12:57:02 CEST 2002


I guess one could add a regex to see if the initial 220 response matches 
some thing unique to Exchange..

Could you post a 220 response from an Exchange server - I am happily 
ignorant on that issue :)

Also if this is causing you problems right now - just change the 
SMTP_USE_DUMMYCMD to 0..

-sg


On Thu, 13 Jun 2002, Benjamin Madsen wrote:

> Running the recent patch against a Microsoft 2000 Server w/ Exchange SMTP 
> agent caused problems with the SMTP_DUMMYCMD check.  Apparently, Exchange's 
> SMTP agent looks for a '\r\n' as opposed to just a '\n'.  Since I am 
> unfamiliar with how to patch things, could somebody do that?
> 
> Also, I'm wondering what implications changing the SMTP_DUMMCMD to 
> "MAIL\r\n" would be... Any ideas?
> 
> Thanks,
> Ben Madsen
> IT Manager
> Wisp Communications
> http://www.wispcommunications.com
> 
> --- Original Message ---
> FROM: Karl Ewald
> DATE: 06/09/2002 12:12:36
> SUBJECT: [Nagiosplug-devel] patch for check_smtp.c
> Hi plugin developers,
> 
> sendmail will create a syslog entry when a session only issues a quit
> command, looking roughly like this:
> Jun  9 19:50:44 beaulieu.ixos.de sendmail[26790]: NOQUEUE: mucnm01.ixos.de
> [149.
> 235.38.10] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
> 
> This clobbers the syslog of every machine where SMTP is checked and can be
> prevented by issuing a command. Thze following patch does just that.
> It is a diff against the netsaint-plugins-1.2.9-4 plugins/check_smtp.c file
> (which I checked in locally as 1.1).
> Apologies if this change was already made in the latest release of the
> plugins, I haven't checked.
> 
> Have fun,
> 
> Karl Ewald
> Network Administrator, IT Services
> IXOS Software AG http://www.ixos.com/
> 
> 
> 
> _______________________________________________________________
> 
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
> 
> _______________________________________________
> Nagiosplug-devel mailing list
> Nagiosplug-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
> 





More information about the Devel mailing list