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

(Created page with "===<h1>List all existing distribution list and the respective members</h1>=== <hr> <br> <h2>Problem:</h2> How to list all existing distribution lists and their respective me...")
 
Line 9: Line 9:
 
<h2>Solution:</h2>
 
<h2>Solution:</h2>
  
 +
===== 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 distribution list and members of respective distribution lists :
  
Line 16: Line 17:
  
  
 +
===== Method 2: =====
 +
Run following command, it will print all DLs with their members on screen.
  
"Aarti Shah"
+
zmprov gadl -v 
  
<ashah@zimbra.com>
+
 
 +
 
 +
Submitted by:  Aarti Shah

Revision as of 06:29, 19 August 2017

List all existing distribution list and the respective members



Problem:

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

Solution:

Method 1:

Run the given script on ZCS server to list the distribution list 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 DLs with their members on screen.

zmprov gadl -v  


Submitted by: Aarti Shah

Jump to: navigation, search