Page 1 of 1

spf not working

Posted: 02 Jun 2025 16:11
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?

Re: spf not working

Posted: 09 Jun 2025 08:07
by JOP
Works for everyone here?

Re: spf not working

Posted: 14 Jun 2025 10:40
by JOP
does anyone use SPF and has a working config to display here?

Re: spf not working

Posted: 21 Jun 2025 04:58
by JOP
Can nobody help here?
Am I the only one for whom this doesn't work?

Re: spf not working

Posted: 29 Jun 2025 07:27
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 :)

Re: spf not working

Posted: 05 Jul 2025 09:45
by JOP
Hi,

thank you for your answer, where should i enable it?
Where the best place to enable it?

Re: spf not working

Posted: 05 Jul 2025 12:48
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)

Re: spf not working

Posted: 06 Jul 2025 08:02
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.

Re: spf not working

Posted: 06 Jul 2025 08:04
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

Re: spf not working

Posted: 09 Jul 2025 13:21
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.

Re: spf not working

Posted: 12 Jul 2025 05:15
by JOP
I did not modify the postfix configuration.

Re: spf not working

Posted: 12 Jul 2025 07:26
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

Re: spf not working

Posted: 12 Jul 2025 08:46
by JOP
is loaded

Re: spf not working

Posted: 12 Jul 2025 10:18
by Mail2GoCa
Then it should be working well.
Check your log files for errors.

Re: spf not working

Posted: 13 Jul 2025 16:54
by JOP
in which log files?

Re: spf not working

Posted: 14 Jul 2025 07:27
by Mail2GoCa
Postfix, MailScanner and Spamassassin all log to: /var/log/maillog

Re: spf not working

Posted: 17 Jul 2025 05:37
by JOP
no errors, nothing like SPF checks

Re: spf not working

Posted: 17 Jul 2025 07:17
by Mail2GoCa
If there are no errors, then everything is working as configured.

Re: spf not working

Posted: 17 Jul 2025 18:08
by JOP
not solving my problem.

Re: spf not working

Posted: 18 Jul 2025 06:15
by Mail2GoCa
I don't understand your point.

You asked for help and I offered you some to the limit of my abilities.

Re: spf not working

Posted: 20 Jul 2025 07:38
by Mail2GoCa
JOP wrote: 17 Jul 2025 18:08 not solving my problem.
One more thing you can try

In the MailScanner portal under "Tools & Links", run the "MailScanner Lint" and "Spamassassin Lint" and check for errors or warnings in each one.