>
> I have an ldap query returning alias_maps via
> ldap:/etc/postfix/ldap-aliases.cf which for the most part is working.
>
> 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 PROTECTED]
>        bind = no
>
> For our 200 users, this works fine - however we have a small number (<10) of
> users who have multiple UIDs, for example:
>        # postmap -q [EMAIL PROTECTED] ldap:/etc/postfix/ldap-aliases.cf
>        [EMAIL PROTECTED],[EMAIL PROTECTED]
>
> The question is, how do I *only* return [EMAIL PROTECTED] as the result
> and not the 2nd (or 3rd, 4th, etc) result?
>
>
...
> Regards,
> Michael Pasqualone
>

Fix ldap data. You have two entries with uid=testuser. Mail will be
delivered for all results.

-- 
Reinaldo de Carvalho
http://korreio.sf.net
http://python-cyrus.sf.net

Reply via email to