summaryrefslogtreecommitdiffstats
path: root/plugins/check_smtp.c
diff options
context:
space:
mode:
authorSubhendu Ghosh <sghosh@users.sourceforge.net>2002-09-01 16:18:29 (GMT)
committerSubhendu Ghosh <sghosh@users.sourceforge.net>2002-09-01 16:18:29 (GMT)
commit6b4b815849afa945080834ec50f78c067783f53f (patch)
treed64886bbac125a61fc832890960f6f80a5cd0e48 /plugins/check_smtp.c
parentbde43533dae752f74e0c1b81b6f84d49d2286796 (diff)
downloadmonitoring-plugins-6b4b815849afa945080834ec50f78c067783f53f.tar.gz
Valid MAIL command
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@85 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_smtp.c')
-rw-r--r--plugins/check_smtp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 2d2e289..f96db49 100644
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
@@ -49,8 +49,11 @@
49 * to do something useful. This can be prevented by giving a command 49 * to do something useful. This can be prevented by giving a command
50 * even if syntax is illegal (MAIL requires a FROM:<...> argument) 50 * even if syntax is illegal (MAIL requires a FROM:<...> argument)
51 * You can disable sending DUMMYCMD by undefining SMTP_USE_DUMMYCMD. 51 * You can disable sending DUMMYCMD by undefining SMTP_USE_DUMMYCMD.
52 *
53 * According to rfc821 you can include a null reversepath in the from command
54 * - but a log message is generated on the smtp server.
52 */ 55 */
53#define SMTP_DUMMYCMD "MAIL\r\n" 56#define SMTP_DUMMYCMD "MAIL FROM:<>\r\n"
54#define SMTP_USE_DUMMYCMD 1 57#define SMTP_USE_DUMMYCMD 1
55#define SMTP_QUIT "QUIT\r\n" 58#define SMTP_QUIT "QUIT\r\n"
56 59