Re: local_recipient_maps with LDAP

2010-09-01 Thread Victor Duchovni
On Tue, Aug 31, 2010 at 10:48:45PM +0200, Marco Rebsamen wrote: > Hm, looks like some things changed since I set up the last system. I > mean why did it work before ? You changed your configuration. The treatment of relay_domains and virtual_alias_domains has not changed since Postfix 2.0. --

Re: local_recipient_maps with LDAP

2010-08-31 Thread Victor Duchovni
On Tue, Aug 31, 2010 at 08:07:52PM +0200, Marco Rebsamen wrote: > > Probably "mail" is the original address in most cases. Where is > > such mail routed? If to another server, these are "relay" domains, > > not virtual alias domains, unless you rewrite the address in transit... > > The Messages s

Re: local_recipient_maps with LDAP

2010-08-31 Thread Victor Duchovni
On Tue, Aug 31, 2010 at 04:05:57PM +0200, Marco Rebsamen wrote: > Ok I removed that * now from the request an used "mail" as > result_attribute. This works now for the local domain ... Good. > I added all the non-local domains to the parameter virtual_alias_domains > and set virtual_alias_maps t

Re: local_recipient_maps with LDAP

2010-08-30 Thread Jamrock
"Marco Rebsamen" wrote in message news:f70fd6682c026e40970a322e98e764545...@tranceiver.hive.loc... Hello Everybody 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 bi

Re: local_recipient_maps with LDAP

2010-08-30 Thread Victor Duchovni
On Mon, Aug 30, 2010 at 09:46:26PM +0200, Marco Rebsamen wrote: > > > search_base = DC=hive, DC=loc > > > query_filter = proxyAddresses=smtp:*...@unimatrix0.ch > > > result_attribute = proxyAddresses > > > > What is that pesky "*" doing in your query filter!!! > > It's a damn wildcard! I thought

Re: local_recipient_maps with LDAP

2010-08-30 Thread Victor Duchovni
On Mon, Aug 30, 2010 at 08:50:33PM +0200, Marco Rebsamen wrote: > > Ok, I'm really confused about that LDAP lookup stuff :-/ > What I want to do is to check if an address to which a message is addressed > really exists. > > I'm currently using this script for local receipient checks: > > bind_

Re: local_recipient_maps with LDAP

2010-08-30 Thread Victor Duchovni
On Mon, Aug 30, 2010 at 04:58:48PM +0200, Patrick Ben Koetter wrote: > * Victor Duchovni : > > > Is "smtp:%s" sufficient? IIRC the main mail address is noted as > > > "SMTP:%s". A > > > query that catches those too would be this: > > > > The proxyAddresses field is matched case-insensitively. No

Re: local_recipient_maps with LDAP

2010-08-30 Thread Patrick Ben Koetter
* Victor Duchovni : > > Is "smtp:%s" sufficient? IIRC the main mail address is noted as "SMTP:%s". A > > query that catches those too would be this: > > The proxyAddresses field is matched case-insensitively. No fancy gymnastics > required: > > > query_filter = (|(proxyAddresses=smtp:%s)(pro

Re: local_recipient_maps with LDAP

2010-08-30 Thread Victor Duchovni
On Mon, Aug 30, 2010 at 04:45:39PM +0200, Patrick Ben Koetter wrote: > * Patrick Ben Koetter : > > Is "smtp:%s" sufficient? IIRC the main mail address is noted as "SMTP:%s". A > > query that catches those too would be this: > > > > query_filter = (|(proxyAddresses=smtp:%s)(proxyAddresses=SMT

Re: local_recipient_maps with LDAP

2010-08-30 Thread Victor Duchovni
On Mon, Aug 30, 2010 at 04:39:46PM +0200, Patrick Ben Koetter wrote: > * Victor Duchovni : > > On Sun, Aug 29, 2010 at 01:20:39AM +0200, Marco Rebsamen wrote: > > > > > query_filter = proxyaddresses=...@domain1.ch* > > > > DO NOT use wildcard "*" patters to match recipients. The correct query

Re: local_recipient_maps with LDAP

2010-08-30 Thread Patrick Ben Koetter
* Patrick Ben Koetter : > Is "smtp:%s" sufficient? IIRC the main mail address is noted as "SMTP:%s". A > query that catches those too would be this: > > query_filter = (|(proxyAddresses=smtp:%s)(proxyAddresses=SMTP:%s)) On second thought... A query that matches all aliases goes like this:

Re: local_recipient_maps with LDAP

2010-08-30 Thread Patrick Ben Koetter
* Victor Duchovni : > On Sun, Aug 29, 2010 at 01:20:39AM +0200, Marco Rebsamen wrote: > > > query_filter = proxyaddresses=...@domain1.ch* > > DO NOT use wildcard "*" patters to match recipients. The correct query > is: > > query_filter = proxyAddresses=smtp:%...@domain1.ch > > or, more

Re: local_recipient_maps with LDAP

2010-08-30 Thread Victor Duchovni
On Sun, Aug 29, 2010 at 01:20:39AM +0200, Marco Rebsamen wrote: > query_filter = proxyaddresses=...@domain1.ch* DO NOT use wildcard "*" patters to match recipients. The correct query is: query_filter = proxyAddresses=smtp:%...@domain1.ch or, more typically: query_filter = proxyAd

Re: local_recipient_maps with LDAP

2010-08-29 Thread Patrick Ben Koetter
> -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 18:25 > An: Postfix Users > Betreff: Re: local_recipient_maps with LDAP > > * Marco Reb

Re: local_recipient_maps with LDAP

2010-08-28 Thread Patrick Ben Koetter
0 17:56 > An: postfix-users@postfix.org > Betreff: Re: local_recipient_maps with LDAP > > * Marco Rebsamen : > > I wan't to have my local recipeints checked against my Active Directory. > > So I have created the .cf file with the LDAP parameters: > > > &

Re: local_recipient_maps with LDAP

2010-08-28 Thread Patrick Ben Koetter
* Marco Rebsamen : > 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=d