<html><head></head><body><div>Excellent, thank you again.</div><div><br></div><div>The openssl command I have tried (that used to work with Dovecot 2.2) is:</div><div><span class="Apple-tab-span" style="white-space:pre">  </span><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;"><b>openssl s_client -connect mail.privustech.com:143</b></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;">I have also tried</span></div><div>        <span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;"><b>openssl s_client -connect mail.privustech.com:143 -servername mail.privustech.com</b></span></div><div><span style="color: rgb(0, 0, 0); font-family: monospace; background-color: rgb(255, 255, 255);">I've posted</span><span style="color: rgb(0, 0, 0); font-family: monospace; background-color: rgb(255, 255, 255);"> t</span><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;">he full output from this to </span><a href="https://pastebin.com/eUSarQdx">https://pastebin.com/eUSarQdx</a></div><div><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;"><br></span></div><div><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;">I've posted te full output</span><span style="color: rgb(0, 0, 0); font-family: monospace; background-color: rgb(255, 255, 255);"> </span><span style="color: rgb(0, 0, 0); font-family: monospace; background-color: rgb(255, 255, 255);">from</span><span style="color: rgb(0, 0, 0); font-family: monospace; background-color: rgb(255, 255, 255);"> </span><span style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: monospace;"><b>dovecot -n</b> to </span><a href="https://pastebin.com/F8RaC4bt">https://pastebin.com/F8RaC4bt</a></div><div><a href="https://pastebin.com/F8RaC4bt"></a></div><div><br></div><div>Thank you again, Andy</div><div><br></div><div>On Sat, 2018-12-15 at 17:27 +0100, Alexander Dalloz wrote:</div><blockquote type="cite"><pre>Am 15.12.2018 um 17:16 schrieb C. Andrews Lavarre:
<blockquote type="cite">
                to /etc/apparmor.d/local/usr.lib.dovecot.imap-login but still
cannot login with either the mail client or with explicit openssl: it
complains
                error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown
protocol:s23_clnt.c:794:
</blockquote>

Hi,

that error above typically means to connect with SSL to STARTTLS or vice 
versa.

Please provide the complete command you issue using "openssl s_client" 
together with the corresponding dovecot logging. As well the output of 
"doveconf -n" would be useful to help you further.

Alexander

</pre></blockquote></body></html>