Creating a Zimbra dynamic distribution list

Did you know that you can create dynamic distribution lists in Zimbra? The benefit of dynamic distribution lists is that they are based on LDAP queries. So whenever users are added/removed/changed on your Zimbra server, the distribution list is automatically kept up-to-date based on the contents of LDAP and your query.

The creation of dynamic distribution lists can be done via the Zimbra Administrative web UI and the command line.

How to create a dynamic distribution list that contains all the active accounts of a specific domain?

Via the command line this can be done as follows, replace with your actual domain, don’t forget to use the zimbra OS user:

zmprov cddl memberURL ‘ldap:///??sub?(&(&(objectClass=zimbraAccount)(mail=*!(objectClass=zimbraCalendarResource)))’ zimbraIsACLGroup FALSE

Then you will be able to use the email address to send messages to all users with an email address.

The same can be done from the Admin Console Web UI,

  • 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)(mail=*!(objectClass=zimbraCalendarResource)))’ to create a DL for all active accounts.

The Member URL can be found on this screen:

Dynamic distribution lists can be based on many different LDAP attributes, for example if you look up an account in the Admin Console, you will see many fields such as Office, Department, Country etc, etc. These can all be used for the creation of dynamic distribution lists. You can click on the field label to find the LDAP attribute name. For example Office is stored in LDAP as physicalDeliveryOfficeName.

Further reading


No comments yet.

Leave a Reply

Copyright © 2022 Zimbra, Inc. All rights reserved.

All information contained in this blog is intended for informational purposes only. Synacor, Inc. is not responsible or liable in any manner for the use or misuse of any technical content provided herein. No specific or implied warranty is provided in association with the information or application of the information provided herein, including, but not limited to, use, misuse or distribution of such information by any user. The user assumes any and all risk pertaining to the use or distribution in any form of any subject matter contained in this blog.

Legal Information | Privacy Policy | Do Not Sell My Personal Information | CCPA Disclosures