Jump to content

Zimbra Restore Mails From Store Folder: Difference between revisions

From TetraWiki
Created page with "The mails can then be recovered by using zmmailbox as the Zimbra user. Both the commands below give admin rights on zmmailbox prompt, so use any one. zmmailbox -zadmin or z..."
 
No edit summary
Line 6: Line 6:
  zmmailbox adminAuthenticate -u https://server.domain.com:7071 admin@domain.com password
  zmmailbox adminAuthenticate -u https://server.domain.com:7071 admin@domain.com password


After that we create the 'Recovery' folder, and add messages to that folder from our old store folder.
  mbox> selectMailbox agmadmin@witalsee.com
  mbox> selectMailbox agmadmin@witalsee.com
  mbox> createfolder /Recovery
  mbox agmadmin@witalsee.com> createfolder /Recovery
  mbox> zmmailbox addMessage /Recovery store/0/1/msg/1
  mbox agmadmin@witalsee.com> addMessage /Recovery /opt/zimbra/store.old/0/809/msg/0


(or whatever the path to the leaf folder is) -- all the mail in the subfolder will be added. Repeat for the remainder of the leaf folders in that mailbox's folder.
'/opt/zimbra/store.old/0/809/msg/0' is the path to the folder containing the mails. Some IDs may have a large amount of mails, resulting in 'msg/1', 'msg/2', etc. These will have to be run one-by-one.
think it's -d if your having date trouble with the dates and the header
you can go zmmailbox help commands

Revision as of 11:19, 25 July 2012

The mails can then be recovered by using zmmailbox as the Zimbra user.

Both the commands below give admin rights on zmmailbox prompt, so use any one.

zmmailbox -zadmin

or

zmmailbox adminAuthenticate -u https://server.domain.com:7071 admin@domain.com password

After that we create the 'Recovery' folder, and add messages to that folder from our old store folder.

mbox> selectMailbox agmadmin@witalsee.com
mbox agmadmin@witalsee.com> createfolder /Recovery
mbox agmadmin@witalsee.com> addMessage /Recovery /opt/zimbra/store.old/0/809/msg/0

'/opt/zimbra/store.old/0/809/msg/0' is the path to the folder containing the mails. Some IDs may have a large amount of mails, resulting in 'msg/1', 'msg/2', etc. These will have to be run one-by-one.