twofers wrote:
I am re-submitting this question for help:
I have searched for several hours and can't seem to find the answer to this. I've found close answers, but not complete. I have SA set up as individual users. When a new user is created SA creates a new user_prefs file for them. This file contains two prefs. required_score 7 and rewrite_header subject ****SPAM****. 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. Where can I add my own prefs so the newly created defualt user_prefs file is loaded with what I want?
I dont know of a spamassassin way but have you thought of putting a line in /etc/skel/.bashrc that copies your user_prefs into their ~/.spamassassin dir when the users is created ? This would also update the user_prefs when they log in if you have updated yours.

Generally users wont have access to other users home dirs so you could copy/link your user_prefs to somewhere like /var/tmp/spam/user_prefs and have an entry such as

cp -f /var/tmp/spam/user_prefs ~/.spamassassin/

in /etc/skel/.bashrc .

Just an idea.

Nick .

Reply via email to