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 = j...@hive.loc bind_pw = **** server_host = 192.168.8.254 #Global Catalog port server_port = 3268 search_base = DC=hive, DC=loc query_filter = proxyAddresses=smtp:*...@unimatrix0.ch result_attribute = proxyAddresses the result is the complete list of all addresses a user has. But I'm not sure if this is right. I delivered a test message by hand through telnet and somehow it got delivered to any address in the result even in the system. So I guess I really missed something... :-/ -----Ursprüngliche Nachricht----- Von: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] Im Auftrag von Victor Duchovni Gesendet: Montag, 30. August 2010 17:17 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 too would be this: > > > > The proxyAddresses field is matched case-insensitively. No fancy gymnastics > > required: > > > > > query_filter = (|(proxyAddresses=smtp:%s)(proxyAddresses=SMTP:%s)) > > > > The first string matches both. > > Case-insensitive because the matching rule for proxyAddresses is > case-insensitive? Yes, naturally. The case of the "smtp" prefix only matters when it is used as a result value, not when it is a lookup key. -- Viktor.