Am 23.06.2015 um 03:45 schrieb Michael B Allen:
On Mon, Jun 22, 2015 at 8:01 PM, Reindl Harald <h.rei...@thelounge.net> wrote:
[root@www .spamassassin]# pwd
/var/log/spamassassin/.spamassassin
[root@www .spamassassin]# ls -la
total 1100
drwx------ 2 spamd spamd    4096 Jun 22 19:42 .
drwx------ 3 spamd spamd    4096 Jun  7 00:41 ..
-rw------- 1 spamd spamd   45056 Jun 22 19:42 bayes_seen
-rw------- 1 spamd spamd 1290240 Jun 22 19:42 bayes_toks
-rw-r--r-- 1 spamd spamd    1869 Jun  7 00:41 user_prefs

i doubt that SA is using the bayes of root
so you just rain the wrong bayes

So with a default install (CentOS 7 in my case and I suspect pretty
much all other systems), bayes will NOT just work by default unless
you explicitly modify /etc/mail/spamassassin/local.cf to tell sa-learn
to use the bayes db owned by spamd
(/var/log/spamassassin/.spamassassin/bayes in my case) and NOT the one
owned by root?

However, I have done this:

bayes_path /var/log/spamassassin/.spamassassin/bayes
bayes_file_mode 0777

and after running sa-learn again (as root) on ham, my db is now broken

STOP ACTING AS ROOT IN GENERAL

you need to train as the user spamd is running

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to