Re: [exim] multiple outgoing IPs?

Góra strony
Delete this message
Reply to this message
Autor: Tomasz Chmielewski
Data:  
Dla: exim-users
Temat: Re: [exim] multiple outgoing IPs?
Phil Pennock wrote:

>> interface = ${if match_ip{127.0.0.1}... ?
>
>  interface = ${if eq{$received_ip_address}{127.0.0.1} \
>                  {192.168.123.123}{$received_ip_address}}

>
> It's:
> ${if <CONDITION> {truth-branch}{falsehood-branch}}
> where <CONDITION> can contain braces too, and is any of the conditions
> in §11.7, the secion you were looking at. The key bit is to tie this
> back into ${if ...} back in §11.5, "Expansion items".


Nice.

Now that I began to receive emails from Exim mailing list (i.e. "dnsbl
rotate/random?" thread) I began to wonder: can I do a similar
(round-robin/random) thing for "interface"?

Say, I have 5 IP addresses and this is how I'd like to send through them:

IN          OUT
------------------------
127.0.0.1   - 192.168.1.1
192.168.1.1 - 192.168.1.1
192.168.1.2 - 192.168.1.2
192.168.1.3 - round robin: 192.168.1.3/192.168.1.4
192.168.1.4 - round robin: 192.168.1.3/192.168.1.4



I know it will most likely cause some problems with greylisting, but I'd
be curious to know if someone uses a similar setup (and how it should be
configured).


--
Tomasz Chmielewski
http://wpkg.org