content/blog/mail_server_alpine_postfix_dovecot_tutorial/index.md: add line for adding SA headers with amavis

This commit is contained in:
revsuine 2025-05-16 22:21:19 +01:00
parent e5c4772cf3
commit 94d49bae83
Signed by: revsuine
GPG key ID: 3F257B68F5BC9339

View file

@ -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