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 =