On 12/15/2011 10:34 AM, Joe Wong wrote:
> Hi,
> 
>   I tried, it works but not the way I would like to implement. Say
> sender sent a email to 3 recipients, one of them hit the rule. What
> I want is sender will not get any bounce but the offending recipient
> will simply dropped, while the other 2 will still get the email. Is
> this possible?
> 
> - Joe

Discarding mail is almost always the wrong choice.

Don't use the DISCARD action with check_recipient_mx_access map, as
that will discard the mail for ALL recipients, not just the
offending recipient.

You could add a transport map entry for offending destinations, but
that operates on recipient domains, not the MX, so not exactly what
you've asked for.

# transport
blacklisted.example.com  discard:

Or you could use your firewall to reroute offending IP destinations
to a local smtp-sink process.


  -- Noel Jones

Reply via email to