From d3ce7d9fa67fc4b4912014814ba62f84657dec6d Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 22 Jan 2021 16:34:54 -0500 Subject: fix #122 ; for older versions of dovecot --- emailwiz.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emailwiz.sh') 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\"]; -- cgit v1.2.3-70-g09d2