[Exim] help with condition statement

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Test, James
Data:  
Para: exim-users
Assunto: [Exim] help with condition statement
I'm trying to get RAV and spamassassin working together.

spamcheck_router:
no_verify
condition = "${if and { {!def:h_X-Spam-Flag:} {!eq {$received_protocol}{spam-scanned}}} {1}{0}}"
driver = accept
transport = spamcheck

I need to add a {!eq {received_protocol}{mail-ok}} statement to the above condition to prevent looping.
I've been having difficulty getting the correct syntax. Can anyone assist with this?