On Tuesday 28 February 2006 05:06 pm, Jonathan Nie wrote: > Greetings! > > I got a problem when I try to feed Bayes with large number of emails > (over 1500). It just hang there and I got the the following error > messages from maillog file: > > .....bayes: cannot open bayes databases /spamassassin/bayes_* R/W: lock > failed: File exists > > Does anyone know how to fix it?
The "bayes" section of my spamassassin setup in local.cf looks like this: #-------------------------------------- bayes_path /etc/mail/spamassassin/bayes/bayes bayes_file_mode 0777 use_bayes 1 #bayes_use_hapaxes 1 # Enable Bayes auto-learning bayes_auto_learn 1 bayes_auto_learn_threshold_nonspam 0.1 bayes_auto_learn_threshold_spam 9.0 #-------------------------------------- Which for me.. would mean that I'd cd to: /etc/mail/spamassassin/bayes .. and do a (as root): chmod 666 bayes* ... to allow anyprocess with access to those bayes files an opportunity to either open and read/write to it. Nobody else (that can login to the system) has access to the files on that file system so it should be safe (at least for me) to perform this and it not be a breach of security of some kind. I'm pretty sure that the owner/group of the bayes files are "spamd" so that it can access the files as it needs.. and when I run sa-learn to harvest other tokens, I run sa-learn as the same user as well. -- Tyler Nally [EMAIL PROTECTED]