On Tue, Mar 16, 2010 at 6:54 PM, Ronie Gilberto Henrich <ro...@ronie.com.br> 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 every...@example.com 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 mail=every...@example.com for each ldap entry. dn: uid=user1...: mail=us...@example.com mail=every...@example.com dn: uid=user2,...: mail=us...@example.com mail=every...@example.com > 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)