<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: <strong>220 2.0.0 Ready to start TLS</strong><br>
Exchange 2010: <strong>220 2.0.0 SMTP server ready</strong></p>
<p>This fix introduces a constant for '220 2.0.0' which is used to check if TLS connection is ok</p>
<p>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/1378'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1378</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/1378/files#diff-0">NEWS</a>
(4)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1378/files#diff-1">plugins-scripts/Makefile.am</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1378/files#diff-2">plugins/check_http.c</a>
(22)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1378/files#diff-3">plugins/check_smtp.c</a>
(14)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1378/files#diff-4">plugins/netutils.h</a>
(10)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/monitoring-plugins/monitoring-plugins/pull/1378/files#diff-5">plugins/sslutils.c</a>
(81)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1378.patch'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1378.patch</a></li>
<li><a href='https://github.com/monitoring-plugins/monitoring-plugins/pull/1378.diff'>https://github.com/monitoring-plugins/monitoring-plugins/pull/1378.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/1378">Reply to this email on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AFQl2eHiCY6giHZ7QbSTAkjJ2eXGMbtIks5o5fpugaJpZM4GLFuL.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/1378"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>