Mark Constable via Postfix-users:
> Hi folks, I have googled for this but not found a definitive answer.
> 
> I have two IPs for my postfix server and want to send out most emails
> from one IP but a few via the alternate IP. I'm using this in main.cf...
> 
> sender_dependent_default_transport_maps = lmdb:/etc/postfix/sender_transport
> 
> and have a /etc/postfix/sender_transport file with...
> 
> @domain1   smtp1-out:
> @domain2   smtp1-out:
> @domain3   smtp2-out:
> @domain4   smtp2-out:
> @domain5   smtp2-out:
> etc, with many more going out through smtp2-out.

To send all mail through smtp2-out, except for mail from domain1 and domain2:

/etc/postfix/sender_transport:
    @domain1   smtp1-out:
    @domain2   smtp1-out:

/etc/postfix/main.cf:
    default_transport = smtp2-out
    sender_dependent_default_transport_maps = lmdb:/etc/postfix/sender_transport

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to