Create a distribution list that contains all the addresses in a domain
Create a distribution list that contains all the active accounts in a Zimbra environment
- This article is a Work in Progress, and may be unfinished or missing sections.
Purpose
Create a distribution list that contains all the addresses in a domain.
Resolution
Run the following from the CLI:
zmprov cddl all@example.com memberURL 'ldap:///??sub?(&(objectClass=zimbraAccount)(ZimbraAccountStatus=active))' zimbraIsACLGroup FALSE
The 'ZimbraAccountStatus=active' specifies that only active accounts are added. We can similarly add more filters as well.
This can also be done from the admin console:
- Go to Manage > Distribution Lists.
- Click 'New' from the gear icon
- Add a dynamic distribution list name. Don't add members to the list.
- Click "Next" to configure the dynamic DL
- For the 'Member URL' field, select 'ldap:///??sub?(&(objectClass=zimbraAccount)(ZimbraAccountStatus=active))' to create a DL for all active accounts.
Additional Content
- Check the next Wiki article for a extended information about Distribution Lists.