From bb48b5029a8fe5ed5ca5c4cee7a9d2875c7f49e7 Mon Sep 17 00:00:00 2001 From: kgskgs Date: Thu, 5 Nov 2020 11:40:01 +0200 Subject: [PATCH] dovecot ssl_dh update --- emailwiz.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/emailwiz.sh b/emailwiz.sh index 837ea1c..2374bb3 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -114,7 +114,14 @@ spamassassin unix - n n - - pipe # /etc/dovecot/dovecot.conf because it's easier to manage. You can get a backup # of the original in /usr/share/dovecot if you want. -echo "Creating Dovecot config..." +dovecot_v="$(dovecot --version | cut -d ' ' -f1 | cut -d '.' -f1-2)" +dovecot_v_major=${dovecot_v%.*} +dovecot_v_minor=${dovecot_v#*.} +dovecot_dh="ssl_dh =