Skip to content

Instantly share code, notes, and snippets.

@pwldp
Forked from rwjblue/list.sh
Last active October 24, 2016 07:08
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 pwldp/2dedb1379cd053326842639ca9cabcf8 to your computer and use it in GitHub Desktop.
Save pwldp/2dedb1379cd053326842639ca9cabcf8 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