I am aware the usual answer to this question resolves around setting
$sa_tag_level_deflt = -9999; which is not the case for me (i.e I know how it
works, and I'm migrating a known-good config).
I am migrating a mail instance from Alpine Linux to Debian 10.2. Debian 10.2
packages amavis 2.11.0.
My config on Apline works perfectly and the spam score headers get added as
expected, however moving the config accross to Debian, the headers cease to be
added.
amavisd is otherwise working perfectly on Debian (i.e. mails are flowing
correctly and I can see amavisd doing its work in /var/log/mail.log)
The contents of my /etc/amavis/conf.d/50-user file is as follows:
use strict;
$myhostname = '//REMOVED FOR SECURITY//';
@inet_acl = qw( 127.0.0.1 [::1] //REMOVED FOR SECURITY//);
@mynetworks = qw( 127.0.0.1 [::1] //REMOVED FOR SECURITY//);
$allowed_added_header_fields{lc('X-Spam-Report')} = 1;
$warnvirusrecip = 1;
# Spam Actions
$sa_tag_level_deflt = -9999; # insert spam headers
$sa_tag2_level_deflt = 5; # when to tag email
$sa_spam_subject_tag = '**MAYBE SPAM**';
$sa_kill_level_deflt = 11.5; # Triggers ultimate Actions
$final_bad_header_destiny = D_PASS;
$final_spam_destiny = D_DISCARD;
@local_domains_maps = ([//REMOVED FOR SECURITY//]);