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

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Hans Morten Kind
Datum:  
To: exim-users
Betreff: Re: [exim] Closed mailing lists in exim-4.94.2
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}}

hmk