Spamassassin refuses to auto-learn!
Martin Hepworth
martinh at SOLID-STATE-LOGIC.COM
Tue May 18 09:03:06 IST 2004
Billy
spamassassin -D --lint -C /etc/MailScanner/spam.assassin.prefs.conf
so it reads the correct info for bayes paths etc..
--
Martin Hepworth
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300
Billy A. Pumphrey wrote:
> On the same line...here is my output and having maybe a similar problem
> that I can't figure out:
>
> SNIP, NOTICE THAT THERE SEEMS TO BE 2 BAYES
>
> debug: ignore: using a test message to lint rules
> debug: using "/usr/share/spamassassin" for default rules dir
> debug: using "/etc/mail/spamassassin" for site rules dir
> debug: using "/root/.spamassassin" for user state dir
> debug: using "/root/.spamassassin/user_prefs" for user prefs file
> debug: using "/root/.spamassassin" for user state dir
> debug: bayes: 6364 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
> debug: bayes: 6364 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
> debug: bayes: found bayes db version 2
> debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB <
> 200
> debug: bayes: 6364 untie-ing
> debug: bayes: 6364 untie-ing db_toks
> debug: bayes: 6364 untie-ing db_seen
> debug: Score set 1 chosen.
> debug: Initialising learner
> debug: using "/root/.spamassassin" for user state dir
> debug: bayes: 6364 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
> debug: bayes: 6364 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
> debug: bayes: found bayes db version 2
> debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB <
> 200
> debug: bayes: 6364 untie-ing
> debug: bayes: 6364 untie-ing db_toks
> debug: bayes: 6364 untie-ing db_seen
>
> Also a ls -la returns this in my /var/spool/spamassassin directory:
> [root at MailScanner spamassassin]# ls -la
> total 1104
> drwxr-xr-x 2 root root 4096 May 17 17:42 .
> drwxr-xr-x 19 root root 4096 May 13 20:05 ..
> -rw------- 1 root root 53248 May 17 17:42 bayes_seen
> -rw------- 1 root root 1323008 May 17 17:42 bayes_toks
>
> AND THIS IN THE /ROOT/.SPAMASSASSIN DIRECTORY
> [root at MailScanner .spamassassin]# ls -la
> total 28
> drwx------ 2 root root 4096 May 14 13:54 .
> drwxr-x--- 26 root root 4096 May 17 17:45 ..
> -rw------- 1 root root 12288 May 14 13:54 bayes_seen
> -rw------- 1 root root 12288 May 14 13:54 bayes_toks
> -rw-r--r-- 1 root root 1165 Apr 6 10:58 user_prefs
>
> NOTE: LOOKS LIKE THE /VAR/SPOOL/SPAMASSASSIN DIR IS WORKING IN SOME FORM
> BY LOOKING AT THE DATE
>
> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> Behalf Of Matt Kettler
> Sent: Thursday, May 13, 2004 12:25 PM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: Spamassassin refuses to auto-learn!
>
> At 11:46 PM 5/13/2004, Michael Freeman wrote:
>
>> Iv looked at the data base we have in /root/.spamassasin and it looks
>>correct but none of these files are getting any bigger or smaller. Are
>>they corrupt, are we missing something in this directory?
>
>
> Try spamassassin --lint -D. The debug output will tell you if somethings
> wrong with your bayes DB.
>
> This is some relevant fragments from a working copy
>
> debug: bayes: 2653 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
> debug: bayes: 2653 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
> debug: bayes: found bayes db version 2
> debug: Score set 3 chosen.
> debug: Initialising learner
>
> <snip, 4 lines of DNS tests>
>
> debug: bayes corpus size: nspam = 147399, nham = 8796
> debug: uri tests: Done uriRE
> debug: tokenize: header tokens for *F = "U*ignore
> D*compiling.spamassassin.taint.org D*spamassassin.taint.org D*taint.org
> D*org"
> debug: tokenize: header tokens for *m = " 1084464673 lint_rules "
> debug: bayes token 'somewhat' => 0.0778688728996331
> debug: bayes token 'H*F:D*org' => 0.142590966837836
> debug: bayes: score = 0.0423511015549608
>
> -------------------------- MailScanner list ----------------------
> To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
> Before posting, please see the Most Asked Questions at
> http://www.mailscanner.biz/maq/ and the archives at
> http://www.jiscmail.ac.uk/lists/mailscanner.html
>
> -------------------------- MailScanner list ----------------------
> To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
> Before posting, please see the Most Asked Questions at
> http://www.mailscanner.biz/maq/ and the archives at
> http://www.jiscmail.ac.uk/lists/mailscanner.html
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.
**********************************************************************
-------------------------- MailScanner list ----------------------
To leave, send leave mailscanner to jiscmail at jiscmail.ac.uk
Before posting, please see the Most Asked Questions at
http://www.mailscanner.biz/maq/ and the archives at
http://www.jiscmail.ac.uk/lists/mailscanner.html
More information about the MailScanner
mailing list