Hello Tony,

Monday, March 15, 2004, 3:02:23 PM, you wrote:

>> If you have access to the /etc/mail/spamassassin/local.cf
>> file (may be in a different directory according to how SA is 
>> called), then you can add the parameter
>> > bayes_auto_learn 1
>> to that file. 

TB> Okey doke, done that...now how can I tell if it worked???
TB> Do I need to restart something maybe?

If you're running spamd/spamc or equivalent, you normally need to restart
in order to have parameter changes take effect.

If auto-learn is turned on, then the bayes databases will be updated by
emails which exceed the auto-learn thresholds in either direction. I find
three bayes database files in my $home/.spamassassin directory:
bayes_journal, bayes_seen, and bayes_toks.  All three are updated during
the auto-learn process.

>> T> How much do you want for a copy of your scripts? ;)
>> 
>> I like salt-free sunflower seeds...

TB> LOL, send me your address and they're on their way ;)

Bob Menschel
P. O. Box  2369
Citrus Heights, CA 95611
Donations gratefully accepted from all sources. Not tax deductible.

TB> Had a look at the script and can even reasonably understand it - is not as
TB> complex as I expected - hurrah!
TB> That's the good news.

TB> The bad news is, when I try (not using your script _just_ yet) to run
TB> sa-learn NOT logged on as root (I know root works) I get an error, which
TB> tells me to run it using -D, which produces this:

TB> -bash-2.05b$ sa-learn --spam --showdots --mbox
TB>                        mail/arielbusiness.com/abutler/spam  -D
TB> debug: Score set 0 chosen.
TB> ...
TB> debug: using "/home/arielbus/.spamassassin/user_prefs" for user prefs file
TB> debug: bayes: 30704 tie-ing to DB file R/O
TB> /home/arielbus/.spamassassin/bayes_toks
TB> Cannot open bayes databases /home/arielbus/.spamassassin/bayes_* R/O: tie
TB>                failed:
TB> ...
TB> Cannot open bayes databases /home/arielbus/.spamassassin/bayes_* R/W: tie
TB>                failed: File exists
TB> ...
TB> Cannot open bayes databases /home/arielbus/.spamassassin/bayes_* R/W: tie
TB>                failed: File exists
TB> ...

TB> Question: what does it all mean & how can I fix it???????

Looks to me like you either have a permissions problem with those bayes_*
files, or the files and software are incompatible.

When you issue the command above, what userid are you, who owns those
files, and what are their permissions?  If owned by root and changable
only by root, that could cause this problem.

Is this an upgrade from an earlier (2.5x or older) version? If so, did
you follow the install instructions for updating the database?

Do you have the correct perl DB package installed at a reasonably current
level?

When my host moved my domains from 2.5x to 2.6x, two of my Bayes
databases migrated fine, and one ended up "broken" with symptoms not
dissimilar from what you show.  I deleted those bayes_* files, waited for
SA to recreate them during normal processing, and then used sa-learn to
reload them with current emails.  Worked fine.

Bob Menschel


Reply via email to