On Tue, Mar 16, 2010 at 6:54 PM, Ronie Gilberto Henrich <[email protected]> wrote: > Hi, > > /etc/postfix/main.cf > ==================== > virtual_alias_maps = ldap:everyone > > everyone_server_host = ldaps://localhost > everyone_version = 3 > everyone_search_base = ou=%d,ou=Mail,o=example,c=com > everyone_query_filter = (accountStatus=active) > everyone_result_attribute = mail > > For only emails sent to [email protected] to be forwarded to all > mailboxes in example.com, it is necessary to add a filter like > %u=everyone to that ldap query. > I tried the following: > everyone_query_filter = (&(accountStatus=active)(%u=everyone)) >
everyone_query_filter = (&(accountStatus=active)(uid=%u)) everyone_result_attribute = mail This work if you add attribute [email protected] for each ldap entry. dn: uid=user1...: [email protected] [email protected] dn: uid=user2,...: [email protected] [email protected] > But it does not work. > > > Is there any way to add that %u=everyone filter in the ldap query above? > Or any other way to get the same results and still being dynamic? > I mean dynamic by anything but generating hash alias_maps thru cron > scripts. > > > Thanks and regards, > Ronie > -- Reinaldo de Carvalho http://korreio.sf.net http://python-cyrus.sf.net "Don't try to adapt the software to the way you work, but rather yourself to the way the software works" (myself)
