From c36e878d76827fc7062558f1edada05d7ba38880 Mon Sep 17 00:00:00 2001 From: Marek Walczak <2558195+mwlczk@users.noreply.github.com> Date: Thu, 22 Feb 2018 08:36:12 +0100 Subject: [PATCH] Nist tls (#831) * remove two ciphers according to https://www.htbridge.com/ssl/ (NIST, HIPAA) * added a switch via an environment variable to choose between modern and intermediate ciphers --- README.md | 7 +++++ target/dovecot/10-ssl.conf | 4 +-- target/postfix/main.cf | 8 ++--- target/start-mailserver.sh | 33 ++++++++++++++++++++- test/config/dovecot-lmtp/conf.d/10-ssl.conf | 4 +-- 5 files changed, 47 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 318ea8ca..2a0aca54 100644 --- a/README.md +++ b/README.md @@ -247,6 +247,13 @@ Otherwise, `iptables` won't be able to ban IPs. Please read [the SSL page in the wiki](https://github.com/tomav/docker-mailserver/wiki/Configure-SSL) for more information. +##### TLS_LEVEL + + - **empty** => modern + - modern => Enables TLSv1.2 and modern ciphers only. (default) + - intermediate => Enables TLSv1, TLSv1.1 and TLSv1.2 and broad compatibility ciphers. + - old => NOT implemented. If you really need it, then customize the TLS ciphers overriding postfix and dovecot settings [ wiki](https://github.com/tomav/docker-mailserver/wiki/ + ##### PERMIT_DOCKER Set different options for mynetworks option (can be overwrite in postfix-main.cf) diff --git a/target/dovecot/10-ssl.conf b/target/dovecot/10-ssl.conf index 2d6fd178..5823a66d 100644 --- a/target/dovecot/10-ssl.conf +++ b/target/dovecot/10-ssl.conf @@ -46,10 +46,10 @@ ssl_key =