How to Show Mailbox Size on Zimbra via Command Line

Q. How to show user mailbox size on zimbra via command line ?

A. please issue the following command to show only the mailbox size on zimbra.

1. Display all users :

$ zmprov gqu `zmhostname`|awk {'print " "$3" "$2" "$1'}

Output :

 384289 0 user1@ehowstuff.local
 222445 0 admin@ehowstuff.local
 25568 0 user2@ehowstuff.local
 0 0 galsync.vtfk6uwt@ehowstuff.local
 0 0 ham.ypxiyleoyj@ehowstuff.local
 0 0 spam.wc5ohhoylp@ehowstuff.local
 0 0 virus-quarantine.kl6ejsnmd@ehowstuff.local

2. To find the mailbox size for user1@ehowstuff.local :

$ zmmailbox -z -m user1@ehowstuff.local gms

Output :

375.28 KB
Leave a Reply

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

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee