On 10.07.09 08:43, Daniel Schaefer wrote: > I'm running SA daemonized. I know that it reads > /.spamassassin/user_prefs (not a typo),
only for users whose homedir is the root (/) directory... > /etc/mail/spamassassin/local.cf, actually, /etc/mail/spamassassin/*.pre and /etc/mail/spamassassin/*.cf > and /usr/share/spamassassin/ for configuration. it only reads rules in /usr/share/spamassassin/ if the /var/lib/spamassassin directory does not exist. if you use (or at least once issued) sa-update, the /usr/share/spamassassin/ is not used anymore (even if you did not update SA rules, only added some third-party rules). > I know I don't have > something set right, because /.spamassassin/user_prefs is being read > because spamd is run with user=nobody and nobody's home is /. I just > created the directory because the maillog was complaining. I will also > mention that all the email addresses are virtual (not system accounts, > just to be clear). > First of all (and I've Google half a day away trying to find an answer), > how do I configure spamd so that each virtual email address can have > their own user_prefs file and perhaps a global user_prefs file? /etc/mail/spamassassin/*.cf files are global, user_prefs are per-user. spamd has a -x and --virtual-config-dir options for defining virtual users. > Second, I don't want to keep adding/modifying rules/scores in > /.spamassassin/user_prefs if it's not the correct way. As I am > constantly tweaking my spam scores, can I add scores to a config file > and make them become active without having to restart SA? Right now, > adding them to /.spamassassin/user_prefs works correctly without having > to restart SA. per-user files are afaik being read when mail is scanned, while for changing global config file you have to reload spamd. I'm afraid it won't be different. But I think that if you are permanently changing scores, something goes wrong there. Be very careful about playing with scores! > The below commented out lines were failed attempts at my first question. > [r...@pony ~]# cat /etc/sysconfig/spamassassin > # Options to spamd > SPAMDOPTIONS="-d -c -m10 -H" > #SPAMDOPTIONS="-d -c -m5 -H -s /var/log/spamd.log -u nobody -x > --virtual-config-dir=/var/vmail/%d/%u/spamassassin" > #SPAMDOPTIONS="-d -c -m5 -H -x -u nobody > --virtual-config-dir=/var/vmail/%d/%u/spamassassin" > > > I received something like this in my maillog > Jul 7 15:53:26 pony spamd[4732]: spamd: connection from > localhost.localdomain [127.0.0.1] at port 59780 > Jul 7 15:53:26 pony spamd[4732]: spamd: using default config for > nobody: /var/vmail//nobody/spamassassin/user_prefs > Jul 7 15:53:26 pony spamd[4732]: spamd: processing message > <4a53a7b3.9090...@performanceadmin.com> for nobody:99 > Jul 7 15:53:26 pony spamd[4732]: auto-whitelist: open of auto-whitelist > file failed: locker: safe_lock: cannot create tmp lockfile > /var/vmail//nobody/spamassassin/auto-whitelist.lock.pony.performanceadmin.c > om.4732 for /var/vmail//nobody/spamassassin/auto-whitelist.lock: > Permission denied the "nobody" user apparently does not have filesystem permissions to create files in /var/vmail//nobody and /var/vmail//nobody/spamassassin -- Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/ Warning: I wish NOT to receive e-mail advertising to this address. Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu. He who laughs last thinks slowest.