summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-01-22 16:34:54 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-01-22 16:34:54 -0500
commitd3ce7d9fa67fc4b4912014814ba62f84657dec6d (patch)
tree1284b9e40a990253ae28867486f225af4320720e
parent4c468aac9c5ba2dc4724b85f69053193b208f470 (diff)
fix #122 ; for older versions of dovecot
-rwxr-xr-xemailwiz.sh5
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\"];