Przeglądaj źródła

Valid MAIL command

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@85 f882894a-f735-0410-b71e-b25c423dba1c
Subhendu Ghosh 23 lat temu
rodzic
commit
6b4b815849
1 zmienionych plików z 4 dodań i 1 usunięć
  1. 4 1
      plugins/check_smtp.c

+ 4 - 1
plugins/check_smtp.c

@@ -49,8 +49,11 @@
  * to do something useful. This can be prevented by giving a command
  * 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\r\n"
+#define SMTP_DUMMYCMD  "MAIL FROM:<>\r\n"
 #define SMTP_USE_DUMMYCMD 1
 #define SMTP_QUIT	"QUIT\r\n"