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

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


   KB 24529        Last updated on 2023-12-20  




0.00
(0 votes)


Purpose

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

Resolution

Run the following command from the CLI:

zmprov cddl all@example.com memberURL 'ldap:///??sub?(&(&(objectClass=zimbraAccount)(mail=*@example.com)(ZimbraAccountStatus=active))(!(objectClass=zimbraCalendarResource)))' zimbraIsACLGroup FALSE

The 'ZimbraAccountStatus=active' specifies that only active accounts are added. Similarly, more filters can be added 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)(mail=*@example.com)(ZimbraAccountStatus=active))(!(objectClass=zimbraCalendarResource)))' to create a DL for all active accounts.
Submitted by: Aman Shukla
Verified Against: ZCS 8.8, ZCS 9.0, ZCS 10.0 Date Created: 2023-04-28
Article ID: https://wiki.zimbra.com/index.php?title=How_to_create_a_dynamic_distribution_list_that_contains_all_the_active_accounts_of_a_specific_domain Date Modified: 2023-12-20



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 »


Jump to: navigation, search