You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Charlie Wilkinson <cw...@dtserv.com> on 2018/05/06 00:37:27 UTC

Weird Long-Term Whitelist Issue

Hi,

I've been running spamassassin forever and this has been bugging me for 
probably a decade, across various versions of SA and RedHat/FedoraCore 
Linux. Googling has produced nothing helpful and the problem has finally 
annoyed me enough to join this list and ask the real experts...

Basically, I have a whitelist.cf file with about 2000 whitelist_from and 
whitelist_from_rcvd entries in it. It seems that at some point into the 
file, SA quits reading it, or is otherwise ignoring entries, such that 
emails from "whitelisted" senders several hundred lines into the 
whitelist.cf file are not being detected as whitelisted.

My quickie fix has been to move ignored entries to the top of the 
whitelist file when I notice them. That reliably fixes the non-working 
entries, but gets me no closer to a real solution.

Running --lint and --lint -D shows no issues.

Any ideas of what might be causing this, or further troubleshooting 
steps to try?

My setup is currently a fairly plain-vanilla 
spamassassin-3.4.0-13.fc21.i686 on Fedora Core 21. (Yeah, I know... 
Migration to new server/CentOS is underway.) I'm running sendmail with 
MimeDefang and a heavily customized mimedefang-filter script to feed 
emails to SA.

Thanks for any help,

             Charlie


Re: Weird Long-Term Whitelist Issue

Posted by "Kevin A. McGrail" <km...@apache.org>.
I think you would have to include a pastebin of spamassassin -D output from
this and a pastebin of an email showing the issue.

Off the cuff, I think you will likely have an error somewhere in your .cf
file where there is a weird line that is blowing up parsing your config.

--
Kevin A. McGrail
Asst. Treasurer & VP Fundraising, Apache Software Foundation
Chair Emeritus Apache SpamAssassin Project
https://www.linkedin.com/in/kmcgrail - 703.798.0171

On Sun, May 6, 2018 at 7:53 AM, David Jones <dj...@ena.com> wrote:

> On 05/05/2018 07:37 PM, Charlie Wilkinson wrote:
>
>> Hi,
>>
>> I've been running spamassassin forever and this has been bugging me for
>> probably a decade, across various versions of SA and RedHat/FedoraCore
>> Linux. Googling has produced nothing helpful and the problem has finally
>> annoyed me enough to join this list and ask the real experts...
>>
>> Basically, I have a whitelist.cf file with about 2000 whitelist_from and
>> whitelist_from_rcvd entries in it. It seems that at some point into the
>> file, SA quits reading it, or is otherwise ignoring entries, such that
>> emails from "whitelisted" senders several hundred lines into the
>> whitelist.cf file are not being detected as whitelisted.
>>
>> My quickie fix has been to move ignored entries to the top of the
>> whitelist file when I notice them. That reliably fixes the non-working
>> entries, but gets me no closer to a real solution.
>>
>> Running --lint and --lint -D shows no issues.
>>
>> Any ideas of what might be causing this, or further troubleshooting steps
>> to try?
>>
>> My setup is currently a fairly plain-vanilla
>> spamassassin-3.4.0-13.fc21.i686 on Fedora Core 21. (Yeah, I know...
>> Migration to new server/CentOS is underway.) I'm running sendmail with
>> MimeDefang and a heavily customized mimedefang-filter script to feed emails
>> to SA.
>>
>> Thanks for any help,
>>
>>              Charlie
>>
>>
> I too have thousands of whitelist_* entries but haven't seen any problems
> like this.  I put each type of entry in it's own file like:
>
> # wc -l 99_white*
>   6503 99_whitelist_auth.cf
>    216 99_whitelist_from.cf
>      2 99_whitelist_from_dkim.cf
>   1363 99_whitelist_from_rcvd.cf
>     15 99_whitelist_to.cf
>   8099 total
>
> Currently running SA 3.4.1 on CentOS 6 upgrading to latest MailScanner on
> C7 and hopefully SA 3.4.2 this summer.
>
> I would highly recommend switching from sendmail to postfix with
> postscreen and postwhite when you migrate to CentOS.  You will see a major
> improvement in your mail filtering just from that change.
>
> --
> David Jones
>

Re: Weird Long-Term Whitelist Issue

Posted by David Jones <dj...@ena.com>.
On 05/05/2018 07:37 PM, Charlie Wilkinson wrote:
> Hi,
> 
> I've been running spamassassin forever and this has been bugging me for 
> probably a decade, across various versions of SA and RedHat/FedoraCore 
> Linux. Googling has produced nothing helpful and the problem has finally 
> annoyed me enough to join this list and ask the real experts...
> 
> Basically, I have a whitelist.cf file with about 2000 whitelist_from and 
> whitelist_from_rcvd entries in it. It seems that at some point into the 
> file, SA quits reading it, or is otherwise ignoring entries, such that 
> emails from "whitelisted" senders several hundred lines into the 
> whitelist.cf file are not being detected as whitelisted.
> 
> My quickie fix has been to move ignored entries to the top of the 
> whitelist file when I notice them. That reliably fixes the non-working 
> entries, but gets me no closer to a real solution.
> 
> Running --lint and --lint -D shows no issues.
> 
> Any ideas of what might be causing this, or further troubleshooting 
> steps to try?
> 
> My setup is currently a fairly plain-vanilla 
> spamassassin-3.4.0-13.fc21.i686 on Fedora Core 21. (Yeah, I know... 
> Migration to new server/CentOS is underway.) I'm running sendmail with 
> MimeDefang and a heavily customized mimedefang-filter script to feed 
> emails to SA.
> 
> Thanks for any help,
> 
>              Charlie
> 

I too have thousands of whitelist_* entries but haven't seen any 
problems like this.  I put each type of entry in it's own file like:

# wc -l 99_white*
   6503 99_whitelist_auth.cf
    216 99_whitelist_from.cf
      2 99_whitelist_from_dkim.cf
   1363 99_whitelist_from_rcvd.cf
     15 99_whitelist_to.cf
   8099 total

Currently running SA 3.4.1 on CentOS 6 upgrading to latest MailScanner 
on C7 and hopefully SA 3.4.2 this summer.

I would highly recommend switching from sendmail to postfix with 
postscreen and postwhite when you migrate to CentOS.  You will see a 
major improvement in your mail filtering just from that change.

-- 
David Jones