Here's my version:

    #
    # local_domains -> domains that land here
    #
    domainlist local_domains = ${lookup mysql{SELECT domain FROM domains WHERE type='local' AND active='1'}{${sg{$value}{\\n}{ : }} }}


Mike


On 06/04/2025 13:19, Joan Moreau via Exim-users wrote:
Hi

I am trying to make my list of local domains from mysql

domainlist mylist = ${lookup mysql{SELECT domain FROM mail_domains}}

However, if the table containts several domains (indeed..), the mylist is not an array of domains and local mails are not recognised

How to solve that ?

THank you



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

Reply via email to