Dave Williss wrote:
> Trying to solve my previous problem, I find in my /var/log/mail.err a
> lot of errors like:
>
> locker: safe_lock: cannot create tmp lockfile
> /home/dwilliss/.spamassassin/bayes.lock.tnt.microimages.com.18000 for
> /home/dwilliss/.spamassassin/bayes.lock: Permission denied
>
> My .spamassasin directory has permissions drwx--x--x, owner dwilliss,
> group users.
> I tried giving it global read but that didn't help.  I don't have to
> give it global write, do I?

Depends.. do you have a bayes_path statement in your config? If so, yes.
If not, it can be drwx------  (ie chmod 700).

However, if you use a bayes_path statement in your config, the target
will need to be RWX for any user that SpamAssassin might get executed as.

You'll also need to use bayes_file_mode 777 or 770 to force the files to
be created with group or world read/write. (yes, you DO want 7, not 6 in
bayes_file_mode.. it's really a mask, and it's sometimes used on
directories.)

Reply via email to