SpamAssassin not blocking emails with invalid SPF?

Vipin Haridas

Member
Aug 3, 2016
9
0
1
India
cPanel Access Level
Root Administrator
Hi,

Sorry for re-opening this old thread. But need some clarifications here. It seems, just enabling spamassassin is not blocking the emails with invalid SPF - even if we setup Hardfail.

To make this work, I had to setup "Apache SpamAssassin™ reject spam score threshold" on WHM Tweak settings and set a "SPF_FAIL" score on the "spam filters" option on cPanel.

Is this how we need to set this up? Is there any way to reject emails with invalid SPF records globally (Server wide rather than setting the "SPF_FAIL" score on cPanel spam filter)?.
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hello @Vipin Haridas


Would it be possible to provide the headers including spam scoring of a message that was allowed through SpamAssassin with an invalid SPF? The SPF check is part of the SpamAssassin configuration:

Code:
# grep SPF /etc/mail/spamassassin/init.pre
# SPF - perform SPF verification.
loadplugin Mail::SpamAssassin::Plugin::SPF
So it does indeed verify.

Thanks!
 
  • Like
Reactions: linux4me2