You are here

Zimbra

Technical Notes

These notes are my personal online notebook of useful commands and "how-to's". You are welcome to make use of them if you find them helpful. They obviously don't come with any warranty! Click on one of the category tags above for the notes in any category.

fix Zimbra database errors

For logger errors:

su - zimbra
#find the regular and logger passwords
zmlocalconfig -s | grep mysql_password
#I didn't need to go any furthur because the logger processes stopped eventually and left it clean

this page had some info under "closed the table properly":
http://wiki.zimbra.com/wiki/Ajcody-Mysql-Topics

Topic: 

Misc Zimbra notes

To archive all outgoing email:

  1. Create an account with large quota. i.e: mailuser@domain.com
  2. in /opt/zimbra/postfix/conf/main.cf add the line:
    always_bcc = mailuser@domain.com
  3. Restart zimbra
  4. Login to mailuser acount and from options tab set a filter to discard all messages other than the specific users you want to audit.

To upgrade to a new version

Topic: 

Zimbra backup snippit

su - zimbra
zmcontrol stop
exit
become root
ps aux | grep zimbra (kill -9 pid# of any remaining processes)
mkdir /zcsbackuprsync
rsync -avHK /opt/zimbra/ /zcsbackuprsync/zimbra
mkdir /zcsbackuptars
tar -zcvf /zcsbackuptars/backup.zimbra.version.date.time.tar.gz -C /zcsbackup/zimbra .

Topic: 

Zimbra backup using LVM and rsync

Zimbra VM and LVM re-organization

My default Zimbra VM install uses LVM within its own virtual machine. This makes it harder to get at the data from outside the VM, and so complicates backup. The following steps need to be taken

Topic: 
Subscribe to RSS - Zimbra