[exim] Re: Multiple servers , same mysql DB

Top Pagina
Delete this message
Reply to this message
Auteur: Jasen Betts
Datum:  
Aan: exim-users
Onderwerp: [exim] Re: Multiple servers , same mysql DB
On 2023-12-09, Gandalf Corvotempesta via Exim-users <exim-users@???> wrote:
> Hi all
> i need a simple advice
> I have 3 mail servers that shares the same mysql with email accounts,
> aliases and so on.
>
> Not all servers need to handle the full address list, in example,
> domain "test1.it" is handled by server1, domain test2.com is handled
> by server4 and so on.
>
> Usually, i set the server ip address in a column on the domain table
> and I change the lookup accordingly, filtering by $received_ip_address
>
> BUT this breaks any command line debugging, like exim -bt
> info@??? because the $received_ip_address is not set
>
> Previously, as workaround, i've forced a variable set to the IP
> address, but this is a manual method and I would like to keep it
> automated.
>
> Any idea ?


see manual:

       -oMi <interface address>
              See  -oMa above for general remarks about the  -oM options.
          The -oMi option sets the IP interface address value. A
              port number may be included, using the same syntax as  for  -oMa. 
          The  interface  address  is  placed  in  $received_ip_address 
          and the port number, if present, in $received_port.


-- 
 Jasen.
 🇺🇦 Слава Україні


--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-users.lists.exim.org/
## unsubscribe (doesn't require an account):
## exim-users-unsubscribe@???
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/