Thanks !!!

-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Wietse Venema
Sent: Tuesday, December 01, 2015 4:31 PM
To: Postfix users
Subject: Re: Load balancing

volodymyr.lytvyne...@unicredit.ua:
> Hi!
> There are the following configuration of the mail system.
> Relay postfix and 2 identical Edge servers (Microsoft Exchange). Relay 
> receives mail from the Edge servers and sent it to the Internet and receives 
> mail from the Internet for my domain and forwards it to the Edge server.
> There is my transport table:
> /etc/postfix/maps/transport:
> unicredit.ua            smtp:[edge.ukrsotsbank.com]
> 
> /etc/postfix/main.cf:
> transport_maps = hash:/etc/postfix/maps/transport
> 
> If I`ll use the version 3.0 of postfix, how can I use load balansing in 
> transport_maps  to forwards mail to  both Edge servers ?
> 

With Postfix 3.0 and later, you randomly select MX hosts.

/etc/postfix/main.cf:
    transport_maps = pipemap:{
        inline:{unicredit.ua=x}, 
        randmap:{[mx1.ukrsotsbank.com], [mx2.ukrsotsbank.com]}
    }

The "inline:{unicredit.ua=x}" ensures that only unicredit.ua will be 
load-balanced.

pipemap, inline and randmap are described in the postconf(1) manpage 
http://www.postfix.org/postconf.1.html

With earlier Postfix versions you need /etc/hosts or DNS with a that resolves 
to multiple IP addresses.

        Wietse

Reply via email to