Jump to content

GSTN - Restore mail from Archive Server

From TetraWiki
Revision as of 07:45, 3 May 2021 by Biswajit (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Restore mails 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

if the account is not find then do

zmprov -l gaa | grep pradeep.panday 

use account name instead of pradeep.panday . It is possible that account can be in pradeep.panday-{date}@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.