[Exim] Help with condition statement needed

Top Page
Delete this message
Reply to this message
Author: Jeffrey Wheat
Date:  
To: exim-users
Subject: [Exim] Help with condition statement needed
Hi ya'll. I am close to getting this to work but I
have something not right and it is driving me nuts.
Can anyone see what is wrong with this?

Many thanks,
Jeffrey

spam_discard_director:
driver = accept
no_verify
condition = "${if and { {eq {${lookup mysql{select discard from accounts where username = '$local_part' and domain = '${domain}' and discard = 'y'}{$value}}}{y}} { {eq {$header_X-Spam-Flag:}{YES} } } {1}{0}}"
transport = spam_discard_transport

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.492 / Virus Database: 291 - Release Date: 6/24/2003