Well I took this idea and also tried to create a single bayes database but it doesn't seem to be working.
 
In local.cf I added bayes_path /var/spool/bayes_db/ and bayes_file_mode 0770 and allow_user_rules 1
 
I also created mkdir /var/spool/bayes_db and chmod 0770 /var/spool/bayes_db
 
Then I copied a bayes_toks and bayes_seen from a users /.spamassassin directory into /bayes_db/
 
That didn't seem to work, so I took one users /.spamassassin/user_prefs file and added the bayes_path and bayes_file_mode to it but that still didn't seem to make it work.
 
Can someone tell me what I might be doing wrong? or am I just totally off base?
 
Thanks.

Karl Auer <[EMAIL PROTECTED]> wrote:
On Sun, 2006-11-12 at 02:06 -0800, twofers wrote:
> I am trying to find out if I can change some prefs so that the new
> user_prefs file will contain my prefs when it is newly created.
>
> I have changed prefs in user_prefs.template and that didn't make any
> difference. I assume this template is supposed to be used by SA to
> create the new user_prefs, but it doesn't seem so.

The user_prefs file should be created in ~/.spamassassin/user_prefs. Is
it? And if it is, does it contain your templated stuff?

Aside from putting the user-specific config in the right place,
spamassassin has to been told to use it. In your site-local spamassassin
config file (probably /etc/mail/spamassassin/local.cf) or in a
separate .cf file in the same directory as that file, add this line:

allow_user_rules 1

This is however a bad idea unless you have very trustworthy users. Also
note this (from the spamassassin man page):

Note that it is not currently possible to use
"allow_user_rules" to modify an existing system rule
from a "user_prefs" file with "spamd".

You saw this mentioned in the user_prefs stuff you quoted:

[...]users can add new rules for their own use in the
"~/.spamassassin/user_prefs" file, if they like.
(spamd disables this for security and increased speed.)

Regards, K.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer ([EMAIL PROTECTED]) +61-2-64957160 (h)
http://www.biplane.com.au/~kauer/ +61-428-957160 (mob)



Everyone is raving about the all-new Yahoo! Mail beta.

Reply via email to