Thank you very much! I will try to implement it.

On 2009-10-09 19:08, Mike Cardwell wrote:
 > Ben Hordijk wrote:
 >
 > > I have got a mailserver running Exim 4.6. This server has 2 IP's.
 > >
 > > I would like to know how I can configure Exim to use 2 IP's instead of
 > > one. It would be very nice if all the mails, send by Exim, are divided
 > > over the 2 IP's (50/50).
 >
 > If the two ips are 1.1.1.1 and 2.2.2.2, in your smtp transport add this:
 >
 > interface = ${extract{${eval:$tod_epoch%2+1}}{:}{1.1.1.1:2.2.2.2}}
 >
 > It's not totally random, which ip is returned depends on whether or not
 > the number of seconds since the epoch is odd or even. If you add further
 > IPs to the list, make sure to change the "%2" to match the number
 >
 >
 >

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to