title: "The IMAP server has unexpectedly disconnected" using 993 port and MailKit
body: <p>I recently moved my code to MailKit library because I was using S22.Imap but I saw the maintenance wasn't that great. </p>
  
  <p>I previously connected with my own mailserver through 143 and 993, but there is no way to do it through 993 and MailKit.</p>
  
  <p>It just says "The IMAP server has unexpectedly disconnected". It doesn't even reach the Authenticate method, and the log uniquely says "Connected to imap://mail.xxx.com:993/".</p>
  
  <p>I'm currently using the</p>
  
  <pre><code>imap.Connect(hostname, 993, SecureSocketOptions.None);
  </code></pre>
  
  <p>I've even tried with different SecureSocketOptions it has with no luck. Any idea what could be wrong? With works fine if I'm connecting through 143 and it worked through 993 when I used S22.Imap.</p>
  
  <p>P.S: The Exception it throws is a <code>MailKit.Net.Imap.ImapProtocolException</code>.</p>
  
  <p>Thanks.</p>