From 724d877995dfcc10c462a18dcb4ea6c8b60c2d03 Mon Sep 17 00:00:00 2001 From: Sam Chudnick <sam@chudnick.com> Date: Sun, 2 Jul 2023 19:04:30 -0400 Subject: initial commit --- roles/dovecot/templates/10-ssl.conf.j2 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 roles/dovecot/templates/10-ssl.conf.j2 (limited to 'roles/dovecot/templates') diff --git a/roles/dovecot/templates/10-ssl.conf.j2 b/roles/dovecot/templates/10-ssl.conf.j2 new file mode 100644 index 0000000..8efa1d2 --- /dev/null +++ b/roles/dovecot/templates/10-ssl.conf.j2 @@ -0,0 +1,20 @@ +# SSL/TLS Configuration +ssl = required +ssl_key = "</etc/letsencrypt/live/{{ mail_domain }}/privkey.pem" +ssl_cert = "</etc/letsencrypt/live/{{ mail_domain }}/fullchain.pem" +ssl_client_ca_dir = /etc/ssl/certs +ssl_dh = </usr/share/dovecot/dh.pem + +# Mozilla modern compatibility (https://wiki.mozilla.org/Security/Server_Side_TLS) +# This is here for future use - Dovecot does not support using only TLSv1.3 right now. +#ssl_min_protocol = TLSv1.3 +# Ciphers listed here are just for reference, DO NOT uncomment, this is not a valid +# openssl cipherlist +#ssl_cipher_list = TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 + +# Mozilla intermediate compatibility (https://wiki.mozilla.org/Security/Server_Side_TLS) +ssl_min_protocol = TLSv1.2 +ssl_cipher_list = ECDHE+ECDSA+AESGCM:ECDHE+aRSA+AESGCM:ECDHE+ECDSA+CHACHA20:ECDHE+aRSA+CHACHA20:DHE+aRSA+AESGCM:!aNULL:!eNULL + +ssl_prefer_server_ciphers = yes +ssl_client_require_valid_cert = yes -- cgit v1.2.3