Hi Victor, Thanks also for your reply.
Isn't it a simpler way to accomplish that? Something like a support for variables (%u) on the left side? Example: everyone_query_filter = (&(accountStatus=active)(%u=everyone)) Thanks, Ronie -------- Original Message -------- Subject: Re: every...@example.com virtual_alias_maps using ldap query From: Victor Duchovni <victor.ducho...@morganstanley.com> To: postfix-users@postfix.org Date: Thu Mar 18 2010 13:45:50 GMT-0300 On Thu, Mar 18, 2010 at 01:31:11PM -0300, Ronie Gilberto Henrich wrote: The problem about your solution below is that it will go into a loop. Only if you go out of your way to make it loop. The address expansion in virtual(5) is recursive, but it stops as soon as address expands to itself. If "everyone" is a group object that expands to a list of users, just make sure the query returns all users and no groups. If you want the group be "dynamic", you can use LDAP URI valued groups and "special_result_attribute" to process such URIs. If the list of users is not too large, this works reasonably well. Once you are processing thousands of users, you should consider operating a list server to which such addresses are routed, and do the expansion there... Giving all users an "every...@example.com" address is a bit ugly, just use objectClasses or sub-trees to determine who is in scope.