Re: [exim] multiple outgoing IPs?

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tomasz Chmielewski
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] multiple outgoing IPs?
Dave Evans wrote:
> On Mon, Sep 07, 2009 at 07:24:31PM +0200, Tomasz Chmielewski wrote:
>> Is it possible to configure Exim to use several outgoing IPs?
>
> Yes, see
> http://exim.org/exim-html-current/doc/html/spec_html/ch30.html#id606642


Thanks for pointing to documentation.

What is the meaning of "<" in the example?

interface = <; 192.168.123.123 ; ...


>> Say, if it received an email on a given IP, make Exim send it out on the
>> same IP as well?
>
> If you want to do that, you'll want to have 'interface' be an expansion
> somehow based on $received_ip_address.


Just like this?

interface = $received_ip_address


Cool - seems to work, but it will prevent from sending mail if I connect
to localhost.

How should I write it in exim config language:

interface = 192.168.123.123, if $received_ip_address == 127.0.0.1
             else $received_ip_address


?

Some hints would be appreciated - I tried to follow
http://exim.org/exim-html-current/doc/html/spec_html/ch11.html#SECTexpcond,
but couldn't make a working config:

interface = ${if match_ip{127.0.0.1}... ?


--
Tomasz Chmielewski
http://wpkg.org