From 94d49bae8315a6ca761859591eb8d9b7566718e7 Mon Sep 17 00:00:00 2001 From: revsuine Date: Fri, 16 May 2025 22:21:19 +0100 Subject: [PATCH] content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md: add line for adding SA headers with amavis --- .../mail_server_alpine_postfix_dovecot_tutorial/index.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md b/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md index c8e4532..23f8622 100644 --- a/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md +++ b/content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md @@ -1719,6 +1719,15 @@ Enable spam filtering by setting `@bypass_spam_checks_maps` in your `/etc/amavis \%bypass_spam_checks, \@bypass_spam_checks_acl, $bypass_spam_checks_re); ``` +SpamAssassin gives us helpful email headers with a "spam score". By default, Amavis only adds these headers if the spam +score is at least 2.0. To have the headers always be added, find and change (or add if it is not already there) + +```conf +$sa_tag_level_deflt = undef; +``` + +If you only want SpamAssassin's headers at, say, 1.0, replace `undef` with `1.0`. + Restart Amavis: # rc-service amavisd restart