On 03/07/2020 14:55, Rob Gunther via Exim-users wrote: > domainlist local_domains = lsearch,ret=key;/etc/virtual/domains > > Then referencing domains = +local_domains in the routers works. No > lsearch needed at that point, seems much cleaner. > > However, I found a stumbling block. > > I am using rewrite configuration to deal with domain aliases. I check the > disk for a file to indicate the recipient address is an alias. I then > rewrite the recipient address, which I guess then my new domain name of the > recipient is no longer in my local_domains variable,
local_domains is a named list, not a variable. Assuming you mean $domain_data ... > since I populated it > with just the original recipient domain. > > Then future routers break because the domain in local_domains no longer > matches the recipient being processed. ... you need to do a lookup with the then-domain, and let the caching worry about the efficiency. -- Cheers, Jeremy -- ## List details at https://lists.exim.org/mailman/listinfo/exim-users ## Exim details at http://www.exim.org/ ## Please use the Wiki with this list - http://wiki.exim.org/
