zimbra

Execute all below commands as zimbra user

To check status of all zimbra services

zmcontrol status

List all domains on zimbra

zmprov -l gad

List all zimbra user accounts

zmprov -l gaa | sort

Get ID of all zimbra accounts

for i in $( zmprov -l gaa ); do echo $i $( zmprov gmi $i | grep mailboxId ); done

See the size of all zimbra mailbox accounts

for i in $( zmprov -l gaa ); do echo Mailbox size $i = $( zmmailbox -z -m $i gms ); done

Reindex zimbra user account

zmprov rim user@domain start

See status of reindex zimbra user account

zmprov rim user@domain status

Fix zimbra permissions (execute as root)

/opt/zimbra/libexec/zmfixperms --verbose --extended

Check integrity mysql database

/opt/zimbra/libexec/zmdbintegrityreport -m -v

View quota usage in MB of all zimbra accounts

zmprov gqu serverNameHere | sort | awk '{printf "%s %d/%d mb\n", $1, $3/1024/1024, $2/1024/1024}'

See the last 15 mails from user

zmmailbox -z -m user@domain s -t message -l 15 "in:inbox"

View mail queue

sudo ~/libexec/zmqstat

Zimbra Logs

tail -f /var/log/zimbra.log
tail -f /opt/zimbra/log/mailbox.log
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s