The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
- Zimbra Tech Center
- Certified
- Get all user's mailbox size from CLI
Get all user's mailbox size from CLI
KB 21904
|
Last updated on 2017-06-30
|
Last updated by Philipgabrielsen
|
|
Verified in: ZCS 8.7
ZCS 8.6
ZCS 8.5
ZCS 8.0
|
|
- This is certified documentation and is protected for editing by Zimbra Employees & Moderators only.
|
KB 21904
|
Last updated on 2017-06-30
|
|
|
- This is certified documentation and is protected for editing by Zimbra Employees & Moderators only.
|
- This article is a Work in Progress, and may be unfinished or missing sections.
Purpose
How to check and findout all user's mailbox size.
Resolution
Run following command as zimbra user to check all user's mailbox size:-
su - zimbra
all_accounts=`zmprov -l gaa`; for account in $all_accounts; do mbox_size=`zmmailbox -z -m $account gms`; echo "Mailbox size of $account = $mbox_size"; done ;
After running above commands you will get output in the below format:-
Mailbox size of user@example.com = 5.72 KB
Mailbox size of user2@example.com = 1.38 KB
Mailbox size of test@example.com = 0 B
Mailbox size of test2@mydomain.com = 19.27 MB
Mailbox size of supporttest@supportlab.in = 162.15 KB
Additional Content
Try Zimbra
Try Zimbra Collaboration with a 60-day free trial.
Get it now »
Want to get involved?
You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »
Looking for a Video?
Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »
Wiki/KB reviewed by
|
SME1
|
SME2
|
Copyeditor
|
Last edit by Philipgabrielsen
|