diff options
author | Luke Smith <luke@lukesmith.xyz> | 2021-01-22 16:34:54 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2021-01-22 16:34:54 -0500 |
commit | d3ce7d9fa67fc4b4912014814ba62f84657dec6d (patch) | |
tree | 1284b9e40a990253ae28867486f225af4320720e /emailwiz.sh | |
parent | 4c468aac9c5ba2dc4724b85f69053193b208f470 (diff) |
fix #122 ; for older versions of dovecot
Diffstat (limited to 'emailwiz.sh')
-rwxr-xr-x | emailwiz.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/emailwiz.sh b/emailwiz.sh index 400fafa..61081c4 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -206,6 +206,11 @@ plugin { } " > /etc/dovecot/dovecot.conf +# If using an old version of Dovecot, remove the ssl_dl line. +case "$(dovecot --version)" in + 1|2.1*|2.2*) sed -i "/^ssl_dh/d" /etc/dovecot/dovecot.conf ;; +esac + mkdir /var/lib/dovecot/sieve/ echo "require [\"fileinto\", \"mailbox\"]; |