From 4751bb036cf0dd7a1313d6df218aa3f2e0fee5a7 Mon Sep 17 00:00:00 2001 From: "b.waal" Date: Sun, 1 Sep 2019 18:03:22 +0200 Subject: [PATCH] Update 'installer.sh' --- installer.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installer.sh b/installer.sh index 4898367..6ded54b 100644 --- a/installer.sh +++ b/installer.sh @@ -306,6 +306,7 @@ chmod +x /usr/local/bin/quota-warning.sh ##--------------------------------------## apt install dovecot-sieve dovecot-managesieved -y mkdir -p /etc/dovecot/sieve/ +wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/$branch/config/dovecot/15-lda.conf -O /etc/dovecot/conf.d/15-lda.conf wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/dovecot/90-sieve.conf -O /etc/dovecot/conf.d/90-sieve.conf wget -q -t7 https://git.ictmaatwerk.com/VPS-scripts/Ubuntu-Mail/raw/branch/"$branch"/config/sieve/default.sieve -O /etc/dovecot/sieve/default.sieve sievec /etc/dovecot/sieve/default.sieve @@ -315,6 +316,9 @@ chown vmail:vmail /etc/dovecot/sieve/ -R # Spamassassin # ##------------------## apt install spamassassin razor pyzor -y +sed -i -e 's/# report_safe 1/report_safe 0/' -e 's/# required_score 5.0/required_score 5.0/' -e 's/endif # Mail::SpamAssassin::Plugin::Shortcircuit//' /etc/spamassassin/local.cf +echo "" >> /etc/spamassassin/local.cf +echo "skip_rbl_checks 0" >> /etc/spamassassin/local.cf echo "" >> /etc/spamassassin/local.cf echo "#pyzor" >> /etc/spamassassin/local.cf echo "use_pyzor 1" >> /etc/spamassassin/local.cf @@ -329,6 +333,8 @@ echo "#bayes" >> /etc/spamassassin/local.cf echo "use_bayes 1" >> /etc/spamassassin/local.cf echo "use_bayes_rules 1" >> /etc/spamassassin/local.cf echo "bayes_auto_learn 1" >> /etc/spamassassin/local.cf +echo "" >> /etc/spamassassin/local.cf +echo "endif # Mail::SpamAssassin::Plugin::Shortcircuit" >> /etc/spamassassin/local.cf ##------------## # ClamAV #