1 LDAP_PERSON_OUTGOING_RECIPIENT_QUERY = (&(|(mail=${quote_ldap:${local_part}}@${domain})\ 2 (alias=${quote_ldap:${local_part}}@${domain}))\ 3 (objectclass=inetorgperson)) 4 5 ldap_person_outgoing_recipient: 6 debug_print = "R: ldap_person_outgoing_recipient for $local_part@$domain" 7 driver = accept 8 local_part_prefix = people-outgoing+ 9 condition = ${if !eq {} \ 10 {${lookup ldap{ \ 11 user="$LDAP_SERVICE_BIND_DN" \ 12 pass=$LDAP_SERVICE_PASSWORD \ 13 $LDAP_SCHEME://$LDAP_HOST:$LDAP_PORT/$LDAP_BASE_DN?mail?sub?LDAP_PERSON_OUTGOING_RECIPIENT_QUERY}}} \ 14 } 15 transport = people_outgoing_transport