<p>currently STARTTLS check does not work with -e if there's text like '220 hostname ESMTP*'. This is caused by SMTP answer from host. </p>
<p>Postfix answer: 220 2.0.0 Ready to start TLS<br>
Exchange 2010: 220 2.0.0 SMTP server ready</p>
<p>This fix checks against 220 and closes <a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1093" class="issue-link" title="check_smtp error when combining -S and -e [sf#3556040]">#1093</a></p>
<hr>
<h4>You can view, comment on, or merge this pull request online at:</h4>
<p> <a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1379'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1379</a></p>
<h4>Commit Summary</h4>
<ul>
<li>check_smtp.c: modified SSL check for use with -e</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1379/files#diff-0">plugins/check_smtp.c</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1379.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1379.patch</a></li>
<li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1379.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1379.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1379">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2Ynokox0EcYRQZHU8wnxMXOJTOHkks5o5g2-gaJpZM4GLHhc.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1379"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>