How to Show Mailbox Size on Zimbra via Command Line

Share this Article :

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