currently STARTTLS check does not work with -e if there's text like '220 hostname ESMTP*'. This is caused by SMTP answer from host.
Postfix answer: 220 2.0.0 Ready to start TLS Exchange 2010: 220 2.0.0 SMTP server ready This fix checks against 220 and closes #1093 You can view, comment on, or merge this pull request online at: https://github.com/monitoring-plugins/monitoring-plugins/pull/1379 -- Commit Summary -- * check_smtp.c: modified SSL check for use with -e -- File Changes -- M plugins/check_smtp.c (2) -- Patch Links -- https://github.com/monitoring-plugins/monitoring-plugins/pull/1379.patch https://github.com/monitoring-plugins/monitoring-plugins/pull/1379.diff -- Reply to this email on GitHub: https://github.com/monitoring-plugins/monitoring-plugins/pull/1379