How to check mailbox size of all accounts in Zimbra mail server.

Zimbra Mail

Today, I would like to know a mailbox size of all users in my Zimbra mail server and I can check these sizes by create a shell script which has 2 commands for query.

  1. zmprov gaa => I use this command for query all accounts in my Zimbra server.
  2. zmmailbox -z -m your-account gms => Get mailbox size of your-account account.

Anyway, You can download my script too.


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

Download

Related Posts

This entry was posted in Shell scripts, zimbra and tagged . Bookmark the permalink.

One Response to How to check mailbox size of all accounts in Zimbra mail server.

  1. Pingback: How to check mailbox size of all accounts in Zimbra mail server | My Online Log

Leave a Reply

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

*

*


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">