How to Mail migration

From PheonixSolutions
Jump to navigation Jump to search

Introduction: 1

Prerequisites: 1

From cpanel: 2

To: Office suite 2

Mail Migration

Here is the step by step procedure to follow while during mail migration.

⇒ Copy right pheonixsolutions - 2019


Here, one of the best experienced example for mail migration is detailed below.

Introduction:

[edit]

1. The command line tool “Imapsync” is pretty much easy and gives you accurate result on end output.

Mail migration from one hosting server[cpanel server] to office 365 server.

For example, say server1 and server 2.

Server 1 [Appropriate hostname1] : hosting1.pheonix.com

Server 2 [Appropriate hostname2] : outlook.office365.com

Prerequisites:

[edit]
  1. Draft a planned action on excel sheet. Note down all the mail accounts that need to be migrated with their password Old and New.

  2. Create a mail id in a destination

Rough draft the mail accounts that needed to migrate. Note down the old password and later change it new password after migration.Add a column for migrated yes/no for our reference and add a Error section if any occurs [ In missing storage of mail during migration] . see the logs carefully.

From cpanel:

[edit]
Email Accounts New Password

Password

Old

Migrated

Yes/No

Errors if any
abirami@txyz.com hhhhh ttttttttt yes
akshara@xyz.com gggggg uuuuu yes

To: Office suite

[edit]
Office365 Emails New Password

Cpanel

Old password

abirami@txyz.com xxxxx zzzzzz
akshara@xyz.com yyyy bbbbbb

Action Plans:

Here is our plans:-

Phase1

Note down all the accounts to be migrate to office365 as mentioned above in EXCEL sheet.

Accounts list:-

abirami@xyz.com

akshara@xyz.com


Action Plan:-

1. Reset password on cPanel and Office365

2. Migrate mails using imapsync

3. Verify the total bytes transferred

Phase2

Update DNS records in appropriate Nameserver.

1. Update mail.xyz.com MX record to use Office365 DNS Records.
2.Add SPF, DKIM,TXT records.

Phase 3

Verify mail accounts functionality on both receiving and sending mails.

Procedure:

Phase 1:

  1. Login to server via SSH access.


    2. Open a new screen to perform ‘Imapsync’ operation in a server.

    3. For our easy migration at initial stage have same password for all the mail id to be save as secrect 1[source account mail id password] and secrect 2 [Destination account mail id password] for the source as well as in destination.

4.Here is the sample command for

imapsync --host1 hosting1.pheonix.com --user1abirami@txyz.com --passfile1 /opt/xyz/secret1 --host2 outlook.office365.com --user2 abirami@xyz.com --passfile2 /opt/xyz/secret2 --ssl2

Imapsync --host1 mail.gmail.com --user1 vinod@barqer.com --passfile1 Guites4barqer!1977 --ssl1 --host2 mail.barqer.com --user2 vinod@barqer.com --passfile2 3nji0d#XBBAn --ssl2

Imapsync --host1 mail.gmail.com --user1 nidhin@barqer.com --passfile1 /opt/ --host2 mail.barqer.com --user2 nidhin@barqer.com --passfile2 /

Imapsync - Is a tool for migrate
=============
Host1 - is HOSTNAME [ hosting1.pheonix.com ]

USER 1- is abirami@txyz.com to be migrated from source

Secret1 - is the password file for the mail id abirami@txyz.com stored in /opt/xyz/secret 1


==============

Host 2 - is the HOSTNAME outlook.office365.com

USER 2- is abirami@txyz.com to be migrated to destination

Secret2 - is the password file for the mail id abirami@txyz.com stored in /opt/xyz/secret 2

++++++++++++++++++

While migrating you will receive a message like this

g INBOX/60 {34322} copied to INBOX/97 1.64 msgs/s 1.031 MiB/s 37.667 MiB copied ETA: Mon Jul 29 06:35:12 2019 112 s 184/244 msgs left

msg INBOX/61 {33746} copied to INBOX/98 1.66 msgs/s 1.023 MiB/s 37.699 MiB copied ETA: Mon Jul 29 06:35:11 2019 111 s 183/244 msgs left

msg INBOX/62 {8940} copied to INBOX/99 1.67 msgs/s 1.018 MiB/s 37.708 MiB copied ETA: Mon Jul 29 06:35:09 2019 109 s 182/244 msgs left

msg INBOX/63 {122300} copied to INBOX/100 1.69 msgs/s 1.013 MiB/s 37.825 MiB copied ETA: Mon Jul 29 06:35:08 2019 107 s 181/244 msgs left

msg INBOX/64 {5183} copied to INBOX/101 1.71 msgs/s 1.009 MiB/s 37.829 MiB copied ETA: Mon Jul 29 06:35:07 2019 105 s 180…

Then the Result will be shown as

Messages deleted on host1 : 0

Messages deleted on host2 : 0

Total bytes transferred : 128953448 (122.980 MiB)

Total bytes duplicate host1 : 0 (0.000 KiB)

Total bytes duplicate host2 : 0 (0.000 KiB)

Total bytes skipped : 0 (0.000 KiB)

If the Total bytes transferred : 128953448 (122.980 MiB) is less than the actual size. Please check the logs and fix it.

Then,change all the passwords to new after migration.

Phase 2:

Update the DNS records with respect to office suite 365

PHASE 3:

After the DNS propagation, check the status of both sending and receiving of mail to targeted mail inbox..

Thank you.