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. --

AW: local_recipient_maps with LDAP

2010-08-31 Thread Marco Rebsamen
html_directory = /usr/share/doc/packages/postfix-doc/html inet_protocols = all local_recipient_maps = ldap:/etc/postfix/local_recipient_maps.cf unix:passwd.byname mail_owner = postfix mail_spool_directory = /var/mail mailbox_command = mailbox_size_limit = 0 mailbox_transport = cyrus mailq_path = /usr/bin

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 to

AW: local_recipient_maps with LDAP

2010-08-31 Thread Marco Rebsamen
I added all the non-local domains to the parameter virtual_alias_domains and set virtual_alias_maps to ldap:/etc/postfix/virtual.cf Do you understand what virtua alias domains are for? I thought I would... I tested it with postmap -q and it worked. What does worked mean? I got the same

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 should be

AW: local_recipient_maps with LDAP

2010-08-31 Thread Marco Rebsamen
...@postfix.org [mailto:owner-postfix-us...@postfix.org] Im Auftrag von Victor Duchovni Gesendet: Dienstag, 31. August 2010 21:29 An: postfix-users@postfix.org Betreff: Re: local_recipient_maps with LDAP On Tue, Aug 31, 2010 at 08:07:52PM +0200, Marco Rebsamen wrote: Probably mail is the original

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 =

Re: local_recipient_maps with LDAP

2010-08-30 Thread Patrick Ben Koetter
* Victor Duchovni postfix-users@postfix.org: 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

Re: local_recipient_maps with LDAP

2010-08-30 Thread Patrick Ben Koetter
* Patrick Ben Koetter p...@state-of-mind.de: 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

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 postfix-users@postfix.org: 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

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 p...@state-of-mind.de: 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 =

Re: local_recipient_maps with LDAP

2010-08-30 Thread Patrick Ben Koetter
* Victor Duchovni postfix-users@postfix.org: 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 =

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 postfix-users@postfix.org: 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

AW: local_recipient_maps with LDAP

2010-08-30 Thread Marco Rebsamen
An: postfix-users@postfix.org Betreff: Re: local_recipient_maps with LDAP On Mon, Aug 30, 2010 at 04:58:48PM +0200, Patrick Ben Koetter wrote: * Victor Duchovni postfix-users@postfix.org: Is smtp:%s sufficient? IIRC the main mail address is noted as SMTP:%s. A query that catches those

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_dn =

AW: local_recipient_maps with LDAP

2010-08-30 Thread Marco Rebsamen
-Ursprüngliche Nachricht- Von: Victor Duchovni [mailto:victor.ducho...@morganstanley.com] Gesendet: Montag, 30. August 2010 21:18 An: Marco Rebsamen Cc: postfix-users@postfix.org Betreff: Re: local_recipient_maps with LDAP On Mon, Aug 30, 2010 at 08:50:33PM +0200, Marco Rebsamen wrote

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 I would need it

Re: local_recipient_maps with LDAP

2010-08-30 Thread Jamrock
...@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 with LDAP

2010-08-28 Thread Marco Rebsamen
=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

Re: local_recipient_maps with LDAP

2010-08-28 Thread Patrick Ben Koetter
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

Re: local_recipient_maps with LDAP

2010-08-28 Thread Patrick Ben Koetter
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