[exim] Re: Dynamic local_domains

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Andreas Metzler
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [exim] Re: Dynamic local_domains
On 2024-01-28 Jerry Stuckle via Exim-users <exim-users@???> wrote:
[...]
> In my local configuration file I have


> MAIN_LOCAL_DOMAINS=${lookup MySQL{SELECT GROUP_CONCAT(DISTINCT domain
> SEPARATOR ' : ') FROM emailtable}


> (one line)


> The Debian configuration file has a line


> local_domains = MAIN_LOCAL_DOMAINS

[...]
> Executing


> exim4 -bP +local_domains


> and it comes back with the lookup statement, not the domains. Database
> connection information is defined and correct.

[...]
> Is this too early for Exim to connect to the database? Or am I doing
> something else wrong?


Goo monrning,

-bP does macro replacement, it does not do string expansions, you would
want to either use -be or run in debug mode.

cu Andreas
--
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'

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