1 LDAP_RESOURCE_QUERY = (&(|(mail=${quote_ldap:${local_part}@${domain}})\ 2 (alias=${quote_ldap:${local_part}@${domain}}))\ 3 (&(!(objectclass=inetOrgPerson))(objectclass=mailRecipient))) 4 5 ldap_resource: 6 debug_print = "R: ldap_resource for $local_part@$domain" 7 driver = accept 8 condition = ${if eq {}{${lookup ldap{ \ 9 user="$LDAP_SERVICE_BIND_DN" \ 10 pass=$LDAP_SERVICE_PASSWORD \ 11 $LDAP_SCHEME://$LDAP_HOST:$LDAP_PORT/$LDAP_BASE_DN?mail?sub?LDAP_RESOURCE_QUERY} \ 12 }}{no}{yes}} 13 transport = resources_transport 14 cannot_route_message = Unknown user