Auteur: William Thompson Date: À: Michael Roterman CC: Exim Users Mailing List Sujet: Re: [Exim] Lookup
> I have a list of user names such as: >
> user1
> user2
> user3
> Etc.
>
> I want to put a condition in a director that will only allow the director if
> the user exists in this user list.
>
> Is this correct?
>
> condition = ${lookup{$local_part}lsearch* {/home/user_list.txt}{$value}}
Looks close, but since that's a condition, It's looking for a true or false
string. I don't think you'll need a * on the end of lsearch because if the
$local_part isn't found, it'll search again for *.
this should work:
condition = ${lookup{$local_part}lsearch{/home/user_list.txt}{true}{false}}