A distribution list is a group of email addresses. In Zimbra, you can create and manage multiple distribution lists. So when anyone sends an email to a distribution list a copy of it is delivered to all of its member’s mailboxes.
With the distribution list, you can manage different groups of email accounts.
From the image, you can see the email server contains several email accounts. Out of those email accounts, multiple groups are formed. i.e Group email@example.com contains 4 email addresses. Similarly, Group firstname.lastname@example.org & email@example.com contains respectively 3 and 2 email addresses.
So whenever someone sends an email to firstname.lastname@example.org, it is delivered to all of its member’s inboxes. The same thing happens to other groups also.
In addition to that group email feature, Zimbra also allows you to apply some policies to these groups. We will discuss them in this article and also you will learn how to manage your distribution list.
How To Manage A Distribution List
Login to your admin panel.
Go to Home > Manage > Distribution Lists. Select the
New option using the Gear icon on the top right of the screen.
Fill out the panel as shown in the image:
List Name for your distribution list. You can
add members to this list from this panel.
owner of this list who will have the authority to manage the list.
***Keep all other settings as it is. You can change them later.
Distribution List is ready for use.
You can also double-click on the newly created
Distribution List to view/edit them.
Now we will see how can we manage
Distribution List using CLI.
Create a distribution list and add members to it using CLI:
[Create a distribution list] zimbra@mail:/root$ zmprov cdl email@example.com 959e8ba3-0135-4384-acfa-bbed08c53977 zimbra@mail:/root$ [Add member to the distribution list] zimbra@mail:/root$ zmprov adlm firstname.lastname@example.org email@example.com zimbra@mail:/root$ zmprov adlm firstname.lastname@example.org email@example.com zimbra@mail:/root$ zmprov adlm firstname.lastname@example.org email@example.com zimbra@mail:/root$ [Find the member of a distribution list] zimbra@mail:/root$ zmprov gdlm firstname.lastname@example.org # distributionList email@example.com memberCount=3 members firstname.lastname@example.org email@example.com firstname.lastname@example.org zimbra@mail:/root$ [Remove/delete member from a distribution list] zimbra@mail:/root$ zmprov rdlm email@example.com firstname.lastname@example.org zimbra@mail:/root$ [Delete an entire distribution list] zimbra@mail:/root$ zmprov ddl email@example.com zimbra@mail:/root$ [Rename a distribution list] zimbra@mail:/root$ zmprov gadl firstname.lastname@example.org email@example.com zimbra@mail:/root$ zmprov rdl firstname.lastname@example.org email@example.com zimbra@mail:/root$ zimbra@mail:/root$ zmprov gadl firstname.lastname@example.org email@example.com
How To Apply Policy In A Distribution list
To apply any policy in your distribution list, you need to enable the
milter service in your Zimbra server.
Enable Milter Server
[From GUI Mode:] Global: Home > Configure > Global Settings > MTA > Milter Server [From CLI Mode:] su - zimbra zimbra@mail:/root$ zmprov modifyConfig zimbraMilterServerEnabled TRUE zimbra@mail:/root$ zmmilterctl start Starting milter server...done. zimbra@mail:/root$ zmmilterctl status Milter server is running. zimbra@mail:/root$
Apply Policy to the distribution list. To do so, go to the admin panel. Find the distribution list. Double click it and find out its owner.
Go to the Owner’s email account(In this case, firstname.lastname@example.org). Go to the
Contact, find the distribution list. Double click it.
A new window with all the settings will appear. We will check these options one by one:
- Distribution List Members – In this Tab, you can edit the list of existing members of this group. You can add/remove members from here.
- Distribution List Properties – In this Tab, you will get all settings of this distribution list.
- Display Name – You Set can a
Display Namefor your Distribution List as like user email account.
- Description – You can set a description of this Distribution List.
- Directory – You can opt-in/out to make this distribution list a private one and hidden from the GAL(Global Address List)
- Mail – This is an important feature. Here, you can set who can send email to this Distribution List.
- You can keep it open so anyone (both insider and outsider) can send an email to this list.
- You can allow only members of this group can send emails to this list.
- Only internal users of this server/domain can send emails to this list.
- You can also specify specific email addresses that can send emails to this list
- You can also manage the
New Subscription Requestsettings from this page.
- Unsubscription Requests can be also managed from this page.
- List Owners – You can add/remove owners from this option.
- Notes – You can set additional notes in this field.
What is a Dynamic Distribution List?
A dynamic distribution list is a group that contains all current emails and includes all future email addresses in this group automatically. Mostly this kind of group is used in large organizations where dynamically adding users to a group address is more convenient.
zimbra@mail:/root$ zmprov cddl email@example.com memberURL 'ldap:///??sub?(&(objectClass=zimbraAccount)(ZimbraAccountStatus=active))' zimbraIsACLGroup FALSE [Output] f562f8a6-5ce4-41c5-9a65-b741a075aed6
The ‘ZimbraAccountStatus=active’ specifies that only active accounts are added. We can similarly add more filters as well.
You can also define a Distribution List as a dynamic distribution list during its creation.
Let’s Take A Look At An Example
In this server(example.com), we have a distribution list
firstname.lastname@example.org. It contains four members i.e
email@example.com. After enabling the milter server, we set the policy such as except for group members no other can send email to this list.
Now another user firstname.lastname@example.org tries to send an email to this group (email@example.com). What will happen?
So now you learnt some important information related to managing distribution list. Hope it will help you in your day-to-day operation.
That’s all for today.