1 (edited by Jochie 2015-06-14 22:08:39)

Topic: SpamAssassin "spf_timeout 5" issue and solution

======== Required information ====
- iRedMail version:  0.9.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  MySQL
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Ubuntu 14.04.2 LTS
- Related log if you're reporting an issue:
====

/etc/cron.daily/spamassassin:
Jun 14 06:47:45.856 [16034] warn: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": spf_timeout 5
Jun 14 06:47:46.613 [16034] warn: lint: 1 issues detected, please rerun with debug enabled for more information
Jun 14 06:47:46.912 [16038] dbg: logger: adding facilities: all
Jun 14 06:47:46.912 [16038] dbg: logger: logging level is DBG
Jun 14 06:47:46.912 [16038] dbg: generic: SpamAssassin version 3.4.0
Jun 14 06:47:46.912 [16038] dbg: generic: Perl 5.018002, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin

I was looking through my logs and found this issue.  I don't know if i'm the only one, or not. But it's rather easy to fix.

Solution :

In /etc/spamassassin/local.cf find the line :  spf_timeout 5
Before this line, add the following line to it :

loadplugin     Mail::SpamAssassin::Plugin::SPF
Then the issue is solved.

file : /etc/spamassassin/local.cf
example :

# For Mail::SPF
loadplugin     Mail::SpamAssassin::Plugin::SPF
spf_timeout         5

If you don't know if you have this problem, you can verify spamasassin by running the following command:

sudo spamassassin --lint

If it shows nothing, all is working fine. If it produces the output above, then you can apply the rule to fix it.

Example issue :

crazypiano@mail:~$ sudo spamassassin --lint
Jun 14 15:47:03.596 [18599] warn: config: failed to parse line, skipping, in "/etc/spamassassin/local.cf": spf_timeout 5
Jun 14 15:47:04.346 [18599] warn: lint: 1 issues detected, please rerun with debug enabled for more information
crazypiano@mail:~$

Example non-issue:

crazypiano@mail:~$ sudo spamassassin --lint
crazypiano@mail:~$

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: SpamAssassin "spf_timeout 5" issue and solution

So weird i am running ubuntu and i don't the same problem.

3

Re: SpamAssassin "spf_timeout 5" issue and solution

neoark wrote:

So weird i am running ubuntu and i don't the same problem.

Well, let's be glad if it's only me ;-)
But weird it is indeed.