habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Zimbra: Easy Purging/Deleting all mail from an mailbox in Zimbra

46 sec read

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.

Zimbra delete message

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
See also  Easy Install Postfix Ubuntu 20.04
habibzain Just husband, father and enthusiastic men about System Administration. Love to write short article about it. Perhaps can help and be useful for others.

Zimbra Relay Amazon SES

Zimbra is a widely used collaboration platform that provides robust email services. When it comes to improving email deliverability and ensuring the security of...
habibzain
1 min read

Install Zimbra 10 Ubuntu 20.04 from Scratch

Zimbra 10 may have had specific installation requirements, and there might be updates or changes beyond that point. Here is simple guide how to...
habibzain
4 min read

Zimbra Cannot start TLS: handshake failure

The Zimbra log show error message “Cannot start TLS handshake” typically indicates an issue with establishing a secure TLS (Transport Layer Security) connection. This...
habibzain
1 min read

Leave a Reply

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

Never miss good article from us, get weekly updates in your inbox