Powered by Blogger.

How to Check Mailbox size of all accounts in Zimbra

How to Check Mailbox size of all accounts in zimbra mail server

Zimbra command to check Mailbox Size :

Use This command to get User mailbox size information.
#su – zimbra

# zmprov gmi testuser@example.com -> To check User mailbox Size information in detail. This command show every Directory size and count of message like inbox, trash, Junk, draft and

1. $zmmailbox -z -m testuser@example.com gms # show only mailbox size
2. $zmmailbox -z -m testuser@example.com gaf #show specific directory size in detail
Here : Zmmailbox is zimbra command, -z -m is switch, testuser is your user account name, example.com is your Domain Name
gms – get mailbox size
gaf – get all file.

Check Mailbox size of all accounts in zimbra mail server by Script

# su zimbra

# vim mailboxsize.sh

#!/bin/bash
all_account=`zmprov -l gaa`;
for account in ${all_account}
do
mb_size=`zmmailbox -z -m ${account} gms`;
echo .Mailbox size of ${account} = ${mb_size}.;
done

:wq -> save it

# chmod 755 mailboxsize.sh

# ./mailboxsize.sh
    Blogger Comment
    Facebook Comment