On Mon, Aug 19, 2013 at 06:25:24PM +0100, Rowland Penny wrote: > query_filter = (&(objectclass=group)(mail=%s)) > leaf_result_attribute = otherMailbox > special_result_attribute = member
> I have added a couple of otherMailbox attributes to a user called > fred, one is f...@example.com, the other is f...@anotherdomain.com. > I then added fred to the example.com group. When you specify a multi-valued result attribute (or leaf or terminal result attribute) each value will be part of the result. > I then ran this command: > > postmap -q mailgr...@example.com > ldap:/etc/postfix/ldap/ad_virtual_group_maps.cf > > This is where the problem comes in, I expected to just get back > f...@example.com, but instead I get f...@example.com and > f...@anotherdomain.com As expected. If you want a single value back, use a single-valued attribute. -- Viktor.