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

(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...")
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
===<h1>List all existing distribution list and the respective members</h1>===
===<h1>List all existing distribution lists and the respective members</h1>===
 
<hr>
{{KB|{{ZC}}|{{ZCS 8.8}}|{{ZCS 8.7}}|{{ZCS 8.6}}|{{ZCS 8.5}}|}}
{{WIP}} 
<hr>
<hr>
<br>
<br>
<h2>Problem:</h2>
<h2>Problem:</h2>


Line 9: Line 12:
<h2>Solution:</h2>
<h2>Solution:</h2>


Run the given script on ZCS server to list the distribution list and members of respective distribution lists :
===== 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
  for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done > /tmp/dlresult
Line 15: Line 19:
Result would be saved in /tmp/dlresult file.
Result would be saved in /tmp/dlresult file.


===== Method 2: =====
Run following command, it will print all distribution lists with it's members on screen :
zmprov gadl -v 




"Aarti Shah"


<ashah@zimbra.com>
Submitted by:  Aarti Shah

Revision as of 08:13, 19 August 2018

List all existing distribution lists and the respective members


   KB 23355        Last updated on 2018-08-19  




0.00
(0 votes)


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 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 it's members on screen :

zmprov gadl -v  


Submitted by: Aarti Shah

Jump to: navigation, search