On Wed, Sep 09, 2009 at 10:37:04AM +0200, Edgar Fuß wrote:

> I hope this has not been asked before. I've searched the archive and 
> ldap_table(5), LDAP_README and LOCAL_RECIPIENT_README.
> 
> I'm looking for a way to specify a fixed alias which expands to (the
> mail attribute of) all LDAP entries with a certain attribute having a
> certain value.
>
> I. e. mail to ,,foobar'' should go to (the address specified in the
> mail attribute of) all people whose LDAP ,,foo'' attribute has the
> value ,,bar''.

Postfix supports LDAP DN references and URI expansion. Attributes listed
in "special_result_attribute" can be "DN-valued" or (query) "URI-valued".
So you can store the "foo=bar" query in a "special_result_attribute"
of an object whose primary lookup key is foobars, and a special
result attribute specifies the desired query as an LDAP URL.

-- 
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majord...@postfix.org?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.

Reply via email to