Home » Zimbra » How to manage mailbox folders using zmmailbox command on zimbra server

How to manage mailbox folders using zmmailbox command on zimbra server

Zimbra zmmailbox command is useful tool for mailbox management such as admin/accounts related commands and tasks, as well as to manage folders create, delete, clears folders etc. It is the most powerful command line utility for administrator to execute daily account management or to perform zimbra account related issues. This article will describe you on how you can get, create, delete, manage and Empty the Folder in zimbra mailbox using zmmailbox command line interface.

[root@linuxpcfix~] su zimbra
[zimbra@linuxpcfix~] zmmailbox -z -m user@domain.com
mailbox: user@domain.com, size: 775.78 MB, messages: 69613, unread: 69597
authenticated as user@domain.com
mbox user@domain.com>

Get list all folders of user user@domain.com

mbox user@domain.com> 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 2 /Emailed Contacts
2 mess 197762 197764 /Inbox
214510 mess 56 67 /Inbox/report_archive
4 mess 8 8 /Junk
5 mess 0 7 /Sent
15 task 0 0 /Tasks
3 unkn 0 0 /Trash

create Folder in user@domain.com

mbox user@domain.com> cf /Test

verify folder created or not

mbox user@domain.com> 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 2 /Emailed Contacts
2 mess 197762 197764 /Inbox
214510 mess 56 67 /Inbox/report_archive
4 mess 8 8 /Junk
294 unkn 0 2 /Test
5 mess 0 7 /Sent
15 task 0 0 /Tasks
3 unkn 0 0 /Trash

Empty a particular folder user@domain.com

mbox user@domain.com> ef /Test

Once folder has been empty get folder list again to verify the same

mbox user@domain.com> 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 2 /Emailed Contacts
2 mess 197762 197764 /Inbox
214510 mess 56 67 /Inbox/report_archive
4 mess 8 8 /Junk
294 unkn 0 0 /Test
5 mess 0 7 /Sent
15 task 0 0 /Tasks
3 unkn 0 0 /Trash

To delete folder

mbox user@domain.com> df /Test

I hope this will help you to manage the mailbox folders.

About

I am founder and webmaster of www.linuxpcfix.com and working as a Sr. Linux Administrator (Expertise on Linux/Unix & Cloud Server) and have been in the industry since more than 14 years.

Leave a Reply

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

*
*

Time limit is exhausted. Please reload the CAPTCHA.

Categorized Tag Cloud