title: the remote certificate is invalid according to the validation procedure using imap
body: <p>I wrote a NET 4.5 client application tool using an IMAP require and a SMTP send command.</p>
  
  <p>Now my current issue is I get the following exception at one client:</p>
  
  <blockquote>
    <p>the remote certificate is invalid according to the validation
    procedure</p>
  </blockquote>
  
  <p>I changed the code to:</p>
  
  <pre><code>ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
  </code></pre>
  
  <p>So all certificates should be accepted. The server needs SSL. The same connection information is working with outlook or thunderbird without errors.</p>