[Nagiosplug-devel] Recent patch to check_smtp.c
Bertelson, Tom (CAP, CARD)
Tom.Bertelson at gecapital.com
Thu Jun 13 13:10:04 CEST 2002
The SMTP protocol says (RFC 821):
4.1.1. COMMAND SEMANTICS
The SMTP commands define the mail transfer or the mail system
function requested by the user. SMTP commands are character
strings terminated by <CRLF>. The command codes themselves are
alphabetic characters terminated by <SP> if parameters follow
and <CRLF> otherwise. The syntax of mailboxes must conform to
receiver site conventions. The SMTP commands are discussed
below. The SMTP replies are discussed in the Section 4.2.
I've never encountered a system that cannot handle \r\n.
--
Tom Bertelson "Any sufficient advanced technlogy
GE Card Services is indistinguishable from magic."
Tom.Bertelson at gecapital.com -- Arthur C. Clarke
-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
Sent: Thursday, June 13, 2002 3:56 PM
To: nagiosplug-devel at lists.sourceforge.net
Subject: Re: [Nagiosplug-devel] Recent patch to check_smtp.c
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
>
_______________________________________________________________
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