Skip to content
Matt Simerson edited this page Nov 8, 2021 · 10 revisions

letsencrypt

Uses the acme.sh utility to validate and install TLS certificates from Let's Encrypt.

. mail-toaster.sh && provision letsencrypt

Sample output


More Info

There are three vhosts where certs are installed:

  • Haraka (smtp)
    • /data/haraka/config/tls
  • Dovecot (IMAP & POP3)
    • /data/dovecot/etc/ssl
  • Haproxy (HTTP)
    • /data/haproxy/ssl.d/

Haproxy and Haraka will load and use all the certificates found in their respective TLS directories. After new or updated certs are installed, restarting each will cause the updated certs to take effect.

Dovecot requires configuration for each certificate (vhost). See the Dovecot SSL docs and especially the bits about SNI

Limitations

  • Firewalls: if a network device is blocking port 80 requests to your server, this step will not work.

Testing TLS configuration

Clone this wiki locally