Multiple Recipient Whitelist & Blacklist Rules

Glenn Steen glenn.steen at
Wed Sep 27 16:13:13 IST 2006

On 27/09/06, Jeff Ellis <jeff at> wrote:
> I have two users user1 at and user2 at that both
> receive email from someotheruser at
> user1 wants all email from someotheruser blacklisted but user2 wants
> email from someotheruser whitelisted.
> i have set up spam.whitelist.rules and spam.blacklist.rules as follows:
> /etc/MailScanner/rules/spam.whitelist.rules
> From: someotheruser at and To: user2 at  yes
> ...
> FromOrTo:    default    no
> /etc/MailScanner/rules/spamblacklist.rules
> From: someotheruser at and To: user1 at  yes
> ...
> FromOrTo:   default   no
> If email comes in from someotheruser to either recipient alone, the
> rules work as expected but if the email has both recipients in the To:
> line (or if it's BCC'd to both) the email is whitelisted and user1
> receives email she doesn't want. MailScanner.conf is seeing the rulesets
> correctly since it works if either user is the only recipient. I know
> this can be done by setting up another Postfix server that splits out
> the recipients and relays on to the main Postfix and MailScanner server
> but wondered if it can be accomplished just through MailScanner?
> CentOS 4.3
> Postfix 2.2.11
> MailScanner 4.56.6-1
> Thanks for any help with this.
To make rulesets work on individual recipients, you need split the
mails for them. This can be done with postfix... Check out _all of_
... The notes at the end about releasing from quarantie/(not)
whitelisting are very important.

Hope that works for you.
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se

More information about the MailScanner mailing list