Re: [exim] Choosing the outbound IP address according to a D…

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jasen Betts
Datum:  
To: exim-users
Betreff: Re: [exim] Choosing the outbound IP address according to a Database query.
On 2018-03-12, Mark Elkins via Exim-users <exim-users@???> wrote:
> Exim version 4.89 #1 built 05-Oct-2017 13:48:15 (Linux Gentoo)
>
> # Interfaces That Exim Listens on
> local_interfaces = <; 127.0.0.1 ;    ::1 ; \
>                       192.111.222.1 ;  2001:1234:abcd:5678::1 ; \
>                       192.111.222.2 ;  2001:1234:abcd:5678::2 ; \
>                       192.111.222.3 ;  2001:1234:abcd:5678::3
>
> I assume one could assign a particular IP address for outbound?
>
> So could the "interface =" part be changed to receive the result of a
> MySQL query?
> Can I pop a value into a variable - and use that? - otherwise I'll be
> doing two lookups, one for IPv4 and one for IPv6...


you can use an $acl_m_... variable there or a lookup.

> Anyone done this before?


I have (several years ago) and had a bad experience, but I think the
bugs I discovered have now been fixed.

--
This email has not been checked by half-arsed antivirus software