Zimbra CLI Account Management
Create an account w/ password of test1234 for email address user@abc.com with the name First Z Last and make them change their password the first time they log on
zmprov createAccount user@abc.com 'test1234' zimbraPasswordMustChange TRUE displayName 'First Z. Last' \ givenName First sn Last zimbranotes 'some notes' description 'some description'
Delete an account
zmprov deleteAccount user@abc.com
get all parameters on an account
zmprov ga user@abc.com
Change a users zimbra password
zmprov sp <account> <new password>
Create an admin account:
zmprov ca <acccount> <passwd> zimbraIsAdminAccount TRUE
Turning an existing account into an admin account:
zmprov ma <account> zimbraIsAdminAccount TRUE
Downgrading an admin account to a normal account:
zmprov ma <account> zimbraIsAdminAccount FALSE
List all account email addresses (does not list aliases)
/opt/zimbra/bin/zmprov -l gaa
Set the status of an account. zimbraAccountStatus can be set to active, locked, maintenance or closed.
zmprov ma accountname@domain.com zimbraAccountStatus active
create domain with cos id as indicated
zmprov cd fubar.com zimbraDomainDefaultCOSId d8e73c02-73d6-433e-b30a-148ce41a4ce1
delete domain
zmprov dd fubar.com