> On Apr 5, 2021, at 11:44 AM, Jeremy Harris via Exim-users 
> <exim-users@exim.org> wrote:
> 
> On 05/04/2021 16:34, Felipe Gasper via Exim-users wrote:
>> domainlist manualmx_domains = ${if exists {/etc/manualmx} 
>> {lsearch;/etc/manualmx} {} }
> 
> That's not a valid definition for a named list.
> 
> I suspect you've misread "lists are (string-) expanded before use" as meaning
> that list *definitions* can have string-expansions.  Not so.  The 
> string-expansion
> is done on the text that should be a list, when some text is arrived at in the
> context of a list being needed.

Hrm. It … works for us? Is this something that happens to work but is 
undocumented?

The router that uses that list, at least, seems to work as we intend:

manualmx:
  driver = manualroute
  domains = +manualmx_domains
  transport = remote_smtp
  route_data = ${lookup{$domain}lsearch{/etc/manualmx}}

Or am I misunderstanding?

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

Reply via email to