SpamAssassin Error

From /var/log/maillog

Jan 11 15:26:57 server1 spamd[22650]: Can’t locate Mail/SPF/Query.pm in @INC (@INC contains: …/lib /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl) at /usr/lib/perl5/site_perl/5.8.0/Mail/SpamAssassin/Plugin/SPF.pm line 272, <GEN51> line 202.

Does this have anything to do with the last “manual” update for the SA package?

Any ideas?

Hi Justin,

Have you explicity enabled the SpamAsssassin SPF plugin? I don’t think it’s enabled by default.

You can try installing the missing perl module through cpan like this:

perl -MCPAN -e “install Mail::SPF”

Paul

I didn’t enable anything afer doing the update to SA that Chris had posted in the forums (http://interworx.com/forums/showthread.php?t=913&highlight=spamassassin+upgrade)

The only thing I have done is customize the maildrop config to allow me to drop emails at SiteWorx level and totally skip the SMTP level scan.
What is the SPF module and should I just disable or do you recommend trying to install the missing part?

Thanx

EDIT:
Found this link: http://www.akadia.com/services/spf.html
Sounds like a good idea, to help stop email address forging, which i think someone else recently asked about in another thread.

Looking in /etc/mail/spamassassin/init.pre I found this line

# SPF - perform SPF verification.
#
loadplugin Mail::SpamAssassin::Plugin::SPF

Is the above command (perl -MCPAN -e “install Mail::SPF”) safe, it wants to create a directory in my /root folder??? To setup some CPAN stuff?

Could I just install it manually with the instructions from the link above?

To install Mail::SPF::Query, do the following:

wget http://spf.pobox.com/Mail-SPF-Query-1.997.tar.gz
tar xvzf Mail-SPF-Query-1.997.tar.gz
cd Mail-SPF-Query-1.997
perl Makefile.PL
make
make test
make install

Anyone? :smiley:

Doing the spamassasin way seems to be the easiest, but I would also like to install the Qmail patch b/c why bother wasting CPU time scanning a mail that can easily be blocked by SPF at STMP level. Would patching Qmail with SPF cause any problems with Iworx?