Scott Taylor wrote:
> I'm using SA 3.0.2 on RHES3 with $LANG set to en_CA invoked with
> system wide configs in '/etc/mail/spamassassin/local.cf' via users
> .procmailrc with this recipe:
> 
> :0fw: spamassassin.lock
> * < 256000
> | spamassassin
> 
> I've been all over the docs, FAQs, WiKis on the site, but I still
> can't figure out why the permissions keep changing on the
> '/etc/mail/spamassasin/bayes_*' files.  No matter what I set the
> permissions to, which user I change the files to, they eventually end
> up with a regular user owning the files and the perms set to
> -rw-------.

For a global Bayes db, accessible to all users, you must either:

-> Run spamd as a separate user, make sure the bayes_* files are owned
by that user, and process mail through SA by calling spamc instead of
spamassassin; or

-> Make sure you have an entry in your local.cf (or other config file)
to force appropriate permissions.  I use "bayes_file_mode 0777", as I
have a global Bayes db, but per-user configuration and AWL files.  I
also use spamd/spamc, but I run spamd as root so it can setuid to the
appropriate user for each message.  You may be able to get away with a
mode of 0770, if your users are all in the same group.

You'll probably find that you will also want to adjust some of the other
bayes_* options in your Sa configuration;  man Mail::SpamAssassin::Conf
should have the details for your installed version.

-kgd
-- 
Get your mouse off of there!  You don't know where that email has been!

Reply via email to