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...") |
mNo edit summary |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== | {{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}}|}} | |||
====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 | |||
{{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
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 |