Top Nav

Archive | Zimbra

Zimbra – Set MTA Trusted Networks From Command Line

To view trusted networks as the zimbra user:

To set trusted networks as the zimbra user do:


Export Zimbra mailbox

To export the mailbox for as a zip file use this command:

/opt/zimbra/bin/zmmailbox -z -m getRestURL \
‘//?fmt=zip&query=is:anywhere’ >

Here is the same as a tgz file:

/opt/zimbra/bin/zmmailbox -z -m getRestURL \
“//?fmt=tgz” > /tmp/account.tgz

And here’s a restore of the tgz file:

/opt/zimbra/bin/zmmailbox -z -m postRestURL \
“//?fmt=tgz&resolve=reset” /tmp/account.tgz


Zimbra Mailbox Size

Here’s a simple script that will provide a report on mailbox size for every mailbox on a Zimbra server. The report is sorted by box size in descending order: