How to increase score for SPF Fail emails in SpamAssasin

Questions and answers about how to do stuff
Post Reply
maxkmv
Posts: 53
Joined: 28 Apr 2015 14:40

How to increase score for SPF Fail emails in SpamAssasin

Post by maxkmv »

There are thousands of fake invoices hitting our server every day. I noticed nearly 99% of them are sent from IPs with SPF Fail. Is it possible to reconfigure SpamAssasin to give bigger score (and therefore either totally block as spam or mark and forward to user as "possibly spam"?) to all received emails with SPF Fail?
Thanks!
maxkmv
Posts: 53
Joined: 28 Apr 2015 14:40

Re: How to increase score for SPF Fail emails in SpamAssasin

Post by maxkmv »

I noticed it always gives a score of 0.67 to all SPF SOFT Fail emails. Can this be increased, say to 4 or 5?
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: How to increase score for SPF Fail emails in SpamAssasin

Post by pdwalker »

The wiki (https://efa-project.org/wiki/HowTos) has some links back to the forums for these kinds of things.

In your case, you should look at these links
viewtopic.php?f=14&t=814&p=2612&hilit=local.cf#p2612
viewtopic.php?f=13&t=827&p=3252#p2546
User avatar
pdwalker
Posts: 1553
Joined: 18 Mar 2015 09:16

Re: How to increase score for SPF Fail emails in SpamAssasin

Post by pdwalker »

Just be aware that a lot of legimate mail may also have spf failures as well.

Monitor your changes closely to be sure you're happy with the result.
Post Reply