Migrate mail from Outlook PST file to remote IMAP server

Backup PST file

sudo yum install libpst
wget "https://raw.githubusercontent.com/rgladwell/imap-upload/master/imap_upload.py"
mkdir mailbox
readpst -o mailbox -r yourLocalFile.pst

# Upload Inbox
python imap_upload.py --host mail.domain.com --port 993 --ssl --user='info@domain.com' --password='YourPassword!' \
	-r 'mailbox/info@domain.com/Postvak IN';

# Upload Sent items
python imap_upload.py --host mail.domain.com --port 993 --ssl --user='info@domain.com' --password='YourPassword!' \
	-r 'mailbox/info@domain.com/Verzonden items';

Share on facebook
Share on google
Share on twitter
Share on linkedin
Share on whatsapp