mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
* Modified start-mailserver.sh with two new options for SSL certificate Configuration (): + ‘’ (empty string) modifies dovecot configs to allow plain text access + * (default) does nothing but warn with message ‘SSL configured by default’ * Updated README.md: SSL_TYPE environment variable with unknown value will set SSL by default
This commit is contained in:
parent
0fb4a6d082
commit
a989d77a87
|
@ -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.
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue