• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue Spamassassin SPF check not working

uniauto

Basic Pleskian
Server operating system version
Debian 12.6
Plesk version and microupdate number
Plesk Obsidian 18.0.62
Hi.

Few days ago migrated a server and noticed SPF_ and SPF_HELO_ rules aren't working.
This rules are missing in X-Spam-Status mail headers.
Noticed that its working fine for internalmail. SPF_PASS is there for mails between local accounts.

Tried to change server DNS to 127.0.0.1.
Tried to change server DNS to 8.8.8.8.
Tried to add /etc/spamassassin/65_dns.cf => dns_server 127.0.0.1
Tried to add /etc/spamassassin/65_dns.cf => dns_server 8.8.8.8
Plugin is enabled in /etc/spamassasin/init.pre
loadplugin Mail::SpamAssassin::plugin::SPF


Any hint?
 
What are the settings in Tools & Settings > Mail Server Settings > SPF spam protection on both servers?
 
Captura de pantalla_2024-07-04_00-19-54.png

Received-SPF Header is there. But Spamassassin rules only appear with emails between localdomains, not from external domains.
 
Maybe its related to Spamassassin versión?
Old server have SpamAssassin 3.4.2
New server have SpamAssassin 4.0.0
 
I haven't found similar cases. It could very well be a bug that was fixed in newer versions. Can you update SpamAssassin to check?
 
I haven't found similar cases. It could very well be a bug that was fixed in newer versions. Can you update SpamAssassin to check?
Re-installed Debian 12 in old server and it have same problem.
Tried to upgrade version used by Plesk, but i ddint find a way....

Anyway found a solution. I think Plesk isnt installing all required packages for Spamassassin.
Removed Spamassassin.
Installed again using command line instead Plesk GUI.
apt install spamassassin -> installed a lot of new packages...

Captura de pantalla_2024-07-05_00-35-40.png

Now install again using Plesk GUI, and it works.

Thansk for answer and try to help artalva.
 
Adding more info:

Just checked sa-update.log and found that SPF plugin was not installed by default with Plesk

Captura de pantalla_2024-07-05_01-13-14.png

Maybe more plugins wasnt installed
Captura de pantalla_2024-07-05_01-17-35.png
 
Recently the sa-compile component of SpamAssassin has been excluded from the installation because of security issues. The side effect of this is that, on APT based systems (Debian and Ubuntu), some common SpamAssassin plugins (modules) are no longer installed by default. As you have noticed. These plugins can still be installed manually via the package manager. For example apt-get install libmail-spf-perl to install the SPF plugin.
 
Back
Top