How to Get, Add, Delete, Distribution List using zmprov CLI in Zimbra


Share this Article :

zimbraThe zmprov tool can performs all provisioning tasks in Zimbra LDAP including creating accounts, aliases, domains, COS, distribution lists, and calendar resources.This zmprov is very powerful tool for zimbra administrator to perform daily task. Beside using command line interface (CLI), system administrator also can perform the following task from zimbra admin console. For CLI, the syntax is zmprov [cmd] [argument].

1. Login to zimbra :

[[email protected] ~]# su - zimbra

2. How to get DistributionListmembership :

[[email protected] ~]$ zmprov gdlm [email protected]
# distributionList [email protected] memberCount=2

members
[email protected]
[email protected]

3. How to getDistributionList :

[[email protected] ~]$ zmprov gdl [email protected]
# distributionList [email protected] memberCount=2
mail: [email protected]
objectClass: zimbraDistributionList
objectClass: zimbraMailRecipient
uid: ictgroup
zimbraCreateTimestamp: 20130512043842Z
zimbraId: ee8b2755-d450-42a0-bb8b-b0ab64901ca6
zimbraMailAlias: [email protected]
zimbraMailForwardingAddress: [email protected]
zimbraMailForwardingAddress: [email protected]
zimbraMailHost: centos64.ehowstuff.local
zimbraMailStatus: enabled

members
[email protected]
[email protected]

4. How to createDistributionList :

[[email protected] ~]$ zmprov cdl [email protected]
94bf7dad-3f01-4c5c-a02a-bc646cd1c4b7
[[email protected] ~]$ zmprov adlm [email protected] [email protected]
[[email protected] ~]$ zmprov adlm [email protected] [email protected]
[[email protected] ~]$ zmprov gdlm [email protected]
# distributionList [email protected] memberCount=2

members
[email protected]
[email protected]

5. How to removeDistributionListMember :

[[email protected] ~]$ zmprov rdlm [email protected] [email protected]

6. How to getAlldistributionLists :

[[email protected] ~]$ zmprov gadl
[email protected]
[email protected]

Like this Article? Subscribe to Our Feed!

One Response

  1. dgp

Leave a Reply