Re: Where is my error?

2010-04-05 Thread Daniel McDonald
On 4/3/10 8:09 AM, Alex mysqlstud...@gmail.com wrote:

 Hi,
 
 I¹m building a new 3.3.1 SpamAssassin box from scratch, and ran into a small
 problem when I ran ‹lint:
 $ spamassassin --lint
 Apr  2 11:24:05.923 [22379] warn: plugin: failed to create instance of
 plugin Mail::SpamAssassin::Plugin::EmailBL.pm: Bareword
 Mail::SpamAssassin::Plugin::EmailBL not allowed while strict subs in use
 at (eval 73) line 1.
 
 With the little perl expertise that I have, I ask, what is the
 environment like for the user that you ran spamassassin as? IOW, does
 it know where to find the perl libs?

Yes.  Everything works fine other than the EmailBL.pm plugin.

 
 If you try su - user to create a login shell, does it then work?
Nope.  Not a permissions issue...

 Does perl -V show anything useful about your environment?

Nothing that sticks out:
$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 0) configuration:
  Platform:
osname=linux, osvers=2.6.22.18-server-1mdv,
archname=i386-linux-thread-multi
uname='linux n2.mandriva.com 2.6.22.18-server-1mdv #1 smp mon feb 11
16:46:24 est 2008 i686 intel(r) xeon(tm) cpu 2.80ghz gnulinux '
config_args='-des -Dinc_version_list=5.8.8 5.8.7 5.8.6 5.8.5 5.8.4 5.8.3
5.8.2 5.8.1 5.8.0 5.6.1 5.6.0 -Darchname=i386-linux -Dcc=gcc -Doptimize=-O2
-g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables -DDEBUGGING=-g -Dprefix=/usr
-Dvendorprefix=/usr -Dsiteprefix=/usr -Dsitebin=/usr/local/bin
-Dsiteman1dir=/usr/local/share/man/man1
-Dsiteman3dir=/usr/local/share/man/man3 -Dman3ext=3pm -Dcf_by=Mandriva
-Dmyhostname=localhost -dperladmin=r...@localhost -dcf_email=r...@localhost
-Dd_dosuid -Ud_csh -Duseshrplib -Duseithreads -Di_db -Di_ndbm -Di_gdbm'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=undef, use64bitall=undef, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
  Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing
-pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-I/usr/include/gdbm',
optimize='-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
-fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586
-mtune=generic -fasynchronous-unwind-tables',
cppflags='-D_REENTRANT -D_GNU_SOURCE -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='4.3.2', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=4, prototype=define
  Linker and Libraries:
ld='gcc', ldflags =' -L/usr/local/lib'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lpthread -lc
perllibs=-lnsl -ldl -lm -lcrypt -lutil -lpthread -lc
libc=/lib/libc-2.8.so, so=so, useshrplib=true, libperl=libperl.so
gnulibc_version='2.8'
  Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E
-Wl,-rpath,/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC', lddlflags='-shared -O2 -g -pipe
-Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
--param=ssp-buffer-size=4 -fomit-frame-pointer -march=i586 -mtune=generic
-fasynchronous-unwind-tables -L/usr/local/lib'


Characteristics of this binary (from libperl):
  Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP USE_ITHREADS
USE_LARGE_FILES USE_PERLIO USE_REENTRANT_API
  Locally applied patches:
Mandriva Linux patches
  Built under linux
  Compiled at Sep 18 2008 16:41:00
  @INC:
/usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.0
/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.0
/usr/lib/perl5/5.10.0/i386-linux-thread-multi
/usr/lib/perl5/5.10.0
/usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl
.

-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281




Re: Where is my error?

2010-04-05 Thread Mark Martinec
On Monday April 5 2010 13:01:40 Daniel McDonald wrote:
 I'm building a new 3.3.1 SpamAssassin box from scratch, and ran into a
 small problem when I ran lint:
 $ spamassassin --lint
 Apr  2 11:24:05.923 [22379] warn: plugin: failed to create instance of
 plugin Mail::SpamAssassin::Plugin::EmailBL.pm: Bareword
 Mail::SpamAssassin::Plugin::EmailBL not allowed while strict subs in
 use at (eval 73) line 1.

Leave out the '.pm' in your loadplugin directive.

Wrong:
  loadplugin Mail::SpamAssassin::Plugin::EmailBL.pm
right:
  loadplugin Mail::SpamAssassin::Plugin::EmailBL

Mark


Re: Where is my error?

