Quote:
Originally Posted by cpaul_carling Would there be a zmprov command that can export all e-mail addresses in all the domains, plus the alias addresses, and the distribution list e-mail addresses (not the contents of them). |
Hi paul,
'su - zimbra' and
get all email addresses on server - $ zmprov -l gaa
get all domains on server - $ zmprov -l gad
get all accounts under a domain - $ zmprov -l gaa domain.com
All distribution lists on server can be found with $ zmprov gadl
and if you need details on a DL try this one $ zmprov gdl <DLname>
Aliases can be found by looking into 'zimbraMailAlias' field of each mail address.
su - zimbra
$ zmprov ga
account@domain.com zimbraMailAlias
now search alias of each accounts on server with a loop
$ for i in `zmprov -l gaa` ; do zmprov ga $i zimbraMailAlias ; done (this will take a while, if an account doesn't have any alias set it the particular result will be blank. Just write the results to a file if the list is too long

)
Check '$ zmprov help account' for various switches.
