GSTN - Restore mail from Archive Server: Difference between revisions
No edit summary |
mNo edit summary |
||
| Line 11: | Line 11: | ||
'''<nowiki># zmprov gmi pradeep.pandey@gstn.org.in.archive</nowiki>''' | '''<nowiki># zmprov gmi pradeep.pandey@gstn.org.in.archive</nowiki>''' | ||
if the account is not find then do | |||
zmprov -l gaa | grep pradeep.panday | |||
use account name instead of pradeep.panday | |||
Above command will give the mailbox id suppose it give 33 then go to directory | Above command will give the mailbox id suppose it give 33 then go to directory | ||
Revision as of 06:41, 3 May 2021
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
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.