Get all user's mailbox size from CLI

Revision as of 15:18, 28 April 2015 by Jorge de la Cruz (talk | contribs) (Created page with "{{WIP}}{{Article Infobox|{{admin}}|{{ZCS 8.6}}|{{ZCS 8.5}}|{{ZCS 8.0}}}} =Get all user's mailbox size from CLI= ==Purpose== How to check and findout all user's mailbox size. ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Admin Article

Article Information

This article applies to the following ZCS versions.

ZCS 8.6 Article ZCS 8.6 ZCS 8.5 Article ZCS 8.5 ZCS 8.0 Article ZCS 8.0


Get all user's mailbox size from CLI

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

  • No related content.


Verified Against: Zimbra Collaboration 8.6, 8.5, 8.0 Date Created: 04/28/2015
Article ID: https://wiki.zimbra.com/index.php?title=Get_all_user%27s_mailbox_size_from_CLI Date Modified: 2015-04-28



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 Jorge de la Cruz
Jump to: navigation, search