1 LDAP_LOCAL_LMTP_QUERY = (&(|(mail=${quote_ldap:${local_part}@${domain}})\ 2 (alias=${quote_ldap:${local_part}@${domain}}))\ 3 (objectclass=inetorgperson)) 4 5 cyrus_lmtp_local_lmtp: 6 debug_print = "R: cyrus_lmtp_local_lmtp for $local_part@$domain" 7 driver = accept 8 local_part_prefix = local+ 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_LOCAL_LMTP_QUERY}}} \ 14 } 15 transport = cyrus_lmtp 16 cannot_route_message = Unknown user