What happens if a zimbra user’s mailbox is full? All incoming emails will bounce.
Today I want to post how to easily delete or empty the Zimbra user’s mailbox from the webmail browser and from the command line.
I’ll describe it in several ways.
Zimbra Webmail
This is the easiest way, normal users and administrators can do this.
First, we have to login webmail from the browser.
Checklist message inbox where want to delete.
And then, jump to “Trash” folder and delete again.
If in “Trash” folder not delete too, the mailbox size will not changes.
Via Command Line “ZMMAILBOX”
This is done via Command Line, so you’ll need to connect over SSH. For Mac OS users can use terminal and for Window users use Putty.
SSH into zimbra mailserver.
$ssh [email protected]
enter [password]
switch to root and then zimbra user
user@server:~$ sudo su
enter root [password]
user@server:~# su – zimbra
Run the commands below as zimbra user
Run the commands below as zimbra user.
$ zmmailbox -z -m [email protected] emptyFolder /Inbox
Or
$ zmmailbox -a admin -p password -m [email protected] emptyFolder /Inbox
Or
zmmailbox
mbox> adminAuthenticate -u https://server.domain.com:7071 [email protected] password
mbox> selectMailbox [email protected]
mbox [email protected]m> emptyFolder /Inbox