Re: [exim] Sending from multiple IP's

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Ben Hordijk
Dátum:  
Címzett: Exim-users
Tárgy: Re: [exim] Sending from multiple IP's
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
>
>
>