{"id":4712,"date":"2013-06-11T22:56:30","date_gmt":"2013-06-11T14:56:30","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=4712"},"modified":"2023-04-28T09:48:20","modified_gmt":"2023-04-28T09:48:20","slug":"how-to-get-add-delete-distribution-list-using-zmprov-cli-in-zimbra","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-get-add-delete-distribution-list-using-zmprov-cli-in-zimbra\/","title":{"rendered":"How to Get, Add, Delete, Distribution List using zmprov CLI in Zimbra"},"content":{"rendered":"<p><img decoding=\"async\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/07\/zimbra-150x150.jpg\" alt=\"zimbra\" width=\"150\" height=\"150\" class=\"alignleft size-thumbnail wp-image-3529 lazyload\" data-srcset=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/07\/zimbra-150x150.jpg 150w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/07\/zimbra-100x100.jpg 100w, https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/07\/zimbra.jpg 225w\" data-sizes=\"(max-width: 150px) 100vw, 150px\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 150px; --smush-placeholder-aspect-ratio: 150\/150;\" \/>The 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].<\/p>\n<p>1. Login to zimbra :<\/p>\n<pre>\n[root@centos64 ~]# su - zimbra\n<\/pre>\n<p>2. How to get DistributionListmembership :<\/p>\n<pre>\n[zimbra@centos64 ~]$ zmprov gdlm ictgroup@ehowstuff.local\n# distributionList ictgroup@ehowstuff.local memberCount=2\n\nmembers\nadmin@ehowstuff.local\nuser1@ehowstuff.local\n<\/pre>\n<p>3. How to getDistributionList : <\/p>\n<pre>\n[zimbra@centos64 ~]$ zmprov gdl ictgroup@ehowstuff.local\n# distributionList ictgroup@ehowstuff.local memberCount=2\nmail: ictgroup@ehowstuff.local\nobjectClass: zimbraDistributionList\nobjectClass: zimbraMailRecipient\nuid: ictgroup\nzimbraCreateTimestamp: 20130512043842Z\nzimbraId: ee8b2755-d450-42a0-bb8b-b0ab64901ca6\nzimbraMailAlias: ictgroup@ehowstuff.local\nzimbraMailForwardingAddress: admin@ehowstuff.local\nzimbraMailForwardingAddress: user1@ehowstuff.local\nzimbraMailHost: centos64.ehowstuff.local\nzimbraMailStatus: enabled\n\nmembers\nadmin@ehowstuff.local\nuser1@ehowstuff.local\n<\/pre>\n<p>4. How to createDistributionList :<\/p>\n<pre>\n[zimbra@centos64 ~]$ zmprov cdl newgroup@ehowstuff.local\n94bf7dad-3f01-4c5c-a02a-bc646cd1c4b7\n[zimbra@centos64 ~]$ zmprov adlm newgroup@ehowstuff.local user1@ehowstuff.local\n[zimbra@centos64 ~]$ zmprov adlm newgroup@ehowstuff.local user2@ehowstuff.local\n[zimbra@centos64 ~]$ zmprov gdlm newgroup@ehowstuff.local\n# distributionList newgroup@ehowstuff.local memberCount=2\n\nmembers\nuser1@ehowstuff.local\nuser2@ehowstuff.local\n<\/pre>\n<p>5. How to removeDistributionListMember :<\/p>\n<pre>\n[zimbra@centos64 ~]$ zmprov rdlm newgroup@ehowstuff.local user2@ehowstuff.local\n<\/pre>\n<p>6. How to getAlldistributionLists : <\/p>\n<pre>\n[zimbra@centos64 ~]$ zmprov gadl\nictgroup@ehowstuff.local\nnewgroup@ehowstuff.local\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>The 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&#8230;<\/p>\n","protected":false},"author":6,"featured_media":5420,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1100],"tags":[1355,1957],"class_list":["post-4712","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-zimbra","tag-email-server","tag-zmprov"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4712","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=4712"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/4712\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/5420"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=4712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=4712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=4712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}