aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in2
-rw-r--r--plugins/check_tcp.c10
2 files changed, 11 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 8a5b096a..e2c79afb 100644
--- a/configure.in
+++ b/configure.in
@@ -467,7 +467,7 @@ else
fi
if test "$FOUNDSSL" = "yes"; then
- check_tcp_ssl="check_simap check_spop check_jabber check_nntps"
+ check_tcp_ssl="check_simap check_spop check_jabber check_nntps check_ssmtp"
AC_SUBST(check_tcp_ssl)
AC_SUBST(SSLLIBS)
AC_DEFINE(HAVE_SSL,1,[Define if SSL libraries are found])
diff --git a/plugins/check_tcp.c b/plugins/check_tcp.c
index a21572d1..979dfad8 100644
--- a/plugins/check_tcp.c
+++ b/plugins/check_tcp.c
@@ -189,6 +189,16 @@ main (int argc, char **argv)
use_ssl=TRUE;
PORT=995;
}
+ else if (strstr(argv[0],"check_ssmtp")) {
+ progname = strdup ("check_ssmtp");
+ SERVICE = strdup ("SSMTP");
+ SEND=NULL;
+ EXPECT = strdup ("220");
+ QUIT = strdup ("QUIT\r\n");
+ PROTOCOL=TCP_PROTOCOL;
+ use_ssl=TRUE;
+ PORT=465;
+ }
else if (strstr(argv[0],"check_jabber")) {
progname = strdup("check_jabber");
SERVICE = strdup("JABBER");