ZCS Administrator's Guide 8.0.4
ZCS Administrator's Guide 8.0.4
Network Edition


Managing User Accounts > Using Dynamic Distribution Lists

Using Dynamic Distribution Lists
Dynamic distribution lists automatically manage the membership. Users are added and removed from the distribution list automatically. When you create a dynamic distribution list, a member URL is specified. This member URL is used to identify who should be members of the list. You can view this URL from the administration console distribution list’s Properties page.
You can create dynamic distribution lists from the administration console or from the CLI. In the URL, you specify specific object classes that identifies the type of users to be added to the dynamic distribution list. For example, you can configure a dynamic distribution list with the object class= zimbraAccount. In this case, when accounts are provisioned or accounts are deleted, the dynamic distribution list is updated.
You can create dynamic distribution lists for all mobile users or POP/IMAP users.
You can modify a distribution list to change the filter rules. When you modify a distribution list, the members in the list are changed to reflect the new rule.
Create Dynamic Distribution Lists from the Administration Console
1.
In the administration console, go to Manage>Distribution Lists.
2.
3.
On the Members page, add the dynamic distribution list name. Do not use spaces. Do not add members to the list.
4.
Click Next to configure the Properties page.
 
Option 
Description 
Type the URL for this list. In the command, ldap:///??sub? is the URL. You can add any combination of filters to this to create different types of dynamic distribution lists.
All users with the title manager. The title is taken from the account’s Contact Information Job Title field. In this example, this field would be set to “Manager”.
Select Automatically reject.
Select Automatically reject.
5.
6.
7.
8.
Click Finish. The dynamic distribution list is created.
Users are added automatically to the list based on the filter you specified. If you add or delete users, the list is updated.
Note:
Using CLI to Manage Dynamic Distribution Lists
Use the zmprov CLI command to manage dynamic distribution lists. In the command, ldap:///??sub? is the URL. You can add any combination of filters to this to create different types of dynamic distribution lists.
Create a dynamic distribution list of all new and existing accounts
All users, GAL account names, and spam/ham account names are included. When user accounts are deleted, they are removed from the list.
zmprov cddl <all@domain.com> memberURL ‘ldap:///??sub?(objectClass=zimbraAccount)’ zimbraIsACLGroup FALSE
Create a COS and Assign Users
If you create COSs and assign users to the COS based on specific criteria, such as all managers, you can quickly modify a dynamic distribution list to be used for a specific COS.
Examples of creating dynamic distribution lists for specific user types.
*
zmprov cddl <allusers@domain.com> memberURL ‘ldap:///??sub?(&(objectClass-zimbraAccount) (zimbraCOSId=513e02e-9abc-4acf-863a-6dccf38252e3) (zimbraAccountStatus=active) )’ zimbraIsACLGroup FALSE
*
Create a dynamic distribution list that includes all users based on job titles. To use this, the account’s Contact Information Job Title field must include the title. In this example it would be set to “Manager”.
zmprov cddl <allmanagers@domain.com> memberURL ‘ldap:///??sub?(&(objectClass-zimbraAccount) (zimbraCOSId=513e02e-9abc-4acf-863a-6dccf38252e3) (title=Manager) )’ zimbraIsACLGroup FALSE
*
zmprov cddl <alldelegatedadmins@domain.com> memberURL ‘ldap:///??sub?(& (objectClass-zimbraAccount) (zimbraCOSId=513e02e-9abc-4acf-863a-6dccf38252e3) (zimbraIsDelegatedADminAccount=TRUE) )’ zimbraIsACLGroup FALSE
Copyright © 2013 VMware Inc.