In zimbra mailserver
zmprov command can performs all provisioning tasks in Zimbra LDAP
including creating accounts, aliases, domains, COS, distribution lists, and
calendar resources.This zmprov is very powerful tool for zimbra administrator
to perform daily task. Beside using command line interface (CLI), system
administrator also can perform the following task from zimbra admin console.
The command syntax
is zmprov [cmd] [argument]
Create account with
password
Syntax:
zmprov ca name@domain.com password
Example:
$ zmprov ca shahzad@example.com india@321
Create
account in zimbra with Display name
$ zmprov ca shahzad@example.com india@321 displayName
"Shahzad Alam"
Create additional Administration Account in zimbra
Syntax:
zmprov ca account_name@domain.com [password here]
zimbraIsAdminAccount TRUE
Eample:
$ zmprov ca admin1@example.com india@321 zimbraIsAdminAccount TRUE
Make normal email account to administrator account in zimbra
Syntax:
zmprov ma account_name@domain.com zimbraIsAdminAccount
TRUE
Example:
$ zmprov ma shahzad@example.com zimbraIsAdminAccount TRUE
Create Domain in zimbra
$ zmprov cd xyz.com
List /View all domain in zimbra
$ zmprov –l gad
example.com
xyz.com
List all user account in domain
zmprov gaa example.com
List all email account in zimbra
$zmprov –l gaa
List all Administrator account in zimbra
$zmprov –l gaaa
Change password of any account in zimbra
$ zmprov sp shahzad@example.com india@123
Change password of administrator account in zimbra
$ zmprov sp admin@example.com india@123
Delete account in zimbra
$ zmprov da shahzad@example.com
Note: some time email id can’t delete due to corruption from ladp. So we will need to delete account with –l (ldap) optioin. Use below command to delete account .
$ zmprov -l da shahzad@example.com
Reference link: https://wiki.zimbra.com/wiki/Zmprov
zmprov: command not found...
ReplyDeleteCommand need to run through zimbra user. Go to, su - zimbra then run command.
ReplyDelete