How to Lock and Unlock Zimbra Accounts from Command Line


To lock the account:

# su zimbra
$ zmprov ma user@domain.com zimbraAccountStatus lock

Note : When a mailbox status is locked, the login is disabled until you unlock the account but mail is still delivered.

To Unlock the account:

# su zimbra
$ zmprov ma user@domain.com zimbraAccountStatus active

To lockout the account:

# su zimbra
$ zmprov ma user@domain.com zimbraAccountStatus lockout

Note : Users who try to log in and have forgotten their password are temporarily locked out after a specified number of consecutive failed login attempts.

To closed the account:

# su zimbra
$ zmprov ma user@domain.com zimbraAccountStatus closed

Note : When a mailbox status is closed, the login is disabled. This status is used to soft-delete an account. The account exists until you delete it.
Maintenance: When a mailbox status is maintenance, login is disabled and mail addressed to the account is queued at the MTA.

Comments

Popular posts from this blog

Cambium cnPilot E400/E410/E500 Configuration Tutorial

Disabling Zimbra's AntiSpam, Amavis and AntiVirus filtering

Error "Unable to retrive Zimbra GPG key for package validation"