You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Ronan McGlue <r....@qub.ac.uk> on 2005/05/17 10:49:21 UTC

sa-learn training

trying to train bayes with german spam
so i take a mail out of my imap folder and put it into a sile on the 
spamD server..

I Vee-eye it and take out the spamassassin headers ( is this the right 
move?) then run the following


root@dung:/home/ronan# sa-learn --spam -D spam1
debug: SpamAssassin version 3.0.3
debug: Score set 0 chosen.
debug: running in taint mode? yes
debug: Running in taint mode, removing unsafe env vars, and resetting PATH
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: Final PATH set to: 
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
debug: using "/etc/mail/spamassassin/init.pre" for site rules init.pre
debug: config: read file /etc/mail/spamassassin/init.pre
debug: using "/usr/share/spamassassin" for default rules dir
debug: config: read file /usr/share/spamassassin/10_misc.cf
debug: config: read file /usr/share/spamassassin/20_anti_ratware.cf
debug: config: read file /usr/share/spamassassin/20_body_tests.cf
debug: config: read file /usr/share/spamassassin/20_compensate.cf
debug: config: read file /usr/share/spamassassin/20_dnsbl_tests.cf
debug: config: read file /usr/share/spamassassin/20_drugs.cf
debug: config: read file /usr/share/spamassassin/20_fake_helo_tests.cf
debug: config: read file /usr/share/spamassassin/20_head_tests.cf
debug: config: read file /usr/share/spamassassin/20_html_tests.cf
debug: config: read file /usr/share/spamassassin/20_meta_tests.cf
debug: config: read file /usr/share/spamassassin/20_phrases.cf
debug: config: read file /usr/share/spamassassin/20_porn.cf
debug: config: read file /usr/share/spamassassin/20_ratware.cf
debug: config: read file /usr/share/spamassassin/20_uri_tests.cf
debug: config: read file /usr/share/spamassassin/23_bayes.cf
debug: config: read file /usr/share/spamassassin/25_body_tests_es.cf
debug: config: read file /usr/share/spamassassin/25_hashcash.cf
debug: config: read file /usr/share/spamassassin/25_spf.cf
debug: config: read file /usr/share/spamassassin/25_uribl.cf
debug: config: read file /usr/share/spamassassin/30_text_de.cf
debug: config: read file /usr/share/spamassassin/30_text_fr.cf
debug: config: read file /usr/share/spamassassin/30_text_nl.cf
debug: config: read file /usr/share/spamassassin/30_text_pl.cf
debug: config: read file /usr/share/spamassassin/50_scores.cf
debug: config: read file /usr/share/spamassassin/60_whitelist.cf
debug: using "/etc/mail/spamassassin" for site rules dir
debug: config: read file /etc/mail/spamassassin/70_sare_adult.cf
debug: config: read file /etc/mail/spamassassin/70_sare_bayes_poison_nxm.cf
debug: config: read file /etc/mail/spamassassin/70_sare_evilnum0.cf
debug: config: read file /etc/mail/spamassassin/70_sare_genlsubj.cf
debug: config: read file /etc/mail/spamassassin/70_sare_header.cf
debug: config: read file /etc/mail/spamassassin/70_sare_highrisk.cf
debug: config: read file /etc/mail/spamassassin/70_sare_html.cf
debug: config: read file /etc/mail/spamassassin/70_sare_oem.cf
debug: config: read file /etc/mail/spamassassin/70_sare_random.cf
debug: config: read file /etc/mail/spamassassin/70_sare_specific.cf
debug: config: read file /etc/mail/spamassassin/70_sare_spoof.cf
debug: config: read file /etc/mail/spamassassin/70_sare_unsub.cf
debug: config: read file /etc/mail/spamassassin/72_sare_bml_post25x.cf
debug: config: read file 
/etc/mail/spamassassin/72_sare_redirect_post3.0.0.cf
debug: config: read file /etc/mail/spamassassin/99_sare_fraud_post25x.cf
debug: config: read file /etc/mail/spamassassin/local.cf
debug: config: read file /etc/mail/spamassassin/tripwire.cf
debug: using "/root/.spamassassin/user_prefs" for user prefs file
debug: config: read file /root/.spamassassin/user_prefs
debug: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
debug: plugin: registered 
Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8ce3364)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered 
Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8cd0a04)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x8cffa34)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8ce3364) 
implements 'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x8cd0a04) 
implements 'parse_config'
debug: bayes: 14319 tie-ing to DB file R/O 
/home/spam/.spamassassin/bayes_toks
debug: bayes: 14319 tie-ing to DB file R/O 
/home/spam/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: Score set 2 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 14319 created /home/spam/.spamassassin/bayes.mutex
debug: lock: 14319 trying to get lock on /home/spam/.spamassassin/bayes 
with 300 timeout
debug: lock: 14319 link to /home/spam/.spamassassin/bayes.mutex: link ok
debug: bayes: 14319 tie-ing to DB file R/W 
/home/spam/.spamassassin/bayes_toks
debug: bayes: 14319 tie-ing to DB file R/W 
/home/spam/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: refresh: 14319 refresh /home/spam/.spamassassin/bayes.mutex
debug: refresh: 14319 refresh /home/spam/.spamassassin/bayes.mutex
debug: synced Bayes databases from journal in 1 seconds: 1591 unique 
entries (2081 total entries)
debug: refresh: 14319 refresh /home/spam/.spamassassin/bayes.mutex
debug: refresh: 14319 refresh /home/spam/.spamassassin/bayes.mutex
debug: Syncing complete.

