List all existing distribution list and the respective members: Difference between revisions
Line 13: | Line 13: | ||
===== 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 21: | Line 21: | ||
===== Method 2: ===== | ===== Method 2: ===== | ||
Run following command, it will print all | Run following command, it will print all distribution lists with it's members on screen : | ||
zmprov gadl -v | zmprov gadl -v |
Revision as of 08:13, 19 August 2018
List all existing distribution lists and the respective members
- This article is a Work in Progress, and may be unfinished or missing sections.
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