GSTN - Restore mail from Archive Server
1st login to the archive server switch user to zimbra
Let take the example for the pradeep.pandey
Hit the below commands
# zmprov gmi pradeep.pandey@gstn.org.in.archive
Above command will give the mailbox id suppose it give 33 then go to directory
# cd /opt/zimbra/store/0/
# rsync -aP 33 root@172.18.101.20:/tmp/ # it will prompt for the password of machine 20 provide it then the directory will transfer to the server
Now login to 172.18.101.20 and check the directory was there or not by below command.
# ls /tmp/
Above will show a directory maned 33, now change the permission of the directory so that zimbra can work on it as with below command.
# chown zimbra.zimbra /tmp/33 -R
# su – zimbra
# zmmailbox -zadmin
mbox> selectMailbox pradeep.pandey@gstn.org.in
mbox pradeep.pandey@gstn.org.in> createFolder /Recovery
mbox pradeep.pandey@gstn.org.in> addMessage /Recovery /tmp/33/msg/0/
#/tmp/33 is the path of the folder in which acrive mails were there.
Note: Please do not do the above without under our observation till you haven't have a good experience with cli and understanding of the process.