Create a distribution list that contains all the addresses in a domain

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Create a distribution list that contains all the active accounts in a Zimbra environment

   KB 21857        Last updated on 2018-04-26  

(0 votes)


Create a distribution list that contains all the addresses in a domain.


Run the following from the CLI:

zmprov cddl 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

Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 04/10/2015
Article ID: Date Modified: 2018-04-26

Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »

Wiki/KB reviewed by SME1 SME2 Copyeditor Last edit by Shanxt
Jump to: navigation, search