Skip to content

Instantly share code, notes, and snippets.

@MayMeow
Forked from rwjblue/list.sh
Created April 11, 2018 12:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MayMeow/8391b4c22cc5fa8172d1dfdfc3f855c3 to your computer and use it in GitHub Desktop.
Save MayMeow/8391b4c22cc5fa8172d1dfdfc3f855c3 to your computer and use it in GitHub Desktop.
List account and distribution list details in Zimbra
sudo su - zimbra
# list all accounts and print out account name and aliases
for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done
# list all distribution lists and any members and/or aliases
for i in `zmprov gadl` ; do zmprov gdl $i zimbraMailAlias zimbraMailForwardingAddress ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment