From: "Bo Mellberg" <[EMAIL PROTECTED]>
I have SA 3.1.4 configured and running on Debian Sarge using apt-get.
I'm finding it hard to know what directory is actually used for the
bayes-database:
max:~# ls /root/.spamassassin/ -al
total 2344
drwx------ 2 root root 4096 Sep 8 07:52 .
drwxr-xr-x 12 root root 4096 Sep 5 09:37 ..
-rw------- 1 root root 12288 Sep 4 14:20 auto-whitelist
-rw-rw-rw- 1 root root 6 Sep 4 14:20 auto-whitelist.mutex
-rw-rw-rw- 1 root root 13992 Sep 4 14:08 bayes.mutex
-rw------- 1 root root 344064 Sep 4 14:05 bayes_seen
-rw------- 1 root root 2605056 Sep 8 07:52 bayes_toks
-rw-r--r-- 1 root root 1487 Sep 4 14:20 user_prefs
max:~# ls /home/bosse/.spamassassin/ -al
total 4564
drwx--S--- 2 bosse bosse 4096 Sep 7 10:35 .
drwxr-sr-x 5 bosse bosse 4096 Aug 31 16:19 ..
-rw------- 1 root bosse 12288 Sep 6 01:06 auto-whitelist
-rw------- 1 root bosse 6 Sep 6 01:06 auto-whitelist.mutex
-rw-rw-rw- 1 bosse bosse 15282 Sep 6 01:06 bayes.mutex
-rw------- 1 root bosse 86136 Sep 6 01:06 bayes_journal
-rw------- 1 bosse bosse 339968 Sep 6 01:06 bayes_seen
-rw------- 1 root bosse 5255168 Sep 6 01:06 bayes_toks
-rw------- 1 root bosse 1165 Oct 2 2005 user_prefs
max:~# ls /var/spool/exim4/.spamassassin/ -al
total 3424
drwx------ 2 Debian-exim Debian-exim 4096 Sep 8 08:04 .
drwxr-x--- 7 Debian-exim Debian-exim 4096 Sep 5 15:54 ..
-rw------- 1 Debian-exim Debian-exim 1298432 Sep 8 08:04 auto-whitelist
-rw-rw-rw- 1 Debian-exim Debian-exim 6 Sep 4 14:15
auto-whitelist.mutex
-rw-rw-rw- 1 Debian-exim Debian-exim 6 Sep 4 14:15 bayes.mutex
-rw------- 1 Debian-exim Debian-exim 64704 Sep 8 08:04 bayes_journal
-rw------- 1 Debian-exim Debian-exim 319488 Sep 8 08:04 bayes_seen
-rw------- 1 Debian-exim Debian-exim 2629632 Sep 8 08:04 bayes_toks
-rw-r--r-- 1 Debian-exim Debian-exim 1175 Nov 1 2005 user_prefs
As you can see there are three directories which are all quite recently
changed. How can I make sure that only one directory is used?
I would like to make SA site-wide, but the filtering is working really
good right now so I'm afraid i'll break something. BTW, the user "bosse"
is my own account used for my email.
* I just performed sa-learn --sync -D as root.
* I've never touched the exim directory, still it has the latest change
date.
Thanks in advance.
/Bo
Bo - I can't particularly help you with the single site-wide database
thing. It seems you have a bit if a mishmash that depending on things
you have done may be actually acting the way you want it to act. It
looks like you might have played with training or tests as "bosse"
and "root" and otherwise have everything working on the exim4 global
database. Always test and train as the user that is used for filtering
the email by the MTA. Other tests and training are meaningless.
If you do not have many users at all, dozens or less, then do
consider using per user BAYES. It CAN provide the users with a better
anti-spam experience. The reasoning behind this is that one user's
spam is almost always going to be some other user's ham. If you have
hundreds then there might be a good reason for a single BAYES database.
By the time you're into thousands you're using virtual accounts and
a global database may be required. But it won't provide quite the pin-
point accuracy of a per user database.
{^_^}