Re: [exim] Condition

Top Page
Delete this message
Reply to this message
Author: Lena
Date:  
To: exim-users
Subject: Re: [exim] Condition
> From: Konstantin <myownletters@???>

> condition = ${if or{\
> {${lookup{$local_part\@$domain}lsearch{/etc/exim/list1}{false}{true}}} \
> {${lookup{$local_part\@$domain}lsearch{/etc/exim/list2}{false}{true}}} } }


> Exim version is 4.82.


Clearly (наглядно):

condition = ${if or{\
{bool{${lookup{$local_part\@$domain}lsearch{/etc/exim/list1}{false}{true}}}}\
{bool{${lookup{$local_part\@$domain}lsearch{/etc/exim/list2}{false}{true}}}}\
             }}


However, you can use the logical law !a or !b = !(a and b)

!condition = ${lookup{$local_part\@$domain}lsearch{/etc/exim/list1}\
{${lookup{$local_part\@$domain}lsearch{/etc/exim/list2}{true}{false}}}\
{false}}