1 LDAP_PERSON_OUTGOING_QUERY = (&(|(mail=${quote_ldap:${sender_address_local_part}}@${sender_address_domain})(alias=${quote_ldap:${sender_address_local_part}}@${sender_address_domain}))(objectclass=inetorgperson)) 2 3 people_outgoing: 4 debug_print = "R: person_outgoing for $sender_address_local_part@$sender_address_domain" 5 driver = accept 6 unseen 7 no_expn 8 no_verify 9 condition = ${if eq {}{${lookup ldap{ \ 10 user="$ldap_service_bind_dn" \ 11 pass=$ldap_service_password \ 12 ldap://$ldap_host:$ldap_port/$ldap_base_dn?mail?sub?LDAP_PERSON_OUTGOING_QUERY} \ 13 }}{no}{yes}} 14 transport = people_outgoing_transport