Resolving SpamAssassing 3.3.2 on “check_for_spf_helo_permerror” error on Debian 7 (wheezy)

This post has been updated with a real fix at the end of the post

This morning I woke to a pile of OSSEC alerts regarding the following mail.log entries

Feb  9 14:04:48 server spamd[2696]: prefork: child states: II
Feb  9 14:06:56 server spamd[2696]: spamd: connection from localhost.localdomain [127.0.0.1] at port 45032
Feb  9 14:06:56 server spamd[2696]: spamd: setuid to mail succeeded
Feb  9 14:06:56 server spamd[2696]: spamd: processing message <1593758428.9819013.1423508807692.JavaMail.app@lva1-app3959.prod> foserver8
Feb  9 16:06:56 server spamd[2696]: rules: failed to run T_SPF_HELO_PERMERROR test, skipping:
Feb  9 14:06:56 server spamd[2696]:  (Can't locate object method "check_for_spf_helo_permerror" via package "Mail: [...]:SpamAssassserverMsgStatus"6at (eval 1332) line 19.
Feb  9 14:06:56 server spamd[2696]: )
Feb  9 14:06:56 server spamd[2696]: rules: failed to run T_SPF_TEMPERROR test, skipping:
Feb  9 14:06:56 server spamd[2696]:  (Can't locate object method "check_for_spf_temperror" via package "Mail: [...]:SpamAssassserverMsgStatus"6at (eval 1332) line 614.
Feb  9 14:06:56 server spamd[2696]: )
Feb  9 14:06:56 server spamd[2696]: rules: failed to run T_SPF_PERMERROR test, skipping:
Feb  9 14:06:56 server spamd[2696]:  (Can't locate object method "check_for_spf_permerror" via package "Mail: [...]:SpamAssassserverMsgStatus"6at (eval 1332) line 784.
Feb  9 14:06:56 server spamd[2696]: )
Feb  9 14:06:56 server spamd[2696]: rules: failed to run T_SPF_HELO_TEMPERROR test, skipping:
Feb  9 14:06:56 server spamd[2696]:  (Can't locate object method "check_for_spf_helo_temperror" via package "Mail: [...]:SpamAssassserverMsgStatus"6at (eval 1332) line 1129.
Feb  9 14:06:56 server spamd[2696]: )

There isn’t a real fix at the moment, only a work around at the moment;

The work-around fix.

Install SpamAssassin from Debian backports. Assuming that you have backports enabled, you can just do

sudo apt-get -t wheezy-backports install spamassassin

And now you’re running SpamAssassin 3.4, which is a a bit newer then the SpamAssassin package in stable.

Related Links

http://www.mail-archive.com/users@spamassassin.apache.org/msg91185.html

http://backports.debian.org/Instructions/

Leave a Reply

Your email address will not be published. Required fields are marked *