You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by tl...@adlmail.com on 2006/07/25 17:04:12 UTC

Errors in maillog regarding Net::DNS Modules and other .pm modules

Jul 22 00:00:01 adlsrv4 spamd[15294]: Use of uninitialized value in hash
element at
/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Message/Metadata/Received.pm
line 357, <GEN258> line 199.


Jul 22 00:00:04 adlsrv4 spamd[15294]: Use of uninitialized value in exists
at
/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/URIDNSBL.pm
line 718.


Jul 24 11:18:10 adlsrv4 spamd[97919]: Can't locate Net/DNS/RR/SOA.pm in
@INC (@INC contains: lib ../lib /usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8) at (eval 693)
line 3, <GEN144> line 84.

Jul 24 10:02:38 adlsrv4 spamd[97920]: Can't locate Net/DNS/RR/A.pm in @INC
(@INC contains: lib ../lib /usr/local/lib/perl5/site_perl/5.8.8
/usr/local/lib/perl5/5.8.8/BSDPAN
/usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl
/usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8) at (eval 232)
line 3, <GEN7> line 56.



Of course installing Net::DNS perl modules from cpan is the first step.

However It's not the only step. I found that on freebsd 6.1 that if i ran
cpan as root it did not correctly assign directory permissions on the
modules folder /usr/local/lib/perl5/5.8.8/site_perl/5.8.8/Net
by default it assigned 700 instead of 755.  As a result the setuid user
nobody that spamassassin runs as cannot read the modules.

Chmoding the Net folder in /usr/local/lib/perl5/5.8.8/site_perl/5.8.8/
solved this problem for me.  You may need to examine the permissions on
other folders based on the checks you have configuered in spamassassins
local.cf file.

I hope someone finds this usefull i spent a good deal of time tracking
this problem down.

Thomas Lindell