Im trying to set up spamassassin to have a central repository under /var/spamassassin , so each user does not have a ~/$HOME/.spamassassin/ dir in there home dir. I know this is not the best solution, and can potentually confuse SA, but under my circomstances, I think this will be easier in the long run.
I'm running on updated FC3, SA SpamAssassin 3.0.4 (FC3 2005-06-05), SpamAssassin-milter (DAG) 0.3.0-1
I have edited the /etc/mail/spamassassin/local.cf :
rewrite_header Subject [SPAM]
My spam ham learn script:
echo "Spamassassin Learning spam: $SPAM"
sa-learn --dbpath $SPLOC --spam --mbox $SPAM
echo "Spamassassin Learning ham: $USER_MAILSPOOL"
sa-learn --dbpath $SPLOC --ham --mbox $USER_MAILSPOOL
my /var/log/maillog errors:
Oct 6 08:57:57 localhost spamd: Creating default_prefs [/root/.spamassassin/user_prefs]
Oct 6 08:57:57 localhost spamd: Cannot write to /root/.spamassassin/user_prefs: Permission denied
SPAMDOPTIONS="-d -c -m5 -H -u nobody -- spamc --dbpath /var/spamassassin"
I've stoped and restared both spamassassin and spamass-milter after all changes were made... and it still trying to access the /root/.spamassassin/ for the tokens.
Any ideas, I'm lost