SpamAssassin not catching spam.

Julian Field mailscanner at ecs.soton.ac.uk
Fri Aug 15 23:06:47 IST 2003


Remove all trace of SpamAssassin as far as you can.
Certainly "rpm -e" any SpamAssassin RPM's that are installed.
Then download the latest version as source (i.e. the .tar.gz file) and
install that.

         tar xzf Mail-SpamAssassin-2.55.tar.gz
         cd Mail-SpamAssassin-2.55
         perl Makefile.PL
         make
         make test
         make install

Once you've done that, run this perl script

#!/usr/bin/perl
use Mail::SpamAssassin;
print $Mail::SpamAssassin::VERSION . "\n";

and it should print "2.55".

If it still prints 2.54 then you need to go on a hunt for any "Mail"
directories in /usr/lib/perl5 and /usr/local/lib and delete all traces of
"SpamAssassin.pm" and other SpamAssassin files from them. When you find a
SpamAssassin.pm you will find other files and directories there (and in
subdirectories of it) which are obviously related.

At 21:39 15/08/2003, you wrote:
>Thanks for that, I have done that and the results are:-
>
>[root at ns root]# /usr/bin/spamassassin -V
>SpamAssassin version 2.55
>[root at ns root]# /usr/local/bin/spamassassin -V
>SpamAssassin version 2.55
>[root at ns root]#
>
>Ths may be because the system is one I have taken over for a friend of mine
>& it was installe from RPM's & I have tried installing from source, I have
>now in the last few minutes uninstalled the rpm, I have now the
>"/usr/bin/spamassassin" has gone.
>
>I have tried MailScanner in debug mode:-
>
>debug: Score set 0 chosen.
>debug: running in taint mode? no
>debug: ignore: test message to precompile patterns and load modules
>debug: using "/usr/local/share/spamassassin" for default rules dir
>debug: using "/etc/mail/spamassassin" for site rules dir
>debug: using "/etc/MailScanner/spam.assassin.prefs.conf" for user prefs file
>configuration file "/usr/local/share/spamassassin/20_body_tests.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_compensate.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_head_tests.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_html_tests.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_meta_tests.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_phrases.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_porn.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/20_uri_tests.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>configuration file "/usr/local/share/spamassassin/23_bayes.cf" requires
>version 2.55 of SpamAssassin, but this is code version 2.54. Maybe you need
>to use the -c switch, or remove the old config files? Skipping this file at
>/usr/lib/perl5/site_perl/5.6.0/Mail/SpamAssassin/Conf.pm line 299.
>debug: bayes: 24036 tie-ing to DB file R/O /root/.spamassassin/_toks
>debug: bayes: 24036 tie-ing to DB file R/O /root/.spamassassin/_seen
>debug: debug: Only 90 ham(s) in Bayes DB < 200
>debug: bayes: 24036 untie-ing
>debug: bayes: 24036 untie-ing db_toks
>debug: bayes: 24036 untie-ing db_seen
>debug: Score set 1 chosen.
>debug: Initialising learner
>debug: bayes: 24036 tie-ing to DB file R/O /root/.spamassassin/_toks
>debug: bayes: 24036 tie-ing to DB file R/O /root/.spamassassin/_seen
>debug: debug: Only 90 ham(s) in Bayes DB < 200
>
>Any further clues ?
>
>Thanks, Denis
>
> >
> > My guess is the two entries in the above list:
> >
> > /usr/bin/spamassassin
> > /usr/local/bin/spamassassin
> >
> > Try doing:
> >
> > /usr/bin/spamassassin -V
> > /usr/local/bin/spamassassin -V
> >
> > and see if you get anything interesting...
> >
> > Antony.
> >

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support



More information about the MailScanner mailing list