I'm running SA daemonized. I know that it reads
/.spamassassin/user_prefs (not a typo), /etc/mail/spamassassin/local.cf,
and /usr/share/spamassassin/ for configuration. 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?
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.
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
--
Dan Schaefer
Application Developer
Performance Administration Corp.