* Marco Rebsamen <mrebsa...@unimatrix0.ch>: > I wan't to have my local recipeints checked against my Active Directory. > So I have created the .cf file with the LDAP parameters: > > bind_dn = u...@domain.local > bind_pw = ****** > server_host = 192.168.8.254 > #Global Catalog port > server_port = 3268 > search_base = DC=domain, DC=local > query_filter = proxyAddresses=*%s* > > and changed the main.cf file: > > local_recipient_maps = ldap:/etc/postfix/local_recipient_maps.cf > unix:passwd.byname > > If i do this now: > postmap -v -q 'u...@domain.ch' ldap:/etc/postfix/local_recipient_maps.cf > > It tells me "Search found 1 match(es)". But If i try to deliver a > message with the same address postfix tells me "User not known in local > recipient maps" > > How can i figure out whats wrong ?
%s is replaced by the input key, but you need to search for %u somewhat like %this: query_filter = (proxyaddresses...@domain.local) Why? In context of local recipient maps the domain part is already known to Postfix and it doesn't search for it. With local_recipient_maps Postfix only looks for the localpart of an email address. p...@rick -- All technical questions asked privately will be automatically answered on the list and archived for public access unless privacy is explicitely required and justified. saslfinger (debugging SMTP AUTH): <http://postfix.state-of-mind.de/patrick.koetter/saslfinger/>