Can you post your local.cf?

Paul J. Smith wrote:
Still nothing.  I set the owner on the bayes dbs to 'spamd' which is the user 
the process is running under.  I also set og+rw.  Left overnight, no change.  
Only 2 hams, depsite the autolearn having picked loads of hams out of the feed 
with 'autolearn=spam/ham'.  I've just deleted the databases with 'sa-learn 
--clear' the a 'sa-learn --sync' and reset the permissons again to spamd.  
Still nothing is getting added though and I can't see any error messages, even 
in debug mode.

The output from sa-learn --sync -D is

[EMAIL PROTECTED] .spamassassin]# sa-learn -D --sync
debug: SpamAssassin version 3.0.2
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/kerberos/sbin', keeping.
debug: PATH included '/usr/kerberos/bin', keeping.
debug: PATH included '/usr/local/sbin', keeping.
debug: PATH included '/usr/local/bin', keeping.
debug: PATH included '/sbin', keeping.
debug: PATH included '/bin', keeping.
debug: PATH included '/usr/sbin', keeping.
debug: PATH included '/usr/bin', keeping.
debug: PATH included '/usr/X11R6/bin', keeping.
debug: PATH included '/root/bin', keeping.
debug: Final PATH set to: 
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/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/local.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(0x8ee298c)
debug: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::Hashcash=HASH(0x9831bb8)
debug: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
debug: plugin: registered Mail::SpamAssassin::Plugin::SPF=HASH(0x97fdbac)
debug: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8ee298c) implements 
'parse_config'
debug: plugin: Mail::SpamAssassin::Plugin::Hashcash=HASH(0x9831bb8) implements 
'parse_config'
debug: bayes: 25498 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
debug: bayes: 25498 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 0 spam(s) in Bayes DB < 200
debug: bayes: 25498 untie-ing
debug: bayes: 25498 untie-ing db_toks
debug: bayes: 25498 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner
debug: Syncing Bayes and expiring old tokens...
debug: lock: 25498 created 
/root/.spamassassin/bayes.lock.localhost.localdomain.25498
debug: lock: 25498 trying to get lock on /root/.spamassassin/bayes with 0 
retries
debug: lock: 25498 link to /root/.spamassassin/bayes.lock: link ok
debug: bayes: 25498 tie-ing to DB file R/W /root/.spamassassin/bayes_toks
debug: bayes: 25498 tie-ing to DB file R/W /root/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: refresh: 25498 refresh /root/.spamassassin/bayes.lock
debug: Syncing complete.
debug: bayes: 25498 untie-ing
debug: bayes: 25498 untie-ing db_toks
debug: bayes: 25498 untie-ing db_seen
debug: bayes: files locked, now unlocking lock
debug: unlock: 25498 unlink /root/.spamassassin/bayes.lock

Can anyone see anything wrong with this?

I'm starting spamd with "-d -c -m5 -H -i 0.0.0.0 -A 192.168.0.0/24 -s local5"

Can't understand how I got 2 hams in there in the first place!

Thanks.




-----Original Message-----
From: Richard Ozer [mailto:[EMAIL PROTECTED] Sent: 21 February 2005 21:58
To: Paul J. Smith
Cc: users@spamassassin.apache.org
Subject: Re: Auto learning


I had a similar issue and noticed that my bayes database files did not have the proper owner or permissions. That prevented auto learning from functioning.

RO

Paul J. Smith wrote:

Still setting up spamassassin. I've got it running and auto learning is enabled. It's been running all yesterday and over night. I can see it has tried to auto learn a lot of ham/spam and I've fed it a load of spam as well. Bayes doesn't seem to have kicked in though and if I do a sa-learn --sync -D I can see there are only 2 hams in there

debug: bayes: 6344 tie-ing to DB file R/O /root/.spamassassin/bayes_toks
debug: bayes: 6344 tie-ing to DB file R/O /root/.spamassassin/bayes_seen
debug: bayes: found bayes db version 3
debug: bayes: Not available for scanning, only 2 ham(s) in Bayes DB < 200
debug: bayes: 6344 untie-ing
debug: bayes: 6344 untie-ing db_toks
debug: bayes: 6344 untie-ing db_seen
debug: Score set 0 chosen.
debug: Initialising learner

It's definately autolearned far more than this. Does it not show here? Do I just have to wait longer or are they being stored somwhere waiting for me to sa-learn them? I'm using spamd 3.0.2 remotely.

Thanks.



Reply via email to