Skip to content

Instantly share code, notes, and snippets.

@richardsonlima
Forked from rwjblue/list.sh
Created August 9, 2016 22:43
Show Gist options
  • Save richardsonlima/868dd979dfc3fd569ba806fb114bf25d to your computer and use it in GitHub Desktop.
Save richardsonlima/868dd979dfc3fd569ba806fb114bf25d 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