bayes fails learning, but only sometimes
IT Dept
itdept at FRACTALWEB.COM
Thu Dec 1 23:30:54 GMT 2005
[ The following text is in the "ISO-8859-1" character set. ]
[ Your display is set for the "US-ASCII" character set. ]
[ Some characters may be displayed incorrectly. ]
Glenn Steen wrote:
>(Smacks fo4rhead) Of course! I should have seen that too.
>Let me guess that the bayes_path is set to something like
>"/etc/MailScanner/bayes/"? It should be "/etc/MailScanner/bayes/bayes"
>(not a typo, the last "bayes" is part of the filename(s) created). Oh
>well. Now that it's been eloquently pointed out by Kai, it's so very
>obvious:-).
>
>
Glenn,
You are exactly right. It was set to "/etc/MailScanner/bayes/" instead
of "/etc/MailScanner/bayes/bayes". I've changed it now, and followed
Kai's instructions also.
Now when I try to get the system to learn spam, I get the following
error message:
SA Learn: error code 13 returned from sa-learn: bayes: lock: 14827
cannot create lockfile /etc/MailScanner/bayes/bayes.mutex: Permission
denied bayes: lock: 14827 cannot create lockfile
/etc/MailScanner/bayes/bayes.mutex: Permission denied bayes
expire_old_tokens: lock: 14827 cannot create lockfile
/etc/MailScanner/bayes/bayes.mutex: Permission denied lock: 14827 cannot
create lockfile /etc/MailScanner/bayes/bayes.mutex: Permission denied
Learned from 0 message(s) (1 message(s) examined).
The dir looks like so:
# ls -la
total 59688
drwxrwxrwt 3 root apache 8192 Dec 1 15:29 .
drwxr-xr-x 7 root root 4096 Dec 1 15:13 ..
-rw-rw-rw- 1 root root 864 Dec 1 15:29 bayes_journal
-rw------- 1 root root 12 Dec 1 15:29 bayes.mutex
-rwxrwxrwt 1 root apache 82612224 Dec 1 15:29 bayes_seen
-rw-rw---- 1 root apache 2781184 Dec 1 15:29 bayes_toks
-rwxrwxrwt 1 root apache 1338 Dec 1 15:14 .mutex
Not sure what to do next.
Chris
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list