Re: postfix/ldap, how to handle multiple return_results

2008-10-27 Thread Victor Duchovni
On Sun, Oct 26, 2008 at 08:42:24PM +1100, Michael Pasqualone wrote: ldap-aliases.cf contains: server_host = directory.abcd.com.au search_base = dc=abcd,dc=com,dc=au version = 3 query_filter = (uid=%u) result_attribute = uid result_format = [EMAIL

postfix/ldap, how to handle multiple return_results

2008-10-26 Thread Michael Pasqualone
Hey all, Have a hopefully easy question that someone might be able to assist me with. I've got a postfix server integrated beautifully into an Apple Open Directory environment. However I've ran into 1 small issue. I have an ldap query returning alias_maps via ldap:/etc/postfix/ldap-

Re: postfix/ldap, how to handle multiple return_results

2008-10-26 Thread Michael Pasqualone
No, LDAP is fine. It's simply returning a list of UID's assigned to the user, i.e. testuser, and test. What I need to figure out is how to tell postfix by the result_format? to only return 1 entry when that entry is found. I.e. Incoming email to [EMAIL PROTECTED], postfix/ldap looks up our

Re: postfix/ldap, how to handle multiple return_results

2008-10-26 Thread Reinaldo de Carvalho
On Sun, Oct 26, 2008 at 1:00 PM, Michael Pasqualone [EMAIL PROTECTED] wrote: No, LDAP is fine. It's simply returning a list of UID's assigned to the user, i.e. testuser, and test. What I need to figure out is how to tell postfix by the result_format? to only return 1 entry when that entry is

Re: postfix/ldap, how to handle multiple return_results

2008-10-26 Thread Reinaldo de Carvalho
In this case result_attribute must be unique. In this case result_attribute must be single valued. -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net

Re: postfix/ldap, how to handle multiple return_results

2008-10-26 Thread Michael Pasqualone
Unfortunately the issue with this is due to this being in a pure Open Directory(OD)/Workgroup Manager.app OS X environment, Workgroup Manager when enabling Mail for an account with OD doesn't specify any [EMAIL PROTECTED] attributes, literally the only thing I have to work of to devise the