Lock and Unlock zimbra account from command line

How to Lock and Unlock zimbra account from command line. some account sending email spam, you are administrator to need lock account from command line.

To login your Mailbox system. To perform some command below to lock and unlock zimbra account. For example, I will lock and unlock account huupv02@mail.huuphan.com . The command line as below running su - zimbra. Now, let's start!

Lock and Unlock zimbra account


Step 1: Checking status account huupv02@mail.huuphan.com as below:
$ zmprov ga huupv02mail.huuphan.com | grep zimbraAccountStatus
The display as below:
Lock and Unlock zimbra account from command line
Another command to check status account with zmaccts as below:
Lock and Unlock zimbra account from command line 2
Step 2: To Lock zimbra account huupv02@mail.huuphan.com
$ zmprov ma huupv02@mail.huuphan.com zimbraAccountStatus locked
The display as picture below:
Lock and Unlock zimbra account from command line3
To check account status after locked
Lock and Unlock zimbra account from command line4

Step 3: To Unlock zimbra account huupv02@mail.huuphan.com
$ zmprov ma huupv02@mail.huuphan.com zimbraAccountStatus active
The display as picture below:
Lock and Unlock zimbra account from command line5

Conclusion

Thought the article, you can use "Lock and Unlock zimbra account from command line" as above . I hope will this your helpful.

Comments

  1. Wow :)
    This is an incredible collection of ideas!
    Waiting for more helpful pieces.
    You would amazing to read a similar one here-
    besttoolsbrand

    ReplyDelete

Post a Comment

Popular posts from this blog

zimbra some services are not running [Solve problem]

Bash script list all IP addresses connected to Server with Country Information

Zimbra Client host rejected Access denied fixed