List all existing distribution list and the respective members

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

List all existing distribution list and the respective members



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 distribution list 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 DLs with their members on screen.

zmprov gadl -v  


Submitted by: Aarti Shah

Jump to: navigation, search