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

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Andrew C Aitchison
Ημερομηνία:  
Προς: Hans Morten Kind
Υ/ο: exim-users
Αντικείμενο: Re: [exim] Closed mailing lists in exim-4.94.2
On Mon, 10 May 2021, Hans Morten Kind via Exim-users wrote:

> On Mon, May 10, 2021 at 01:22:59PM +0100, Jeremy Harris via Exim-users wrote:
>> 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}
>
> Thank you.
>
> But the router has both open and closed lists where the closed have a
> file $local_part.allowed
>
> Unsuccessfully trying
> senders = ${if exists {/usr/lists/$local_part.allowed}\
> {lsearch;${lookup {$local_part.allowed} dsearch,ret=full {/usr/lists} {$value}fail}}



If I understand correctly
"exists" does not untaint a filename.

-- 
Andrew C. Aitchison                    Kendal, UK
             andrew@???