> Le 24/07/2009 04:09, MySQL Student a écrit :
>> I don't doubt that if we removed a substantial amount of them that SA
>> would do what's right, but there doesn't seem to be any scientific way
>> to do that successfully.
>
> Can't you just look at the scores that the whitelisted messages are  
> getting and see whether any would be close to being considered as spam  
> without the -100 of the whitelist? [How best to do that depends on how  
> you've integrated spamassassin into your mail setup, but grepping  
> through logs ought to do it in most cases].
>
> And perhaps a few carefully-chosen negative-scoring rules (for words or  
> phrases common to your customer's business) might be a far more  
> effective way of handling the rest.
>
>> Is there a way to script that for the 1000 or so entries, to see which
>> have SPF records?
>
> There are no doubt lots of ways, but how about:

On 24.07.09 08:58, John Wilcock wrote:
> egrep 'whitelist_from[^_]' local.cf | awk '{FS="@"; print $2" TXT";}' |  
> xargs dig | grep "v=spf1"

well
- addresses can contain wildcards
- more addresses can be at one line
- SPF records should be checked before TXT

the first issue is hard to avoid by scripting, others can be solved.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; 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.
42.7 percent of all statistics are made up on the spot. 

Reply via email to