How to Manage Mailbox Folder using zmmailbox CLI in Zimbra

Zimbra zmmailbox command is used for mailbox management such as admin-related commands, account-related commands, appoint-related commands, folder-related commands, message-related commands, tag-related commands and etc. It is the powerful command utility for zimbra administrator to perform daily account management or to perform zimbra account related issues. This post will brief you on how you can manage, get, create, delete and Empty the Folder in zimbra mailbox using zmmailbox command line interface (CLI). All the command has been tested in Zimbra Collaboration Suite 8.0.4 installed on CentOS 6.4.

See also  How to Resolved Dependencies Related with wvText

Using zmmailbox command, enter to user1@ehowstuff.local mailbox :

[zimbra@centos64 ~]$ zmmailbox -z -m user1@ehowstuff.local
mailbox: user1@ehowstuff.local, size: 280.60 KB, messages: 10, unread: 0
authenticated as user1@ehowstuff.local

1. How to get All Folders in user1@ehowstuff.local :
zmmailbox sub-command usage : getAllFolders or gaf

mbox user1@ehowstuff.local> gaf
        Id  View      Unread   Msg Count  Path
----------  ----  ----------  ----------  ----------
         1  unkn           0           0  /
        16  docu           0           0  /Briefcase
        10  appo           0           0  /Calendar
        14  mess           0           0  /Chats
         7  cont           0           0  /Contacts
         6  mess           0           0  /Drafts
        13  cont           0           3  /Emailed Contacts
         2  mess           0           3  /Inbox
         4  mess           0           0  /Junk
         5  mess           0           2  /Sent
        15  task           0           0  /Tasks
         3  unkn           0           0  /Trash

2. How to create Folder in user1@ehowstuff.local :
zmmailbox sub-command usage : createFolder or cf

mbox user1@ehowstuff.local> cf /Personal
260

Once you created Personal folder, please move some files into /Personal. Then run getAllFolders or gaf.

mbox user1@ehowstuff.local> gaf
        Id  View      Unread   Msg Count  Path
----------  ----  ----------  ----------  ----------
         1  unkn           0           0  /
        16  docu           0           0  /Briefcase
        10  appo           0           0  /Calendar
        14  mess           0           0  /Chats
         7  cont           0           0  /Contacts
         6  mess           0           0  /Drafts
        13  cont           0           3  /Emailed Contacts
         2  mess           0           3  /Inbox
         4  mess           0           0  /Junk
       294  unkn           0           2  /Personal
         5  mess           0           2  /Sent
        15  task           0           0  /Tasks
         3  unkn           0           0  /Trash

3. How to Empty Folder in user1@ehowstuff.local :
zmmailbox sub-command usage : emptyFolder or ef

mbox user1@ehowstuff.local> ef /Personal

Once folder /Personal has been empty, rerun etAllFolders or gaf again to verify.

mbox user1@ehowstuff.local> gaf
        Id  View      Unread   Msg Count  Path
----------  ----  ----------  ----------  ----------
         1  unkn           0           0  /
        16  docu           0           0  /Briefcase
        10  appo           0           0  /Calendar
        14  mess           0           0  /Chats
         7  cont           0           0  /Contacts
         6  mess           0           0  /Drafts
        13  cont           0           3  /Emailed Contacts
         2  mess           0           3  /Inbox
         4  mess           0           0  /Junk
       294  unkn           0           0  /Personal
         5  mess           0           2  /Sent
        15  task           0           0  /Tasks
         3  unkn           0           0  /Trash

4. How to Delete Folder in user1@ehowstuff.local :
zmmailbox sub-command usage : deleteFolder or df

mbox user1@ehowstuff.local> df /Personal

How to Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7 / CentOS 7

This short howto will explain the steps to reset a lost root password or to reset a forgotten root password on Linux RHEL 7 or CentOS 7. Basically, we will...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

3 Comments

  • Avatar for Himanshu Himanshu says:

    Hi,

    We’re interested in advertising on your blog.

    Let me know if you’re interested in discussing further about it.

    Rgds

    Himanshu

  • Avatar for Antonio Díaz Meneses Antonio Díaz Meneses says:

    Hello!
    How can I move items from one folder to another?

    Best regards.

  • Avatar for Pheak Pheak says:

    Hello!
    First, i am sorry with my writing.
    I install Zimbra already.
    When i send email, the email was sent. But i could not received it. I don’t know how to fix it. Please me! I am first with Zimbra. I hope that you understand and help to fix it for me.
    Thz…..

1 Trackback or Pingback

Leave a Reply

Your email address will not be published. Required fields are marked *