[Exim] Help with condition statement needed (second try)

Top Pagina
Delete this message
Reply to this message
Auteur: Jeffrey Wheat
Datum:  
Aan: exim-users
Onderwerp: [Exim] Help with condition statement needed (second try)
Hi. I am trying to get this to work but there is
something wrong and it is driving me crazy trying
to figure out why. This is exim version 4.20 on
FreeBSD 4.8-STABLE. Can anyone offer a suggestion
or solution? Here is the error I see in debugging:

LOG: MAIN PANIC
failed to expand 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}}" for spam_discard_director router: condition name expected, but found "{eq {$header_X-S"
spam_discard_director router skipped: condition failure


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


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim details at http://www.exim.org/ ##


---
Incoming 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


---
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