Re: [exim/exim] Generic variable containing the item looked for in a (query-style) lookup (Issue #459)
"martin.von.wittich via Exim-dev" <[email protected]> Mon, 15 Jun 2026 15:24:12 +0100
| Newsgroups | gmane.mail.exim.devel |
|---|---|
| Message-ID | <exim/exim/issues/459/comment/[email protected]> |
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.