• 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 Manage Zimbra Account Status from CLI

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.

Examples

Below are some of the examples which you can use to change the state of a Zimbra account.
1. To lockout a zimbra account manually:

$ zmprov ma geeklab@example.com  zimbraAccountStatus lockout

2. To bring an inactive/locked account to normal(active) state, use the below command:

$ zmprov ma shahzad@example.com zimbraAccountStatus active

3. To close or soft-delete an account, you can use the below command:

$ zmprov ma shahzad@example.com zimbraAccountStatus closed

Filed Under: Linux

Some more articles you might also be interested in …

  1. How to fix the error “host key verification failed”
  2. How to Configure Automatic Package Updates on the Server in CentOS/RHEL 8
  3. How To Identify User Deleting Files From A Given Directory in Linux
  4. halt Command Examples in Linux
  5. How to configure VNC Server on Oracle Linux 6
  6. w Command Examples in Linux
  7. How to Back Up and Restore XFS File Systems (xfsdump / xfsrestore)
  8. CentOS / RHEL : How to set up chroot jail SFTP
  9. CentOS / RHEL 4 : How to configure interface bonding (NIC teaming)
  10. How to move /var on a separate disk as a separate mount point (Online)

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright