Difference between revisions of "List all existing distribution list and the respective members"
m (→List all existing distribution lists and the respective members) |
m |
||
(2 intermediate revisions by one other user 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? | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | 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 distribution | + | 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 23: | Line 18: | ||
===== Method 2: ===== | ===== Method 2: ===== | ||
− | Run following command, it will print all | + | Run following command, it will print all distribution lists with its members on screen : |
zmprov gadl -v | zmprov gadl -v | ||
Line 29: | 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
Contents
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 |