You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alex <my...@gmail.com> on 2010/09/10 07:19:38 UTC

Configuring SPF

Hi,

I have a box running postfix and v3.2.5 with perl-5.8.8, and would
like to get SPF working. I can install the SPF-Query module, and it
works, but I'd like to get Mail::SPF::Server working:

[2616] dbg: diag: module not installed: Mail::SPF ('require' failed)
[2616] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)

I've built and installed Mail::SPF::Server v2.007, but for some reason
it doesn't find it. I thought the SPF.pm that's included with SA would
be sufficient? It apparently doesn't find that, either.

I've installed SPF::Server in
/usr/lib/perl5/vendor_perl/5.8.8/Mail/SPF, and a few other
directories, honestly, and none of them work (not all at the same
time, but in various @INC directories in hopes it would find it in one
of them..). What is the mechanism SA uses to determine where the
module is, and whether it can be loaded? Why wouldn't the default one
not work properly?

If I install the SPF::Query module, then run spamassassin --lint -D,
it produces this:

[2845] dbg: diag: module not installed: Mail::SPF ('require' failed)
[2845] dbg: diag: module installed: Mail::SPF::Query, version 1.999001
[2845] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
...
[2845] dbg: spf: checking to see if the message has a Received-SPF
header that we can use
[2845] dbg: spf: cannot load Mail::SPF module or create
Mail::SPF::Server object: Undefined subroutine &Mail::SPF::qv calle
d at /usr/lib/perl5/site_perl/5.8.8/Mail/SPF.pm line 24.
[2845] dbg: spf: Compilation failed in require at
/usr/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/SPF.pm line
390.
[2845] dbg: spf: attempting to use legacy Mail::SPF::Query module instead
[2845] dbg: spf: using Mail::SPF::Query for SPF checks

Thanks for any ideas.
Alex

Re: Configuring SPF

Posted by Michael Scheidell <mi...@secnap.com>.
  On 9/10/10 1:19 AM, Alex wrote:
> I have a box running postfix and v3.2.5 w
SA 3.3.1 current version, but that isn't your problem.
read source directory, 'INSTALL' to make sure you understand your 
dependencies (and try to use a current version.  its easier to help you)

"

I've installed SPF::Server in
/usr/lib/perl5/vendor_perl/5.8.8/Mail/SPF,

"

you might be overwritting SPF.pm

you might have perl so messed up you need to start all over.

just read the install file, install what is needed, via ports, rpm's, 
yum or cpan if none of the above.

-- 
Michael Scheidell, CTO
o: 561-999-5000
d: 561-948-2259
ISN: 1259*1300
 > *| *SECNAP Network Security Corporation

    * Certified SNORT Integrator
    * 2008-9 Hot Company Award Winner, World Executive Alliance
    * Five-Star Partner Program 2009, VARBusiness
    * Best in Email Security,2010: Network Products Guide
    * King of Spam Filters, SC Magazine 2008

______________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(r). 
For Information please see http://www.secnap.com/products/spammertrap/
______________________________________________________________________