1 LDAP_PERSON_OUTGOING_QUERY = (&(|(mail=${quote_ldap:${sender_address_local_part}@${sender_address_domain}})\ 2 (alias=${quote_ldap:${sender_address_local_part}@${sender_address_domain}}))\ 3 (objectclass=inetorgperson)) 4 5 ldap_person_outgoing: 6 debug_print = "R: ldap_person_outgoing for $sender_address_local_part@$sender_address_domain" 7 driver = accept 8 unseen 9 no_expn 10 no_verify 11 condition = ${if eq {}{${lookup ldap{ \ 12 user="LDAP_SERVICE_BIND_DN" \ 13 pass=LDAP_SERVICE_PASSWORD \ 14 ldap://LDAP_HOST:LDAP_PORT/LDAP_BASE_DN?mail?sub?LDAP_PERSON_OUTGOING_QUERY} \ 15 }}{no}{yes}} 16 transport = people_outgoing_transport