[exim] Re: Debian - dynamic local_domains?

Top Page
Delete this message
Reply to this message
Author: Ray O'Donnell
Date:  
To: Slavko, exim-users
Subject: [exim] Re: Debian - dynamic local_domains?
On 24/06/2023 22:36, Slavko via Exim-users wrote:
> Dňa 24. júna 2023 19:40:10 UTC používateľ Ray O'Donnell via Exim-users <exim-users@???> napísal:
>
>
>> (i) Putting this in /etc/exim4/update-exim4.conf.conf:
>>
>> dc_other_hostnames=${lookup pgsql{select domain_name from domains }}
>
> I afraid, that script which generate final config file is not prepared
> to got anything other than simple list here
>
>> (ii) Setting MAIN_LOCAL_DOMAINS in /etc/exim4/conf.d/main/000_localmacros, which contains various local settings:
>>
>> MAIN_LOCAL_MACROS = ${lookup pgsql{select domain_name from domains }}
>
> That is better, right file, wrong macro ;-)
>
> In that file set your lookup in MAIN_LOCAL_DOMAINS or
> MAIN_RELAY_TO_DOMAINS macro -- select which one is proper for you.


Whoops, yes, that was my typo - it should of course have been
MAIN_LOCAL_DOMAINS. Thanks! :-)

Ray.


--
Raymond O'Donnell // Galway // Ireland
ray@???


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