https://bz.apache.org/SpamAssassin/show_bug.cgi?id=8322

            Bug ID: 8322
           Summary: It is not possible to use exemptions to hashbl_acl_all
                    in HashBL.pm
           Product: Spamassassin
           Version: SVN Trunk (Latest Devel Version)
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Plugins
          Assignee: dev@spamassassin.apache.org
          Reporter: bernhard.lichtin...@lrz.de
  Target Milestone: Undefined

To avoid double scores for gmail.com addresses I tried to use

hashbl_acl_all = !gmail.com

header        SH_HBL_EMAILS  
eval:check_hashbl_emails('_email.<REDACTED>.hbl.dq.spamhaus.net/A',
'sha1/max=10/shuffle/notag', 'ALLFROM/Reply-To/body', '^127\.0\.3\.2$', 'all')

But gmail.com addresses are not exempt.

Looking through the code of HashBL.pm it is possible to add exemptions to the
acl 'all' in sub parse_config but later in sub _get_emails the exemption is not
honored.

I suggest to add after line
https://github.com/apache/spamassassin/blob/8ecab57e83b4e3d2db435a46fa8d1bfa9f1b0b07/lib/Mail/SpamAssassin/Plugin/HashBL.pm#L460

next if defined $acl && $acl ne 'all' && !$self->{hashbl_acl}{$acl}{$domain};

the line

next if defined $acl && $acl eq 'all' && $self->{hashbl_acl}{$acl}{$domain} eq
0;

to honor exemptions to the acl 'all'.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to