spf not working

Bugs in eFa 5
Post Reply
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

spf not working

Post by JOP »

Tried a couple of days, but do not get any further...

As SPF worked fine in efa 4 , but I do not get it work at v5.0.
Anything seems to be configured correctly, but I do not have any entries in Spam Report except "SPF_HELO_PASS".
Tested with mails and invalid SPF, but nothing noticed or done.

Any idea what to check - maybe a litte HowTo?
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

Works for everyone here?
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

does anyone use SPF and has a working config to display here?
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

Can nobody help here?
Am I the only one for whom this doesn't work?
Mail2GoCa
Posts: 51
Joined: 10 Oct 2018 09:11

Re: spf not working

Post by Mail2GoCa »

Hi JOP,

Where are you trying to make SPF work?

Postfix?
Sendmail?
SpamAssassin?
Somewhere else?

Before anyone can help you, you will need to help yourself a little :)
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

Hi,

thank you for your answer, where should i enable it?
Where the best place to enable it?
Mail2GoCa
Posts: 51
Joined: 10 Oct 2018 09:11

Re: spf not working

Post by Mail2GoCa »

In the EFA portal, go to the "Tools And Links" section and click on "Update SpamAssassin Rule Descriptions"

Then search the results and see if you have the following rules...

SPF_FAIL SPF: sender does not match SPF record (fail)
SPF_HELO_FAIL SPF: HELO does not match SPF record (fail)
SPF_HELO_NEUTRAL SPF: HELO does not match SPF record (neutral)
SPF_HELO_NONE SPF: HELO does not publish an SPF Record
SPF_HELO_PASS SPF: HELO matches SPF record
SPF_HELO_SOFTFAIL SPF: HELO does not match SPF record (softfail)
SPF_NEUTRAL SPF: sender does not match SPF record (neutral)
SPF_NONE SPF: sender does not publish an SPF Record
SPF_PASS SPF: sender matches SPF record
SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

thank you, got this

SPF_FAIL SPF: sender does not match SPF record (fail)
SPF_HELO_FAIL SPF: HELO does not match SPF record (fail)
SPF_HELO_NEUTRAL SPF: HELO does not match SPF record (neutral)
SPF_HELO_NONE SPF: HELO does not publish an SPF Record
SPF_HELO_PASS SPF: HELO matches SPF record
SPF_HELO_SOFTFAIL SPF: HELO does not match SPF record (softfail)
SPF_NEUTRAL SPF: sender does not match SPF record (neutral)
SPF_NONE SPF: sender does not publish an SPF Record
SPF_PASS SPF: sender matches SPF record
SPF_SOFTFAIL SPF: sender does not match SPF record (softfail)

but no SPF entries in mail header with known bad senders.
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

the only entry in mail header of each mail is:

0.00 SPF_HELO_NONE SPF: HELO does not publish an SPF Record
Mail2GoCa
Posts: 51
Joined: 10 Oct 2018 09:11

Re: spf not working

Post by Mail2GoCa »

In that case, unless you changed some setting that broke SA (SpamAssassin)'s ability to do SPF checks, it appears that incoming emails are meeting the SPF requirements.

Note that if you enabled SPF checks in Postfix so that non-compliant emails are rejected, those emails will never reach SA. This could also be by you're not seeing those SA tags.
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

I did not modify the postfix configuration.
Mail2GoCa
Posts: 51
Joined: 10 Oct 2018 09:11

Re: spf not working

Post by Mail2GoCa »

in the file /etc/mail/spamassassin/init.pre, make sure you have the following code:

Code: Select all

# SPF - perform SPF verification.
#
loadplugin Mail::SpamAssassin::Plugin::SPF
JOP
Posts: 16
Joined: 22 Dec 2019 18:57

Re: spf not working

Post by JOP »

is loaded
Mail2GoCa
Posts: 51
Joined: 10 Oct 2018 09:11

Re: spf not working

Post by Mail2GoCa »

Then it should be working well.
Check your log files for errors.
Post Reply