Difference between revisions of "List all existing distribution list and the respective members"

(List all existing distribution lists and the respective members)
m
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
===<h1>List all existing distribution lists and the respective members</h1>===
+
{{BC|Certified}}
 +
__FORCETOC__
 +
<div class="col-md-12 ibox-content">
 +
=List all existing distribution lists and the respective members=  
 +
{{KB|{{ZC}}|{{ZCS 9.0}}|{{ZCS 8.8}}|{{ZCS 8.7}}|}}
  
<hr>
+
====Problem====
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|}}
+
How to list all existing distribution lists and their respective members from the command line?
{{WIP}} 
 
<hr>
 
<br>
 
<h2>Problem:</h2>
 
 
 
How to list all existing distribution lists and their respective members from command line?
 
 
 
<h2>Solution:</h2>
 
  
 +
====Solution====
 
===== Method 1: =====
 
===== Method 1: =====
Run the given script on ZCS server to list the distribution list and members of respective distribution lists :
+
Run the given script on ZCS server to list the existing distribution lists and members of respective distribution lists :
  
 
  for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done > /tmp/dlresult
 
  for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done > /tmp/dlresult
Line 21: Line 18:
  
 
===== Method 2: =====  
 
===== Method 2: =====  
Run following command, it will print all DLs with their members on screen.
+
Run following command, it will print all distribution lists with its members on screen :
  
 
  zmprov gadl -v   
 
  zmprov gadl -v   
Line 27: Line 24:
  
  
Submitted by: Aarti Shah
+
{{SubmittedBy| Aarti Shah}}
 +
 
 +
{{Article Footer|ZCS 9.0,8.8,8.7|2018-08-19}}

Latest revision as of 12:18, 6 June 2020

List all existing distribution lists and the respective members

   KB 23355        Last updated on 2020-06-6  




0.00
(0 votes)

Problem

How to list all existing distribution lists and their respective members from the command line?

Solution

Method 1:

Run the given script on ZCS server to list the existing distribution lists and members of respective distribution lists :

for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done > /tmp/dlresult

Result would be saved in /tmp/dlresult file.


Method 2:

Run following command, it will print all distribution lists with its members on screen :

zmprov gadl -v  


Submitted by: Aarti Shah
Verified Against: ZCS 9.0,8.8,8.7 Date Created: 2018-08-19
Article ID: https://wiki.zimbra.com/index.php?title=List_all_existing_distribution_list_and_the_respective_members Date Modified: 2020-06-06



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