[Exim] How to write a condition??

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Alexander Prohorenko
Data:  
Para: exim-users
Assunto: [Exim] How to write a condition??
Guys,

Can you please help me?

I've got a problem to write a condition.

It looks like this now:

virtual_localuser_spam:
...
condition = ${if eq{$h_X-SPAM-Flag:}{YES} {yes}{no}}
...

And I need it to test also if "$local_part@$domain" does not exist in
the "/usr/local/exim/etc/spamtrustedusers" file.

I have tried the following:

condition = ${if and {{ !${lookup{$local_part@$domain}lsearch{/usr/local/exim/etc/spamtrustedusers}} } {eq{$h_X-SPAM-Flag:}{YES}}} {yes}{no}}

But it didn't work with some error.

Can you please help?

Cheers,
--
Prohorenko