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