Hi,
I've setup postfix and spamassassin (3.0) Debian (Sarge) to both use a
MySQL database for it's rulesets, I'm running spamassassin as a filter
in the /etc/postfix/master.cf file.
spamassassin unix - n n - - pipe
flags=Rq user=spamd argv=/etc/postfix/spamfilter ${sender}
${recipient}
the file in /etc/postfix/spamfilter, reads as:
#!/bin/bash
sender=$0
shift
recip=$1
/usr/bin/spamc -u $recip | /usr/sbin/sendmail -oi -f $sender -- $recip
exit $?
But the problem I have is no matter what I do, I cannot stop spamd from
writing to /root/.spamassassin/.
spamd has it's own group and directory /var/lib/spamd.
The options passed to spamassassin from /etc/default/spamassassin
are as follows:
OPTIONS="--max-children 5 --helper-home-dir /var/lib/spamd --sql-config
--nouser-config --debug"
Looking at the debug output, spamd is reading the bayes list in
/var/lib/spamd:
spamd[12700]: debug: lock: 12700 created
/var/lib/spamd/.spamassassin/bayes.mutex
spamd[12700]: debug: lock: 12700 trying to get lock on
/var/lib/spamd/.spamassassin/bayes with 10 timeout
spamd[12700]: debug: lock: 12700 link to
/var/lib/spamd/.spamassassin/bayes.mutex: link ok
spamd[12700]: debug: bayes: 12700 tie-ing to DB file R/W
/var/lib/spamd/.spamassassin/bayes_toks
spamd[12700]: debug: bayes: 12700 tie-ing to DB file R/W
/var/lib/spamd/.spamassassin/bayes_seen
But further up in the debug output it prints the following:
spamd[12700]: debug: using "/root/.spamassassin" for user state dir
spamd[12700]: debug: lock: 12700 created
/root/.spamassassin/auto-whitelist.mutex
spamd[12700]: debug: lock: 12700 trying to get lock on
/root/.spamassassin/auto-whitelist with 30 timeout
spamd[12700]: debug: lock: 12700 link to
/root/.spamassassin/auto-whitelist.mutex: link ok
spamd[12700]: debug: Tie-ing to DB file R/W in
/root/.spamassassin/auto-whitelist
Apart from this, it seems to be running ok, but for the life of me I
cannot stop it writing to the root directory.
If anyone can point anything out, I would be grateful
Thanks in advance
Mark