On 11/7/2013 7:52 PM, Roman Gelfand wrote:
> Wouldn't the server be chosen round robin as opposed to random?

This would require too much complex code for what is a simple Postfix
operation.  Your example is "poor man's round robin".  That's the best
Postfix can do without serious code changes.  But why add such code when
others have already solved this problem?  I.e. do it in your DNS server,
which supports true round robin.

> From: Wietse Venema
> Sent: 11/7/2013 8:21 PM
> To: Postfix users
> Cc: postfix users list; u...@porcupine.org
> Subject: Re: Multiple outgoing smtp servers
> Roman Gelfand:
>> I am looking to load balance and distribute outgoing load.
>>
>> I read that all you need to do is add the following dns entries for
>> each postfix box..
>>
>> mxr IN A 192.168.1.121
>> mxr IN A 192.168.1.131
>> mxr IN A 192.168.1.141
>> mxr IN A 192.168.1.151
>> mxr IN A 192.168.1.161
>>
>> and the following line in main.cf
>>
>> relayhost = mxr.mydomain.com
> 
> One name that resolves to multiple IP addresses will work.
> Postfix will choose IP addresses randomly.
> 
> In this case you don't want to do MX lookups, so you could say:
> 
> relayhost = [mxr.mydomain.com]
> 
>       Wietse
> 

Reply via email to