Re: [exim] Random smarthost

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Mike Cardwell
Data:  
Para: Exim Mailing List
Assunto: Re: [exim] Random smarthost
Markus Meyer wrote:

> I want to setup an Exim instance that should send it's emails to two
> smarthosts but in random order. So that I have some kind of load
> balancing. I can't use MX records. So far I tried to use this in the
> smarthost definition:
>
> route_list = * 192.168.2.62:+:192.168.2.63 randomize bydns
>
> The only thing I get from it is when the first host is down it uses the
> second host.
> Any help _much_ appreciated.


The '+' separator there means to use items from the first list and only
fall back to items in the second list if none of the first list items
work. Just replaced "192.168.2.62:+:192.168.2.63" with
"192.168.2.62:192.168.2.63"

Eg, if you had:

"192.168.0.1:192.168.0.2:+:192.168.0.3" it would randomly use one of the
first two ips and only the third IP if neither of the first two worked.

Mike