summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5d7f904)
raw | patch | inline | side by side (parent: 5d7f904)
author | M. Sean Finney <seanius@users.sourceforge.net> | |
Thu, 7 Apr 2005 04:33:33 +0000 (04:33 +0000) | ||
committer | M. Sean Finney <seanius@users.sourceforge.net> | |
Thu, 7 Apr 2005 04:33:33 +0000 (04:33 +0000) |
note i don't have an exchange server to test this against, but it
does what the requester mentioned (slightly cleaner than the patch
attached in the tracker).
it does, however, still work against my own postfix server :)
sean
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1158 f882894a-f735-0410-b71e-b25c423dba1c
does what the requester mentioned (slightly cleaner than the patch
attached in the tracker).
it does, however, still work against my own postfix server :)
sean
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1158 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_smtp.c | patch | blob | history |
diff --git a/plugins/check_smtp.c b/plugins/check_smtp.c
index 3bb6cc46484a4755c26aef6ac0afddce1272c8f6..f0bc7363b3434bba628f5903d259d3eb4e02c4c9 100644 (file)
--- a/plugins/check_smtp.c
+++ b/plugins/check_smtp.c
result = STATE_WARNING;
}
}
+
+ /* send the HELO command */
+ send(sd, helocmd, strlen(helocmd), 0);
+
+ /* allow for response to helo command to reach us */
+ read (sd, buffer, MAXBUF - 1);
+
#ifdef HAVE_SSL
if(use_ssl) {
/* send the STARTTLS command */
}
}
#endif
- /* send the HELO command */
-#ifdef HAVE_SSL
- if (use_ssl)
- SSL_write(ssl, helocmd, strlen(helocmd));
- else
-#endif
- send(sd, helocmd, strlen(helocmd), 0);
-
- /* allow for response to helo command to reach us */
- myrecv();
/* sendmail will syslog a "NOQUEUE" error if session does not attempt
* to do something useful. This can be prevented by giving a command