Multiple Recipient Whitelist & Blacklist Rules
Glenn Steen
glenn.steen at gmail.com
Wed Sep 27 16:13:13 IST 2006
On 27/09/06, Jeff Ellis <jeff at ellisplace.net> wrote:
> I have two users user1 at example.com and user2 at example.com that both
> receive email from someotheruser at otherexample.com.
>
> 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 otherexample.com and To: user2 at example.com yes
> ...
> FromOrTo: default no
>
> /etc/MailScanner/rules/spamblacklist.rules
> From: someotheruser at otherexample.com and To: user1 at example.com 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_
http://wiki.mailscanner.info/doku.php?id=documentation:configuration:mta:postfix:how_to:split_mails_per_recipient
... The notes at the end about releasing from quarantie/(not)
whitelisting 127.0.0.1 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