[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re[2]: [vps-mail] VPS2, Bayes problem



Scott, based on your suggestions here is the configuration
that seems to work:

Local CF settings:

use_bayes            1
bayes_path      /etc/mail/spamassassin/bayes/bayes
bayes_file_mode 0770
bayes_auto_expire       1
bayes_auto_learn        1

Directory & File settings:
drwxrwx---  2 root  nobody /etc/mail/spamassassin/bayes
-rw-rw----  1 nobody  nobody    19299 Apr  2 10:22 bayes_journal
-rw-rw----  1 root    nobody  2535424 Apr  2 10:22 bayes_seen
-rw-rw----  1 root    nobody  5373952 Apr  2 10:22 bayes_toks


You were right that SA needs group privileges as "nobody". I
think an alternative might be to run spamc as -u spam
("spam" being the user that owns the mailbox called "spam"),
and either set group privileges for the
/etc/mail/spamassassin/bayes to include "spam", or else put
the bayes database in the .spamassassin directory under the
user /home/spam.

Also, one other note in case anyone has similar problems -
I have found that when I make path changes in the local.cf
file, restart_sendmail is not enough to make the changes
fully effective; I also need to reboot.  Restart_sendmail IS
good enough for changes to scoring options; I think the
problem is just with the specific directives that set paths.

I hope this is helpful in event anyone else wants the server
wide configuration. It really is taking me time to get the
knack of the user/group/permissions issues.

-Abigail

======================================================================
This is <vps-mail@xxxxxxxxxxxx>       <http://www.perlcode.org/lists/>
Before posting a question, please search the archives (see above URL).


Main Index | Thread Index
Match: Format: Sort by:
Search: