> I'm currently using spamassassin in a postfix+amavisd smtp gateway, > filtering mail then forwarding them to an IMAP server. > > I'm looking for a way to specify per user, which .cf files it > could use > or not use. > > For instance, I put some custom_rules.cf files in > /usr/local/share/spamassassin/ to specifically target > commercial mails. > > Problem is, the guy in charge of the stocks would want to keep these, > since he uses them to buy some material from time to time. > > How could I put it in spamassassin or elsewhere that for all users > except John and Paul, the rules contained in such and such > file apply ? I saw that amavisd-new is highly user > customizable, but I fail to see > how I can do anything else that fidgeting with the flag or whitelist > settings.
Probably you could put the rules in the regular SA config directory and set a default score for everyone, then for the exceptions to the default, use a user_prefs file in the user's home directory to re-score the rules that need it. Re-scoring a rule to 0 disables it. Bret