Re: [exim] Condition

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Lena
Data:  
Para: exim-users
Asunto: 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}}