Rulesets
One of the most powerful features of MailScanner is that almost all the basic rules can be replaced by rulesets which allow you to offer different facilities to different users.
For example, mailscanner.conf has a line which says:
Spam Actions = deliver
and this means that messages which have been tagged as spam will be delivered. This is often not what is wanted - some people will want all their email delivering just in case something gets wrongly tagged; others will want anything spam-like to be deleted.
Replace the line above with:
Spam Actions = %rules-dir%/spamactions.rules
and create a file called spamactions.rules in /usr/local/etc/MailScanner/rules which contains:
#don't deliver spam to certain people To: user.name@cnwl.ac.uk delete To: user2.person@cnwl.ac.uk delete To: default deliver
will give the desired result - user.name and user2.person won't get any spam; everyone else will get the tagged spam delivered.
Note that this only deals with "low level" spam; much spam will be high scoring spam so you probably also want to add the following to make sure that all spam is deleted (alternatively, you might include the line below but leave out the first ruleset reference; in that way all users will get low scoring spam (which might be false positive) but specified users won't see the almost certain spam.
High Scoring Spam Actions = %rules-dir%/spamactions.rules
