Code

check_smtp: Abort on missing/unexpected greeting
authorHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 8 Feb 2011 16:07:52 +0000 (17:07 +0100)
committerHolger Weiss <holger@zedat.fu-berlin.de>
Tue, 8 Feb 2011 16:07:52 +0000 (17:07 +0100)
commitd16f3fb0a9bb37cc1ce73ef14b5de83e907ef23c
tree9827dab60d4987749656a1d5a4c209f73a1bdab0
parent4611e41bc50d15275b316c6f21b688997a9c78c4
check_smtp: Abort on missing/unexpected greeting

Abort immediately if we don't receive a server greeting or if the
greeting doesn't contain the "--expect"ed string (by default: "220")
instead of blindly sending the EHLO/HELO line.

Spotted by Daniel Piddock, see Debian bug report #611914.
plugins/check_smtp.c