[exim] Re: Multiple servers , same mysql DB

Góra strony
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
Dla: exim-users
Temat: [exim] Re: Multiple servers , same mysql DB
On 12/9/23 10:24, Gandalf Corvotempesta via Exim-users wrote:
> 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.


> Any idea ?


Have your config pull in a server-number by .include of
a file which is different on each, setting a macro with the number.
Include this value in your mysql queries, using it to select
the required set of info.

--
Cheers,
Jeremy


--
## 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/