/opt/zimbra/bin/zmaccts | grep 'active' | egrep -v '^\W+' | awk '{print $1}'
Para exportar a lista de endereços, incluindo aliases e listas de distribuição:
/opt/zimbra/common/bin/ldapsearch -LLL -x -D"`/opt/zimbra/bin/zmlocalconfig -s zimbra_ldap_userdn | \ awk '{print $3}'`" -w"`/opt/zimbra/bin/zmlocalconfig -s zimbra_ldap_password | \ awk '{print $3}'`" -H `/opt/zimbra/bin/zmlocalconfig ldap_url | \ awk '{print $3}'` $* | \ grep ^mail | \ awk '{print $2}' | \ sort > zimbra_recipients.list