[Exim] How to write a condition??

Pàgina inicial
Delete this message
Reply to this message
Autor: Alexander Prohorenko
Data:  
A: exim-users
Assumpte: [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