the sa-learn prog just halts here indefinately until i ctrl-c it and it 
finishes with

debug: bayes: 14319 untie-ing
debug: bayes: 14319 untie-ing db_toks
debug: bayes: 14319 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 14319 unlocked /home/spam/.spamassassin/bayes.mutex
Learned from 0 message(s) (0 message(s) examined).
interrupted at /usr/bin/sa-learn line 412.
root@dung:/home/ronan#

what am i doing not right...?
-- 
========

Regards

Ronan McGlue
Info. Services
QUB

Re: sa-learn training

Posted by Matt Kettler <mk...@evi-inc.com>.
Ronan McGlue wrote:
> trying to train bayes with german spam
> so i take a mail out of my imap folder and put it into a sile on the
> spamD server..
> 
> I Vee-eye it and take out the spamassassin headers ( is this the right
> move?) then run the following
> 
> 
> root@dung:/home/ronan# sa-learn --spam -D spam1
>
<snip>

> debug: Syncing complete.
> 
> the sa-learn prog just halts here indefinately until i ctrl-c it and it
> finishes with
> 
> debug: bayes: 14319 untie-ing
> debug: bayes: 14319 untie-ing db_toks
> debug: bayes: 14319 untie-ing db_seen
> debug: bayes: files locked, now unlocking lock
> debug: unlock: 14319 unlocked /home/spam/.spamassassin/bayes.mutex
> Learned from 0 message(s) (0 message(s) examined).
> interrupted at /usr/bin/sa-learn line 412.
> root@dung:/home/ronan#
> 
> what am i doing not right...?

It looks like sa-learn is trying to run a bayes expire. You might try running
sa-learn --force-expire before training messages.

Note, expiry can take a somewhat long time, but shouldn't take more than 10 mins.




Re: sa-learn training

Posted by Theo Van Dinter <fe...@kluge.net>.
On Tue, May 17, 2005 at 08:49:21AM +0000, Ronan McGlue wrote:
> root@dung:/home/ronan# sa-learn --spam -D spam1

Try "sa-learn --spam -D < spam1"

> debug: refresh: 14319 refresh /home/spam/.spamassassin/bayes.mutex
> debug: refresh: 14319 refresh /home/spam/.spamassassin/bayes.mutex
> debug: Syncing complete.
> 
> the sa-learn prog just halts here indefinately until i ctrl-c it and it 
> finishes with
[...]
> 
> what am i doing not right...?

The "-D spam1" indicated you wanted to see the spam1 level debug output.  If
you do the "-D < spam1" as above, it'll do what you want.

-- 
Randomly Generated Tagline:
"I'm special!" (twice)
 
 	--Ralph Wiggum
 	  Bart Star (Episode 5F03)