Re: [exim] Round robin for outgoing connections

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Luca Bertoncello
Data:  
Para: exim-users
Assunto: Re: [exim] Round robin for outgoing connections
Zitat von Felix Schwarz via Exim-users <exim-users@???>:

> Am 28.08.2017 um 12:57 schrieb Luca Bertoncello:
>> I'm trying to balance the outgoing connection using two IPs with
>> exim 4.89...
>> Unfortunately I didn't find any way, in the documentation, to do that...
>>
>> I see the "hosts_randomize", but it seems to just work with "route_list" and
>> not with "interface"...
>>
>> Has someone any suggestion?
>
> Seems like I asked a very similar question in February ("how to distribute
> outbound mail over multiple hosts?").
>
> The solution for me was to have multiple outbound routers with a  
> condition (in
> our case it included a random number):
>     new_outbound:
>         driver = manualroute
>         condition = <you got ${randint:…}>


Hi Felix,

I got it using the solution explained at
https://serverfault.com/questions/355313/exim4-configuration-to-use-several-external-ip-for-mail-sending (answer of
topdog).

Here my transport:

remote_smtp:
driver = smtp
tls_try_verify_hosts = !*
interface = "${lookup {${randint:2}} lsearch {/etc/exim4/outgoingIPs.txt}}"

and my outgoingIPs.txt:

0: 10.0.46.12
1: 10.0.46.13

it seems to work...

Bye
Luca Bertoncello
(lucabert@???)