On Thu, Sep 10, 2015 at 07:52:37PM +0200, Francis Brosnan Blázquez wrote:

> Ok, so Victor, going back to the initial question, assuming that:
> 
> 1) We need that "FILTER transp2:", through the delegation protocol, to
> setup different outgoing IP (it seems there's no other way to do this), 

By sender:

    
http://www.postfix.org/postconf.5.html#sender_dependent_default_transport_maps

Outgoing IP by recipient domain is just normal transport lookup
(with the IP address part of the master.cf transport definition).

Content filters are NOT how you should do mail routing.

> 2) And we need some way to discard a single recipient (by destination
> domain or destination local-part@) in a multi-recipient message, 

Resolve that recipient to the "discard" transport.

> Is there any way to do it without having to write an external
> content-filter (as described in [1])? 

If you don't abuse content_filters for routing, then using the
"discard" transport works.

Postfix is not a one-stop-shopping solution for a snow-shoe spam
MTA.  Removing pesky recipients like me who'll report the sender
to RBL maintainers and abuse departments needs to happen in the
upstream lists, not in the MTA.  Turn-away customers with harvested
lists, or you'll find your outbound IPs on RBLs.

-- 
        Viktor.

Reply via email to