Documentation

Email Migration

Migration of Emails is an easy task as long as you follow these steps.

What you need

  • FTP credentials of the target server
  • Any reliable FTP client example: Filezilla.
  • Mailbox passwords
  1. Now, Log into your target server using FTP client.
  2. Browse to /mail/domain.com or /vmail/vmail1/domain.com
  3. Download all the files and folders directly onto your computer We will be migrating them manually to the Tenderco Mailserver to avoid Data currouption and High CPU spikes.
  4. Log into Tenderco Mailserver via FTP client.
  5. Browse to /vmail/vmail1/domain.com
  6. If you don’t see the folder domain.com then you have to create a mailbox using mail.tenderco.com.au/iredadmin
  7. Once the mailbox has been created you will see the folder for the domain.com in /var/vmail/vmail1/ Inside the domain.com you will see a folder structure like a/d/a/adam-2020.04.02.00.33.19/Maildir
  8. Replace the files inside Maildir folder with the files from your old mailbox folder. you can’t mess this up because the files will look nearly identical.
  9. Once you upload the files in the maildir folder run chmod -R 777 /var/vmail/vmail1/domain.com/a you will have to run this command for each parent folder inside domain.com. It will set the execute, read and write permissions to public which is basically what we need for our next step.
  10. Log into SSH and Run cd imapsync then ./imapsync --host1 OLD.HOST.IP.ADDRESS --user1 mailbox@domain.com --password1 'password1' --authmech1 PLAIN --tls1 --host2 mail.tenderco.com.au --user2 mailbox@domain.com --password2 'password2' --authmech2 PLAIN --tls2 to sync mailbox conditions to the new one. It will also automatically copy the files you might have missed. However i wouldn’t recommend using it without migrating the files manually to the server because the command uses an enormous amount of CPU power which could cause a crash.

Side Note: Before trying these steps, Point mail.domain.com to the new mail server and try asking the client to refresh their mailbox in the Microsoft Mail app or whichever other mail-client they are using. It’s an untested method however it might be possible for the client to synch their old emails with the new mailbox without any of these mentioned steps.

Powered by BetterDocs

Leave a Reply