Thanks Matus, I'll try that (although looking at my previous Alpine config, I don't see those lines anywhere ... weird !).
Will update you later. Sent with ProtonMail Secure Email. ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Wednesday, 20 November 2019 08:22, Matus UHLAR - fantomas <[email protected]> wrote: > On 20.11.19 09:08, Damian wrote: > > > It is not clear from your description if spam checking is enabled at all. > > > Did you modify 15-content_filter_mode? > > instead of modifying 15-content_filter_mode I recommend adding to 50_user > those lines: > > @bypass_virus_checks_maps = ( > \%bypass_virus_checks, \@bypass_virus_checks_acl, \$bypass_virus_checks_re); > > @bypass_spam_checks_maps = ( > \%bypass_spam_checks, \@bypass_spam_checks_acl, \$bypass_spam_checks_re); > > this way you'll have all configuration in 50_user. > > > Am 20.11.19 um 08:28 schrieb Laura Smith: > > > > > 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//]); > > -- > > Matus UHLAR - fantomas, [email protected] ; http://www.fantomas.sk/ > Warning: I wish NOT to receive e-mail advertising to this address. > Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. > Spam = (S)tupid (P)eople's (A)dvertising (M)ethod
