[Exim] condition question

Etusivu
Poista viesti
Vastaa
Lähettäjä: George Schlossnagle
Päiväys:  
Vastaanottaja: exim-users
Aihe: [Exim] condition question
I am trying to to require two conditions to be met on a specific
transport:

"${if and {{${lookup mysql{select login from accounts where
login='${local_part}'}{$value}fail}}{${perl{attach_check}{${message_body}}}}}}

I keep getting misplaced { }'s errors. Any thoughts/suggestions?