<p>It seems that this issue is active, i've done some debugging and noticed that postfix answers with:<br>
postfix 2.9.6-1~12.04.3 @ Ubuntu 12.04 <code>220 2.0.0 Ready to start TLS</code><br>
Exchange 2010 @ Windows 2008R2 <code>220 2.0.0 SMTP server ready</code></p>

<p>In line 234, check_smtp matches against server_expect (-e) which will never succeed, so we could go for "220 2.0.0", defined as a constant. See patch in PR <a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1378" class="issue-link" title="check_smtp.c: modified SSL check for use with -e">#1378</a></p>

<p>Addition: maybe the test could be improved, as it only expects for "220" which is returned, but does not test any following string</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br><a href="https://github.com/monitoring-plugins/monitoring-plugins/issues/1093#issuecomment-146426579">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2UINmaqLQkVU27lInhg0xnFvaiWLks5o5fqqgaJpZM4BB6W0.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/issues/1093#issuecomment-146426579"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>