Skip to content

Instantly share code, notes, and snippets.

@mciverza
Forked from rwjblue/list.sh
Created April 13, 2017 10:37
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 mciverza/caef0cee38bc104fec700d3728b2da9f to your computer and use it in GitHub Desktop.
Save mciverza/caef0cee38bc104fec700d3728b2da9f 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