Wouldn't the server be chosen round robin as opposed to random?
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