{"id":1736,"date":"2015-08-16T23:18:02","date_gmt":"2015-08-16T23:18:02","guid":{"rendered":"http:\/\/www.linkovitch.me.uk\/blog\/?p=1736"},"modified":"2015-08-16T23:18:02","modified_gmt":"2015-08-16T23:18:02","slug":"courier-imap-problems-with-starttls-checking-mail-server-capabilities","status":"publish","type":"post","link":"https:\/\/www.linkovitch.me.uk\/blog\/2015\/08\/courier-imap-problems-with-starttls-checking-mail-server-capabilities\/","title":{"rendered":"Courier IMAP problems with STARTTLS (Checking mail server capabilities)"},"content":{"rendered":"<p>I have recently upgraded my mail server from Debian Wheezy to Debian Jessie, which along with it brings new versions of software, including Courier.  For the most part this hasn&#8217;t been an issue except when it came to the IMAP service.  On Thunderbird clients you would see &#8220;Checking mail server capabilities&#8221; and nothing more when connecting to the server, other clients I assume would have differing error messages, or just flat fail to connect.  A quick fix was to switch the clients to SSL, BUT this I don&#8217;t think is a good fix as it requires your users to have to make a change.  I have thankfully after much googling discovered what seems to be a fix (works for me &#8482; ).  <\/p>\n<p>Courier now uses dhparams.pem (Generate Diffie-Hellman Parameters &#8211; <a href=\"https:\/\/wiki.openssl.org\/index.php\/Diffie-Hellman_parameters\">OpenSSL Wiki article<\/a>).  Now my fresh new courier install already had one of these present, but I suspect this may be too small.  Regenerating this with a nice big 2048bit version rectified my STARTTLS issues instantly (well I did restart courier-imap and courier-imap-ssl too \ud83d\ude42 )<\/p>\n<p>The command I used is :<\/p>\n<p><code>openssl dhparam -out dhparams.pem 2048<\/code><\/p>\n<p>(This WILL take a fair amount of time, don&#8217;t worry it does finish \ud83d\ude42 )<br \/>\nwhilst within the \/etc\/courier path, followed by a restart of the imap services.  My original dhparams.pem file was 201 bytes, after generating a new one it is 424 bytes \ud83d\ude42<\/p>\n<p>Hopefully this will help save someone&#8217;s hair \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have recently upgraded my mail server from Debian Wheezy to Debian Jessie, which along with it brings new versions of software, including Courier. For the most part this hasn&#8217;t been an issue except when it came to the IMAP service. On Thunderbird clients you would see &#8220;Checking mail server capabilities&#8221; and nothing more when &hellip; <a href=\"https:\/\/www.linkovitch.me.uk\/blog\/2015\/08\/courier-imap-problems-with-starttls-checking-mail-server-capabilities\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Courier IMAP problems with STARTTLS (Checking mail server capabilities)<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1736"}],"collection":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=1736"}],"version-history":[{"count":1,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1736\/revisions"}],"predecessor-version":[{"id":1737,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1736\/revisions\/1737"}],"wp:attachment":[{"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=1736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=1736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linkovitch.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=1736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}