Jump to content

Import mails from piler archival solution to zimbra for jackson

From TetraWiki
Revision as of 18:28, 8 April 2020 by Biswajit (talk | contribs) (Method)


Objective

  • To import Sent mails of a perticular user for selected rage of date

Method

  • Piler login as piler user
  • Pilerexnport with options
  • Tar the .eml files
  • transfer to zimbra server
  • untar
  • zmmailbox cli to import the mails

Steps

Login on piler server as root

su - piler 
mkdir backup
cd backup
pilerexport --start-date 2020.01.01 --stop-date 2020.04.07 -f user@jakson.com

All the files .eml has been generated in current directory /var/piler/backup/

Make tar backup of the files and transfer to zimbra server

tar cvfz user-sent.tar.gz *.eml 

Login in zimbra server

Extract in /tmp in new directory , say for example username and change owner to zimbra for all files

Then as zimbra user

su - zimbra 
zmmailbox -zadmin
mbox> selectMailbox username@jakson.com
mbox pradeep.pandey@gstn.org.in> createFolder /Recovery
mbox pradeep.pandey@gstn.org.in> addMessage /Recovery /tmp/username/

All the mails exported from piler is imported in zimbra , in users mailbox in Recovery folder