Re: [exim] Closed mailing lists in exim-4.94.2

Pàgina inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
A: exim-users
Assumpte: Re: [exim] Closed mailing lists in exim-4.94.2
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