I have an Ubuntu (12.10) server running postfix and SpamAssassin. I've set up spampd following these directions on the SpamAssassin wiki: http://wiki.apache.org/spamassassin/IntegratePostfixViaSpampd
However, settings ~/.spamassassin/user_prefs are being ignored.
What do I need to do to have spampd/SpamAssassin read/use per-user rules?
I'm still not 100% clear on whether spampd is calling spamassassin or spamc, if it is calling spamc you need to set
allow_user_rules
to 1, if not, it should look for the user_prefs in the directory of the user calling spamassassin, and that directory only.I don't think you will be able to use individual user_prefs from in spampd, they specifically mention that per-user whitelists are not available. They also mention that per-user preferences are a To-Do..
From the notes on switches
From the To-Do section on github
I'm guessing they assume the users will have .procmail filters.
What are the permission settings on your user_prefs file? Verify that its readable by the spam assassin daemon. They should probably be 644.
Failing that, what user are you running SA as? According to this resource here, certain usergroups for the daemon result in it checking for config files in /home/spamassassin. Admittedly, this is Debian, so the Ubuntu behavior might be different.
You have to use
-u ${recipient}
argument for spamc in/etc/postfix/master.cf
: