List all existing distribution list and the respective members: Difference between revisions
mNo edit summary |
|||
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? | |||
How to list all existing distribution lists and their respective members from command line? | |||
====Solution==== | |||
===== Method 1: ===== | ===== Method 1: ===== | ||
Run the given script on ZCS server to list the existing distribution lists 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 : | ||
Line 21: | Line 18: | ||
===== Method 2: ===== | ===== Method 2: ===== | ||
Run following command, it will print all distribution lists with | Run following command, it will print all distribution lists with its members on screen : | ||
zmprov gadl -v | zmprov gadl -v | ||
Line 27: | Line 24: | ||
{{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 |