[Exim] ldap condition

Pàgina inicial
Delete this message
Reply to this message
Autor: Zachary Schneider
Data:  
A: exim-users
Assumpte: [Exim] ldap condition
What I would like to do is:
if spam_score_int > 60
and
ldap query for $sender_address_domain fails
send to transport

I can get both conditions to work alone however when I try to combine
them in an and statement bad things happen.
Thank You

Zach



block_spam:
   driver = accept
   domains = +spam_block_domains
   no_verify
   transport = send_block_spam_msg
   condition =  ${if and {\
                 ${lookup ldapm {LDAP_READ_CRED \
ldap:///
mailSetting=white_list,dc=$domain,ou=domains,ou=mail,ou=services,dc=iron
keep,dc=net?mailSettingValue?sub?(mailSettingValue=$sender_address_domai
n)}{no}{yes}}\
                 {>{$spam_score_int}{60}} \
                 }{1}{0}}