Andrea Cappelli:
> What I want to accomplish is the following
> 
> 1) if sender is @domain1.com relay via smtp:[relay.domain1.com]
> 
> 2) otherwise round robin delivery from one of my IP via smtp (services
> configured in master.cf with differente ehlo and bound to different IP)
> (found on stack overflow, but now I can't retrieve the post)

Then don't use transport_maps.

        Wietser

> I tried as follows
> 
> sender_dependent_default_transport_maps = hash:/etc/postfix/sender_relay,
> mysql:/etc/postfix/transport_roundrobin.cf

With Postfix 3.x, try:

    sender_dependent_default_transport_maps =
        hash:/etc/postfix/sender_relay
        randmap:{one,two,three}

where one, two and three are transport:host (or transport:) that
should be used for non-matching senders.

sender_dependent_reelayhost_maps are an alternative, sinmce you
don't really need to override the transport, only the relayhost.

        Wietse

Reply via email to