aboutsummaryrefslogtreecommitdiff
path: root/roles/dovecot/templates/10-ssl.conf.j2
blob: aca8e5cf53d38833df41bfd3cdaa6eb8461fcaac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# SSL/TLS Configuration
ssl = required
ssl_server_key_file = "/etc/letsencrypt/live/{{ mail_domain }}/privkey.pem"
ssl_server_cert_file = "/etc/letsencrypt/live/{{ mail_domain }}/fullchain.pem"
ssl_client_ca_dir = /etc/ssl/certs
ssl_server_dh_file = /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_server_prefer_ciphers = server
ssl_client_require_valid_cert = yes