diff --git a/README.md b/README.md index bd5ed88b..5c2fb7af 100644 --- a/README.md +++ b/README.md @@ -256,8 +256,9 @@ Otherwise, `iptables` won't be able to ban IPs. - **empty** => SSL disabled - letsencrypt => Enables Let's Encrypt certificates - custom => Enables custom certificates - - manual => Let's you manually specify locations of your SSL certificates for non-standard cases + - manual => Let you manually specify locations of your SSL certificates for non-standard cases - self-signed => Enables self-signed certificates + - _any other value_ => SSL required, settings by default Please read [the SSL page in the wiki](https://github.com/tomav/docker-mailserver/wiki/Configure-SSL) for more information. diff --git a/target/start-mailserver.sh b/target/start-mailserver.sh index 3af2805a..73c4e58e 100644 --- a/target/start-mailserver.sh +++ b/target/start-mailserver.sh @@ -953,6 +953,20 @@ function _setup_ssl() { notify 'inf' "SSL configured with 'self-signed' certificates" fi ;; + '' ) + # $SSL_TYPE=empty, no SSL certificate, plain text access + + # Dovecot configuration + sed -i -e 's~#disable_plaintext_auth = yes~disable_plaintext_auth = no~g' /etc/dovecot/conf.d/10-auth.conf + sed -i -e 's~ssl = required~ssl = yes~g' /etc/dovecot/conf.d/10-ssl.conf + + notify 'inf' "SSL configured with plain text access" + ;; + * ) + # Unknown option, default behavior, no action is required + + notify 'warn' "SSL configured by default" + ;; esac }