<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 22/4/22 7:25 am, <a class="moz-txt-link-abbreviated" href="mailto:alice@coakmail.com">alice@coakmail.com</a>
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6181ad6d9b85578a811c4755cca2b82a.squirrel@coakmail.com">
      <pre class="moz-quote-pre" wrap="">hello

I have setup website using letsencrypt for certification.
how can I setup IMAP to use this certs as well?

Thank you.

</pre>
    </blockquote>
    <div class="moz-signature">Make entries in
      /etc/dovecot/conf.d/10-ssl.conf</div>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-signature">ssl = required<br>
      <br>
    </div>
    <div class="moz-signature">ssl_cert =
      </etc/letsencrypt/live/mail.example.com/cert.pem<br>
      ssl_key = </etc/letsencrypt/live/mail.examplel.com/privkey.pem<br>
      <br>
    </div>
    <br>
    <div class="moz-signature">in /etc/dovecot/dovecot.conf or in
      /etc/dovecot/conf.d/10-ssl.conf
      <div class="moz-signature"><br>
      </div>
    </div>
    <div class="moz-signature">put</div>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-signature">ssl_min_protocol = TLSv1.2<br>
      ssl_cipher_list = EECDH+AESGCM:EDH+AESGCM<br>
      ssl_prefer_server_ciphers = yes</div>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-signature">You can override the global ssl
      certificates for specific domains in /etc/dovecot/dovecot.conf</div>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-signature">local special.example.com {<br>
        protocol imap {<br>
          ssl_cert =
      </etc/letsencrypt/live/special.example.com/fullchain.pem<br>
          ssl_key =
      </etc/letsencrypt/live/special.example.com/privkey.pem<br>
      <br>
        }<br>
      }<br>
      <br>
    </div>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-signature"><br>
    </div>
    <div class="moz-signature">-- <br>
      <font size="4" color="DarkSlateGray">Jeremy </font><br>
    </div>
  </body>
</html>