diff options
Diffstat (limited to 'roles/dovecot/templates')
| -rw-r--r-- | roles/dovecot/templates/10-ssl.conf.j2 | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/roles/dovecot/templates/10-ssl.conf.j2 b/roles/dovecot/templates/10-ssl.conf.j2 index 8efa1d2..aca8e5c 100644 --- a/roles/dovecot/templates/10-ssl.conf.j2 +++ b/roles/dovecot/templates/10-ssl.conf.j2 | |||
| @@ -1,14 +1,14 @@ | |||
| 1 | # SSL/TLS Configuration | 1 | # SSL/TLS Configuration |
| 2 | ssl = required | 2 | ssl = required |
| 3 | ssl_key = "</etc/letsencrypt/live/{{ mail_domain }}/privkey.pem" | 3 | ssl_server_key_file = "/etc/letsencrypt/live/{{ mail_domain }}/privkey.pem" |
| 4 | ssl_cert = "</etc/letsencrypt/live/{{ mail_domain }}/fullchain.pem" | 4 | ssl_server_cert_file = "/etc/letsencrypt/live/{{ mail_domain }}/fullchain.pem" |
| 5 | ssl_client_ca_dir = /etc/ssl/certs | 5 | ssl_client_ca_dir = /etc/ssl/certs |
| 6 | ssl_dh = </usr/share/dovecot/dh.pem | 6 | ssl_server_dh_file = /usr/share/dovecot/dh.pem |
| 7 | 7 | ||
| 8 | # Mozilla modern compatibility (https://wiki.mozilla.org/Security/Server_Side_TLS) | 8 | # Mozilla modern compatibility (https://wiki.mozilla.org/Security/Server_Side_TLS) |
| 9 | # This is here for future use - Dovecot does not support using only TLSv1.3 right now. | 9 | # This is here for future use - Dovecot does not support using only TLSv1.3 right now. |
| 10 | #ssl_min_protocol = TLSv1.3 | 10 | #ssl_min_protocol = TLSv1.3 |
| 11 | # Ciphers listed here are just for reference, DO NOT uncomment, this is not a valid | 11 | # Ciphers listed here are just for reference, DO NOT uncomment, this is not a valid |
| 12 | # openssl cipherlist | 12 | # openssl cipherlist |
| 13 | #ssl_cipher_list = TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 | 13 | #ssl_cipher_list = TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256 |
| 14 | 14 | ||
| @@ -16,5 +16,7 @@ ssl_dh = </usr/share/dovecot/dh.pem | |||
| 16 | ssl_min_protocol = TLSv1.2 | 16 | ssl_min_protocol = TLSv1.2 |
| 17 | ssl_cipher_list = ECDHE+ECDSA+AESGCM:ECDHE+aRSA+AESGCM:ECDHE+ECDSA+CHACHA20:ECDHE+aRSA+CHACHA20:DHE+aRSA+AESGCM:!aNULL:!eNULL | 17 | ssl_cipher_list = ECDHE+ECDSA+AESGCM:ECDHE+aRSA+AESGCM:ECDHE+ECDSA+CHACHA20:ECDHE+aRSA+CHACHA20:DHE+aRSA+AESGCM:!aNULL:!eNULL |
| 18 | 18 | ||
| 19 | ssl_prefer_server_ciphers = yes | 19 | #ssl_prefer_server_ciphers = yes |
| 20 | ssl_server_prefer_ciphers = server | ||
| 20 | ssl_client_require_valid_cert = yes | 21 | ssl_client_require_valid_cert = yes |
| 22 | |||
