GSTN - Restore mail from Archive Server: Difference between revisions
Created page with "category:GSTN 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..." |
mNo edit summary |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[category:GSTN]] | [[category:GSTN]] | ||
Restore mails from archive server. | <div style="text-align:center;"><u>Restore mails from archive server.</u></div> | ||
1st login to the archive server switch user to zimbra | 1st login to the archive server switch user to zimbra | ||
Let take the example for the pradeep.pandey | Let take the example for the pradeep.pandey | ||
Hit the below commands | Hit the below commands | ||
# zmprov gmi pradeep.pandey@gstn.org.in.archive | |||
'''<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 . 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 | 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 | '''<nowiki># cd /opt/zimbra/store/0/</nowiki>''' | ||
'''<nowiki># rsync -aP 33 root@172.18.101.20:/tmp/</nowiki>''' # 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. | Now login to 172.18.101.20 and check the directory was there or not by below command. | ||
# ls /tmp/ | |||
'''<nowiki># ls /tmp/</nowiki>''' | |||
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. | 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 | '''<nowiki># chown zimbra.zimbra /tmp/33 -R</nowiki>''' | ||
# zmmailbox -zadmin | |||
'''<nowiki># su – zimbra</nowiki>''' | |||
'''<nowiki># zmmailbox -zadmin</nowiki>''' | |||
mbox> selectMailbox pradeep.pandey@gstn.org.in | mbox> selectMailbox pradeep.pandey@gstn.org.in | ||
mbox pradeep.pandey@gstn.org.in> createFolder /Recovery | mbox pradeep.pandey@gstn.org.in> createFolder /Recovery | ||
mbox pradeep.pandey@gstn.org.in> addMessage /Recovery /tmp/33/msg/0/ | 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. | |||
'''<nowiki>#/tmp/33 is the path of the folder in which acrive mails were there.</nowiki>''' | |||
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. | 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. | ||
Latest revision as of 07:45, 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 . 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.