|
|
@@ -117,7 +117,7 @@ spamassassin unix - n n - - pipe |
|
|
|
dovecot_v="$(dovecot --version | cut -d '.' -f1-2)" |
|
|
|
dovecot_dh="ssl_dh = </usr/share/dovecot/dh.pem" |
|
|
|
|
|
|
|
[ ${dovecot_v%.*} -eq 2 ] && [ ${dovecot_v#*.} -lt 3 ] || [ ${dovecot_v%.*} -lt 2 ] && dovecot_dh="#$dovecot_dh" |
|
|
|
[ ${dovecot_v%.*} -eq 2 ] && [ ${dovecot_v#*.} -lt 3 ] || [ ${dovecot_v%.*} -lt 2 ] && dovecot_dh="" |
|
|
|
|
|
|
|
echo "Creating Dovecot config (v $dovecot_v)..." |
|
|
|
|
|
|
@@ -132,7 +132,6 @@ echo "# Dovecot config |
|
|
|
ssl = required |
|
|
|
ssl_cert = <$certdir/fullchain.pem |
|
|
|
ssl_key = <$certdir/privkey.pem |
|
|
|
# You have to add ssl_dh if your Dovecot version is 2.3 or greater! |
|
|
|
$dovecot_dh |
|
|
|
# Plaintext login. This is safe and easy thanks to SSL. |
|
|
|
auth_mechanisms = plain login |
|
|
|