On 10/05/2021 12:51, Hans Morten Kind via Exim-users wrote:
senders = ${if exists {/usr/lists/$local_part}\
{lsearch;/usr/lists/$local_part}{*}}
Perfectly standard de-tainting method, to get the filename for the
lsearch.
senders = lsearch;${lookup {$local_part} dsearch,ret=full {/usr/lists}
{$value}fail}
You could break that up, to make the sequence more clear:
local_parts = dsearch,ret=full;/usr/lists
senders = lsearch;$local_part_data
(although that still relies on the documented sequence of evaluation of
router preconditions; which is not the sequence as written in the
configuration text)
--
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/