So far, trying to use "per-user spamassassin" to run my second
config has failed.
After setting up a new Linux user account "spamc", creating a
subdirectory owned by spamc of .spamassassin (drwxr-xr-x) and a file owned
by spamc of user_prefs (-rw-r--r--), which set all supplied scores to 0,
and set up a test test in that file:
body TEST /this is a test/i
describe TEST SPAM
score TEST 13
...and set up a test message with the appropriate line to catch,
and feeding it the message the same way the spamc plugin would, except as
root from the command line:
spamc -u spamc -R < $filename
I get nothing. (Yes, allow_user_rules is set to 1.)
I realize that I might get slammed for continuing this on the
qpsmtpd list, where it started, but I'm not on any of the spamassassin
lists.
Is there some obvious (to everyone but me) item that I have not
done correctly?
Should the smtpd user (the plugins) be able to run that command as
itself, or should it use sudo to run it as root (with "-u spamc")?
Thanks.
(In reading some of the documentation, it stats that if the
user_prefs file does not exist, it will be created at run time, but I've
tried that, also, and nothing was created.)