We are currently facing this, I believe. We tried to replace our static 
domainlist local_domains with an SQL query:

domainlist local_domains = pgsql; SELECT 1 FROM domains WHERE name = 
'${quote_pgsql:$domain}';

At a later point, we tried to use the ${if match_domain} string expansion to 
test if a certain domain is in the list:

dkim_domain = ${if 
match_domain{${domain:$h_from:}}{+local_domains}{${domain:$h_from:}}{${qualify_domain}}}

We had expected that $domain in the query would be replaced with the domain we 
are looking up, but instead it is replaced with the domain of the recipient.

Is there a way to make this work as expected?

---
View it on Exim Forgejo ( 
https://code.exim.org/exim/exim/issues/459#issuecomment-239741 ) or reply to 
this email directly.

-- 
## subscription configuration (requires account):
##   https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
##   [email protected]
## Exim details at https://www.exim.org/
## Please use the Wiki with this list - https://code.exim.org/exim/wiki/wiki

Reply via email to