2010-04-05 Thread Daniel McDonald
On 4/5/10 6:53 AM, Mark Martinec mark.martinec...@ijs.si wrote:

 On Monday April 5 2010 13:01:40 Daniel McDonald wrote:
 I'm building a new 3.3.1 SpamAssassin box from scratch, and ran into a
 small problem when I ran lint:
 $ spamassassin --lint
 Apr  2 11:24:05.923 [22379] warn: plugin: failed to create instance of
 plugin Mail::SpamAssassin::Plugin::EmailBL.pm: Bareword
 Mail::SpamAssassin::Plugin::EmailBL not allowed while strict subs in
 use at (eval 73) line 1.
 
 Leave out the '.pm' in your loadplugin directive.
 
 Wrong:
   loadplugin Mail::SpamAssassin::Plugin::EmailBL.pm
 right:
   loadplugin Mail::SpamAssassin::Plugin::EmailBL
 
 Mark

Thanks!  That fixed it - I knew it had to be simple, but the error message
really didn't tell me where to look.

Now on to Amavisd-new, sqlgrey, p0f, rbldnsd


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281



Re: Where is my error?

2010-04-03 Thread Alex
Hi,

 I’m building a new 3.3.1 SpamAssassin box from scratch, and ran into a small
 problem when I ran —lint:
 $ spamassassin --lint
 Apr  2 11:24:05.923 [22379] warn: plugin: failed to create instance of
 plugin Mail::SpamAssassin::Plugin::EmailBL.pm: Bareword
 Mail::SpamAssassin::Plugin::EmailBL not allowed while strict subs in use
 at (eval 73) line 1.

With the little perl expertise that I have, I ask, what is the
environment like for the user that you ran spamassassin as? IOW, does
it know where to find the perl libs?

If you try su - user to create a login shell, does it then work?
Does perl -V show anything useful about your environment?

Regards,
Alex


Where is my error?

2010-04-02 Thread Daniel McDonald
I¹m building a new 3.3.1 SpamAssassin box from scratch, and ran into a small
problem when I ran ‹lint:
$ spamassassin --lint
Apr  2 11:24:05.923 [22379] warn: plugin: failed to create instance of
plugin Mail::SpamAssassin::Plugin::EmailBL.pm: Bareword
Mail::SpamAssassin::Plugin::EmailBL not allowed while strict subs in use
at (eval 73) line 1.

Not much help to know where to look, so I tried in Debug mode:
Apr  2 11:30:32.971 [22440] dbg: config: fixed relative path:
/etc/mail/spamassassin/EmailBL.pm
Apr  2 11:30:32.972 [22440] dbg: plugin: loading
Mail::SpamAssassin::Plugin::EmailBL.pm from
/etc/mail/spamassassin/EmailBL.pm
Apr  2 11:30:32.979 [22440] warn: plugin: failed to create instance of
plugin Mail::SpamAssassin::Plugin::EmailBL.pm: Bareword
Mail::SpamAssassin::Plugin::EmailBL not allowed while strict subs in use
at (eval 73) line 1.

Still not a clue what precisely is wrong, so:

$ grep -n EmailBL *
emailbl.cf:1:ifplugin Mail::SpamAssassin::Plugin::EmailBL
EmailBL.cf:4:## loadplugin Mail::SpamAssassin::Plugin::EmailBL EmailBL.pm
EmailBL.cf:6:## See: http://sa.hege.li/EmailBL.pm
EmailBL.cf:11:ifplugin Mail::SpamAssassin::Plugin::EmailBL
EmailBL.pm:1:package Mail::SpamAssassin::Plugin::EmailBL;
EmailBL.pm:20:# loadplugin Mail::SpamAssassin::Plugin::EmailBL EmailBL.pm
EmailBL.pm:150:sub dbg { Mail::SpamAssassin::Plugin::dbg (EmailBL: @_); }
EmailBL.pm:160:$self-{EmailBL_available} = 1;
EmailBL.pm:162:$self-{EmailBL_available} = 0;
EmailBL.pm:189:return 1 unless $self-{EmailBL_available};
EmailBL.pm:222:return 0 unless $self-{EmailBL_available};
EmailBL.pm:357:$self-_add_desc($pms, $email, EmailBL hit
at $prs-{zone});
EmailBL.pm:382:$self-_add_desc($pms, $email, EmailBL
hit at $prs-{zone});
EmailBL.pm:584:return 0 unless $self-{EmailBL_available};
init.pre:39:loadplugin Mail::SpamAssassin::Plugin::EmailBL.pm EmailBL.pm

I don¹t see a bareword in any files, and nothing appears to be a eval line
73.

Can anyone help me track this down?

Oh, and I know the EmailBL project is dead.  I maintain a local list of bad
actors and feed them via DNS in a format compatible with EmailBL.pm


-- 
Daniel J McDonald, CCIE # 2495, CISSP # 78281