Category: linux

  • how to check size of zimbra mail accounts from terminal

    by

    in ,

    The most easy way to see the size of all zimbra mailboxes is to ssh into your zimbra server and type the following: $ 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 ;

  • How to merge two zimbra mailboxes

    by

    in ,

    If you want to merge 2 zimbra mailboxes, you can simply export the source mailbox and import it to the target mailbox. This can be easilly achieved with a couple of zimbra commands. SSH into your zimbra server. Change to zimbra server:su – zimbra Now type:/opt/zimbra/bin/zmmailbox -z -m [email protected] getRestURL “//?fmt=tgz” > /tmp/temp.tgz && /opt/zimbra/bin/zmmailbox…