• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to Lock and Unlock Zimbra Accounts from Command Line

by admin

There are 5 states of any Zimbra account as explained below. We can use the zmprov command to change the status of an account.

  • Active: Active is the normal status for a mailbox account. Mail is delivered and users can log into the client interface.
  • Maintenance: When a mailbox status is maintenance, login is disabled and mail addressed to the account is queued at the MTA.
  • Locked: When a mailbox status is locked, the login is disabled until you unlock the account, but mail is still delivered to the account. Locked can be set if you suspect that a mail account has been hacked or is being used in an unauthorized manner.
  • Closed: 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.
  • Lockout: Users who try to log in and have forgotten their password are temporarily locked out after a specified number of consecutive failed login attempts. An account’s status is automatically changed to lockout. How long the account is locked out is set by COS or Account configuration, but you can change the lockout status at any time.

Lock a Zimbra Account

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.

Unlock a Zimbra Account

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.

Close a Zimbra Account

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.

Filed Under: Linux

Some more articles you might also be interested in …

  1. virsh: command not found
  2. CentOS / RHEL 6 : How to disable IPv6
  3. lvextend command examples in Linux
  4. hlint Command Examples in Linux
  5. zypper: command not found
  6. How to Save Command history of Selected Users in Linux
  7. ipcrm Command Examples in Linux
  8. RHEL 7 – RHCSA Notes : Create hard and soft links.
  9. How to configure kdump in Oracle Enterprise Linux (OEL 5,6)
  10. How to Re-Balance BTRFS to Free Disk Space

You May Also Like

Primary Sidebar

Recent Posts

  • raw: command not found
  • raw Command Examples in Linux
  • rankmirrors Command Examples in Linux
  • radeontop: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright