On Mon, May 10, 2021 at 04:03:10PM +0200, Hans Morten Kind via Exim-users wrote:
> On Mon, May 10, 2021 at 01:22:59PM +0100, Jeremy Harris via Exim-users wrote:
> > 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}}
Run exim in debug mode (at least -d+expand+lookup) and study output.
--
Eugene Berdnikov
--
## 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/