[Exim] Conditon Problem

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Kai Riasol Gonzalez
日付:  
To: exim-users
題目: [Exim] Conditon Problem
hi

i´s using exim 4.34 with ldap support. i want if the the user which gets an
email and have the "vacationStatus == enable" in the ldap send an
vacationmessage. does the localuser get the message?


vacation:
  driver = accept
  unseen = true
  expn = false
  verify = false
  condition =  ${if eq \
                        {lookup ldap \
                                { \
                                  user=LDAPUSER pass=LDAPPASS \


ldap://LDAPSERVER/ou=user,dc=domain,dc=net?vacationStatus?sub?(&(mail=$local_part@$domain)(accountStatus=enable))
 \
                                } \
                                {$value} \
                        } \
                        {enable} {yes}{no} \
                }
  transport = vacation_user
  errors_to = postmaster@${domain}


in the logfile i get this.

failed to expand condition "${if eq {lookup ldap { user="xxxx" pass=xxxxx
ldap://localhost:38
9/ou=user,dc=domain,dc=net?vacationStatus?sub?(&(mail=$local_part@$domain)(accountStatus=enable))
} {$value} } {enable} {yes}{no} }" for vacation router: mis
sing or misplaced { or }


whats my problem?

thx
kai