Symptoms
-
CentOS 6 installed on the server
-
Spam processing fails with the following error in /var/log/maillog:
PLESK_ERROR: spamd[1306]: spamd: processing message <[email protected]; for [email protected]:110
spamd[1306]: rules: failed to run SPF_NONE test, skipping:
spamd[1306]: (Can’t locate object method “check_for_spf_none” via package “Mail:[…]:SpamAssassin::PerMsgStatus” at (eval 1681) line 369.
spamd[1306]: rules: failed to run SPF_HELO_NONE test, skipping:
spamd[1306]: (Can’t locate object method “check_for_spf_helo_none” via package “Mail: […]:SpamAssassin::PerMsgStatus” at (eval 1681) line 1089.Cause
The issue caused by the Spam Assassin’s bug #6490, which occurs only version Spamassassin 3.3.1. The bug is fixed in version 3.3.2 and upper. But It is not possible to install the newest version of Spam Assassin because the version 3.3.1 is the latest version which providing from official CentOS 6 repository.
Resolution
Please consider updating your server to Centos 7 which provide the latest version of Spam Assassin.
Additionally, it is possible to use the following workaround – switch off SPF filter using steps from this website