[Nagiosplug-checkins] CVS: nagiosplug/plugins check_smtp.c,1.4,1.5

Subhendu Ghosh sghosh at users.sourceforge.net
Sun Sep 1 09:19:23 CEST 2002


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory usw-pr-cvs1:/tmp/cvs-serv2388

Modified Files:
	check_smtp.c 
Log Message:
Valid MAIL command

Index: check_smtp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_smtp.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** check_smtp.c	14 Aug 2002 19:04:56 -0000	1.4
--- check_smtp.c	1 Sep 2002 16:18:29 -0000	1.5
***************
*** 50,55 ****
   * even if syntax is illegal (MAIL requires a FROM:<...> argument)
   * You can disable sending DUMMYCMD by undefining SMTP_USE_DUMMYCMD.
   */
! #define SMTP_DUMMYCMD  "MAIL\r\n"
  #define SMTP_USE_DUMMYCMD 1
  #define SMTP_QUIT	"QUIT\r\n"
--- 50,58 ----
   * even if syntax is illegal (MAIL requires a FROM:<...> argument)
   * You can disable sending DUMMYCMD by undefining SMTP_USE_DUMMYCMD.
+  *
+  * According to rfc821 you can include a null reversepath in the from command
+  * - but a log message is generated on the smtp server.
   */
! #define SMTP_DUMMYCMD  "MAIL FROM:<>\r\n"
  #define SMTP_USE_DUMMYCMD 1
  #define SMTP_QUIT	"QUIT\r\n"





More information about the Commits mailing list