* Marco Rebsamen <mrebsa...@unimatrix0.ch>:
> I see....
> If i got multiple domains, what do i do ?
> Something like this ? 
> query_filter = (proxyaddresses...@%d)

Only one domain can be your local domain. All other domains are virtual
domains.

Create two ldap query files.

Local domain:
query_filter = (proxyaddresses...@domain.local)

Virtual domains:
query_filter = (proxyAddresses=%s)





> 
> -----Ursprüngliche Nachricht-----
> Von: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
> Im Auftrag von Patrick Ben Koetter
> Gesendet: Samstag, 28. August 2010 17:56
> An: postfix-users@postfix.org
> Betreff: Re: local_recipient_maps with LDAP
> 
> * 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/>

-- 
state of mind
Digitale Kommunikation

http://www.state-of-mind.de

Franziskanerstraße 15      Telefon +49 89 3090 4664
81669 München              Telefax +49 89 3090 4666

Amtsgericht München        Partnerschaftsregister PR 563

Reply via email to