You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by "Russ B." <sp...@satexas.com> on 2006/02/12 20:29:27 UTC
Bayes Help! Stopped working 3.0.x --> 3.1.0
I'm upgrading my existing server farm from SpamAss 3.0.x to 3.1.0... all
is fine except Bayes. Identical setup, no pathing changes, same local.cf
file - everything... but bayes isn't working.
Here are my bayes setups in my local.cf:
use_bayes 1
use_bayes_rules 1
bayes_auto_learn 1
bayes_auto_learn_threshold_nonspam 0.8
bayes_auto_learn_threshold_spam 12.0
bayes_auto_expire 1
bayes_expiry_max_db_size 150000
bayes_journal_max_size 102400
bayes_learn_to_journal 1
bayes_path /usr/local/etc/bayes/bayes
bayes_file_mode 0777
lock_method flock
score BAYES_00 -3.5
score BAYES_50 -1.0
score BAYES_60 0.3
score BAYES_70 0.7
score BAYES_80 1.0
score BAYES_90 1.5
score BAYES_95 2.0
score BAYES_99 3.5
Now... I've been using a server-side bayes where everyone uses the same
bayes files which has been working GREAT, and it's easier for me to push
known spam updates via a distribution script to all our servers at once,
making it so ALL users get our bayes changes...
The bayes files live in /usr/local/etc/bayes/bayes just like the config
says...
The permissions are correct, as you can see below:
drwxr-xr-x 8 root wheel 1024 Feb 12 01:44 ../
drwxrwxrwx 3 root wheel 3072 Feb 12 03:43 ./
-rw-rw-rw- 1 root wheel 30 Feb 12 03:05 bayes.mutex
-rw-rw-rw- 1 loria wheel 58 Feb 2 00:20 bayes.lock
-rw-rw-rw- 1 root wheel 65536 Feb 12 13:05 bayes_toks
-rw-rw-rw- 1 root wheel 65536 Feb 12 13:05 bayes_seen
And in the user accounts, inside ~user/.spamassassin, I have:
lrwxr-xr-x 1 root techs 56 Feb 12 03:12 user_prefs@ ->
/usr/local/apache/htdocs/squirrelmail/data/username_goes_here.spam
lrwxr-xr-x 1 root techs 31 Feb 12 04:45 bayes_toks@ ->
/usr/local/etc/bayes/bayes_toks
lrwxr-xr-x 1 root techs 31 Feb 12 04:45 bayes_seen@ ->
/usr/local/etc/bayes/bayes_seen
lrwxr-xr-x 1 root techs 34 Feb 12 04:45 bayes_journal@ ->
/usr/local/etc/bayes/bayes_journal
(where username_goes_here is the name of the user who's account it is)
... and all that works GREAT on 3.0.x, but broke on 3.1.0...
"Broke" as in no bayes scoring is going on in logs, no activity going on
in the bayes directory of /usr/local/etc/bayes as shown above.
Any ideas? Thanks!
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by Jonn R Taylor <jo...@taylortelephone.com>.
First lets make sure SA is not looking at the other config
files. Rename the dir's they are in. Then run spamd in
debug and see what it is doing.
Jonn
On Sun, 12 Feb 2006 16:31:04 -0600 (CST)
"Russ B." <sp...@satexas.com> wrote:
>> Did you check v310.pre and init.pre config files?
>> Jonn
>
> Those are in /usr/local/etc/mail/spamassassin and I'm
>not using those....
>
> So since my config directory is defined as
>/etc/mail/spamassassin... it
> should ignore those, yes?
>
> But if it WASN'T ignoring those, why does sa-learn still
>go after
> /usr/local/etc/bayes/bayes as the config dir - which
>definately isn't in
> the /usr/local/etc/mail/spamassassin/v310.pre and
>init.pre files..?
>
> Appreciate the help!
>
> Russ
>
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by "Russ B." <sp...@satexas.com>.
> Did you check v310.pre and init.pre config files?
> Jonn
Those are in /usr/local/etc/mail/spamassassin and I'm not using those....
So since my config directory is defined as /etc/mail/spamassassin... it
should ignore those, yes?
But if it WASN'T ignoring those, why does sa-learn still go after
/usr/local/etc/bayes/bayes as the config dir - which definately isn't in
the /usr/local/etc/mail/spamassassin/v310.pre and init.pre files..?
Appreciate the help!
Russ
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by Jonn R Taylor <jo...@taylortelephone.com>.
Did you check v310.pre and init.pre config files?
Jonn
On Sun, 12 Feb 2006 15:33:11 -0600 (CST)
"Russ B." <sp...@satexas.com> wrote:
>> Russ.. did you run sa-learn --sync after you did your
>>upgrade?
>>
>
> I did, and I ran it again and noticed something odd...
>
> My config dir is /etc/mail/spamassassin
>
> My local.cf USED to have /usr/local/etc/bayes/bayes as
>the bayes_path, but
> I have since changed it to /tmp/bayes/bayes and
>/tmp/bayes for testing
> purposes. It currently has the /tmp/bayes/bayes setting.
>
> However with /tmp/bayes/bayes in the .cf file - when I
>run "sa-learn
> --siteconfigpath=/etc/mail/spamassassin --sync", it
>updates the datestamp
> on the bayes files in my old bayes location -
>/usr/local/etc/bayes/bayes
>
>> ls -altr /usr/local/etc/bayes
> -rw-rw-rw- 1 root wheel 65536 Feb 12 15:09 bayes_toks
> -rw-rw-rw- 1 root wheel 65536 Feb 12 15:09 bayes_seen
>
> ... and that's AFTER I've restarted spamd multiple times
>- even gettting
> confirmation with this in my log file:
>
> spamd[96453]: config: SpamAssassin failed to parse line,
> "/tmp/bayes/bayes" is not valid for "bayes_path",
>skipping:
> bayes_path_/tmp/bayes/bayes
>
> So my original question was:
>
> 1. What's wrong with "bayes_path
>/usr/local/etc/bayes/bayes" where it was
> working before in 3.0.x and now not in 3.1.x..."
>
> ...to ADD a new find.. using "sa-learn" obviously is
>messing with the
> files in my old location at /usr/local/etc/bayes/bayes
>when my config file
> says /tmp/bayes/bayes
>
> ... and yes, I've done a word search on my
>/etc/mail/spamassassin
> directory and there is absolutely no other instance of
>"bayes_path" or
> "/usr/local/etc/bayes/bayes" anywhere other than that
>once instance in my
> /etc/mail/spamassassin/local.cf.
>
> Baffled.
>
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by "Russ B." <sp...@satexas.com>.
> Russ.. did you run sa-learn --sync after you did your upgrade?
>
I did, and I ran it again and noticed something odd...
My config dir is /etc/mail/spamassassin
My local.cf USED to have /usr/local/etc/bayes/bayes as the bayes_path, but
I have since changed it to /tmp/bayes/bayes and /tmp/bayes for testing
purposes. It currently has the /tmp/bayes/bayes setting.
However with /tmp/bayes/bayes in the .cf file - when I run "sa-learn
--siteconfigpath=/etc/mail/spamassassin --sync", it updates the datestamp
on the bayes files in my old bayes location - /usr/local/etc/bayes/bayes
> ls -altr /usr/local/etc/bayes
-rw-rw-rw- 1 root wheel 65536 Feb 12 15:09 bayes_toks
-rw-rw-rw- 1 root wheel 65536 Feb 12 15:09 bayes_seen
... and that's AFTER I've restarted spamd multiple times - even gettting
confirmation with this in my log file:
spamd[96453]: config: SpamAssassin failed to parse line,
"/tmp/bayes/bayes" is not valid for "bayes_path", skipping:
bayes_path_/tmp/bayes/bayes
So my original question was:
1. What's wrong with "bayes_path /usr/local/etc/bayes/bayes" where it was
working before in 3.0.x and now not in 3.1.x..."
...to ADD a new find.. using "sa-learn" obviously is messing with the
files in my old location at /usr/local/etc/bayes/bayes when my config file
says /tmp/bayes/bayes
... and yes, I've done a word search on my /etc/mail/spamassassin
directory and there is absolutely no other instance of "bayes_path" or
"/usr/local/etc/bayes/bayes" anywhere other than that once instance in my
/etc/mail/spamassassin/local.cf.
Baffled.
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by Matt Kettler <mk...@comcast.net>.
Jonn R Taylor wrote:
> According to the docs these two options where removed.
> http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Conf.html
>
> bayes_auto_learn_threshold_nonspam 0.8
> bayes_auto_learn_threshold_spam 12.0
No they were not. .they were moved to a plugin, which is loaded by default.
http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Plugin_AutoLearnThreshold.html
Russ.. did you run sa-learn --sync after you did your upgrade?
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by "Russ B." <sp...@satexas.com>.
> According to the docs these two options where removed.
> http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Conf.html
> bayes_auto_learn_threshold_nonspam 0.8
> bayes_auto_learn_threshold_spam 12.0
>
> Check your log to see if you have any errors.
>
> Jonn
I don't know how I missed this, but found this in the log...
config: SpamAssassin failed to parse line, "/usr/local/etc/bayes" is not
valid for "bayes_path", skipping: bayes_path /usr/local/etc/bayes
(Along with the fails on the threshholds, as you're correct - they were
removed)
I've tried both /usr/local/etc/bayes and /usr/local/etc/bayes/bayes.. to
no avail.
And once again the :
bayes_path /usr/local/etc/bayes/bayes
... works GREAT in 2.x and 3.0.x.. but in 3.1.0?
UG.. what am I missing?
The "Docs" for Spamass 3.1.x say:
bayes_path /path/filename (default: ~/.spamassassin/bayes)
This is the directory and filename for Bayes databases. Several databases
will be created, with this as the base directory and filename, with _toks,
_seen, etc. appended to the base. The default setting results in files
called ~/.spamassassin/bayes_seen, ~/.spamassassin/bayes_toks, etc.
By default, each user has their own in their ~/.spamassassin directory
with mode 0700/0600. For system-wide SpamAssassin use, you may want to
reduce disk space usage by sharing this across all users. However, Bayes
appears to be more effective with individual user databases.
Re: Bayes Help! Stopped working 3.0.x --> 3.1.0
Posted by Jonn R Taylor <jo...@taylortelephone.com>.
According to the docs these two options where removed.
http://spamassassin.apache.org/full/3.1.x/dist/doc/Mail_SpamAssassin_Conf.html
bayes_auto_learn_threshold_nonspam 0.8
bayes_auto_learn_threshold_spam 12.0
Check your log to see if you have any errors.
Jonn
On Sun, 12 Feb 2006 13:29:27 -0600 (CST)
"Russ B." <sp...@satexas.com> wrote:
> I'm upgrading my existing server farm from SpamAss 3.0.x
>to 3.1.0... all
> is fine except Bayes. Identical setup, no pathing
>changes, same local.cf
> file - everything... but bayes isn't working.
>
> Here are my bayes setups in my local.cf:
>
> use_bayes 1
> use_bayes_rules 1
>
> bayes_auto_learn 1
> bayes_auto_learn_threshold_nonspam 0.8
> bayes_auto_learn_threshold_spam 12.0
> bayes_auto_expire 1
> bayes_expiry_max_db_size 150000
> bayes_journal_max_size 102400
> bayes_learn_to_journal 1
> bayes_path /usr/local/etc/bayes/bayes
> bayes_file_mode 0777
> lock_method flock
> score BAYES_00 -3.5
> score BAYES_50 -1.0
> score BAYES_60 0.3
> score BAYES_70 0.7
> score BAYES_80 1.0
> score BAYES_90 1.5
> score BAYES_95 2.0
> score BAYES_99 3.5
>
> Now... I've been using a server-side bayes where
>everyone uses the same
> bayes files which has been working GREAT, and it's
>easier for me to push
> known spam updates via a distribution script to all our
>servers at once,
> making it so ALL users get our bayes changes...
>
> The bayes files live in /usr/local/etc/bayes/bayes just
>like the config
> says...
>
> The permissions are correct, as you can see below:
>
> drwxr-xr-x 8 root wheel 1024 Feb 12 01:44 ../
> drwxrwxrwx 3 root wheel 3072 Feb 12 03:43 ./
> -rw-rw-rw- 1 root wheel 30 Feb 12 03:05
>bayes.mutex
> -rw-rw-rw- 1 loria wheel 58 Feb 2 00:20
>bayes.lock
> -rw-rw-rw- 1 root wheel 65536 Feb 12 13:05
>bayes_toks
> -rw-rw-rw- 1 root wheel 65536 Feb 12 13:05
>bayes_seen
>
> And in the user accounts, inside ~user/.spamassassin, I
>have:
> lrwxr-xr-x 1 root techs 56 Feb 12 03:12
>user_prefs@ ->
> /usr/local/apache/htdocs/squirrelmail/data/username_goes_here.spam
> lrwxr-xr-x 1 root techs 31 Feb 12 04:45
>bayes_toks@ ->
> /usr/local/etc/bayes/bayes_toks
> lrwxr-xr-x 1 root techs 31 Feb 12 04:45
>bayes_seen@ ->
> /usr/local/etc/bayes/bayes_seen
> lrwxr-xr-x 1 root techs 34 Feb 12 04:45
>bayes_journal@ ->
> /usr/local/etc/bayes/bayes_journal
> (where username_goes_here is the name of the user who's
>account it is)
>
> ... and all that works GREAT on 3.0.x, but broke on
>3.1.0...
>
> "Broke" as in no bayes scoring is going on in logs, no
>activity going on
> in the bayes directory of /usr/local/etc/bayes as shown
>above.
>
> Any ideas? Thanks!
>
>
>