From b4a07a21be2dd41d7bb7c70f0eb1922995e44daf Mon Sep 17 00:00:00 2001 From: Thomas VIAL Date: Sat, 4 Jul 2015 15:54:40 +0200 Subject: [PATCH] Added spamassassin configuration. --- start-mailserver.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/start-mailserver.sh b/start-mailserver.sh index 4b3ddf65..ff7f3dfe 100644 --- a/start-mailserver.sh +++ b/start-mailserver.sh @@ -26,7 +26,6 @@ makeuserdb echo "Regenerating 'virtual' for given aliases" echo $docker_mail_aliases | sed -r 's/\[|\]|\x27|//g' | sed -r 's/, /\n/g' > /tmp/docker_mail_aliases -echo "" > /etc/postfix/virtual while IFS=$'|' read -r login aliases do arr=$(echo $aliases | tr "," "\n") @@ -53,6 +52,12 @@ mkdir -p /var/log/clamav && chown -R clamav:root /var/log/clamav echo "Creating /etc/mailname" echo $docker_mail_domain > /etc/mailname +echo "Configuring Spamassassin" +echo "required_hits 5.0" >> /etc/mail/spamassassin/local.cf +echo "report_safe 0" >> /etc/mail/spamassassin/local.cf +echo "required_score 5" >> /etc/mail/spamassassin/local.cf +echo "rewrite_header Subject ***SPAM***" >> /etc/mail/spamassassin/local.cf + echo "Starting daemons" /etc/init.d/rsyslog start /etc/init.d/fam start