Migrating Emails from Hetzner to cPanel

Idiosyncratic

Expert Member
Joined
Oct 10, 2015
Messages
2,336
Reaction score
44
Location
Up among the clouds
Sigh. This is why KonsoleH needs to come to a silent end....soon.
I have a client who wants to migrate almost 20 email addresses (with inboxes the size of China) away from Hetzner to a host with cPanel. Guess who now has to job of doing all that - in one weekend I might add! The client is willing to experience downtime throughout the weekend ONLY. Monday morning the emails need to be up.
The client and his minions are using IMAP and don't want to lose any emails - so I need to migrate everything to the new server, right? Any bright ideas other than adding all the emails to Thunderbird/Outlook and manually transferring them?
 
I add a DNS entry that points to my old mail server and set the TTL of the MX entries to 1 minute (if that's allowed), then I create all the mailboxes in CPanel, login to their webmail counter-part and setup a POP3 pull from the new host to the old email host, keeping mail on the old mail host. I keep that running and then change the MX records to the new email server.

After about 12 hours or so (maybe up to 24 hours), I check to see if there's any old mail incoming from the old server and that the new MX entries has kicked in.

I leave that for a week or so, then stop the POP3 check on the webmail to pop any mail from the old servers, since the new stuff kicked in (or should have) and then I terminate the old host.

0 downtime. 0 emails lost. 0 of MY bandwidth wasted transferring mails.
 
setup a POP3 pull from the new host to the old email host, keeping mail on the old mail host. I keep that running and then change the MX records to the new email server.
That's not really going to help since all the IMAP folders will be lost and the mail will not get onto the new server correctly.

Rather try http://imapsync.lamiral.info/
 
Is there any way I can go about this without requiring the email passwords? I have access to everything else...
If you have access to everything then why don't you just reset the passwords. Probably a good idea in any case to prevent users from corrupting things while you're busy with the transfer.
 
Good evening,
we have assisted users with migrations from Hetzner to cpanel in the past,
its a long arduous process but it can be done.
We use an email client to access the mailbox,
then we download all mail to the pc.
following that we extract all mail to their .eml formats in to each respective folder.
we then run a ruby on rails script to convert all those .eml mails into one large .mbox file.
You can import the .mbox file via horde.

We used this script for migrations, I seem to remember we needed to edit some of the code as we had compatibility issues but this is the tool that worked for us:

http://www.broobles.com/eml2mbox/
 
Last edited:
I am actually also preparing for a migration from KonsoleH but to Office 365 instead. In my case i am going to use IMAP migration and pull the mailboxes directly into exchange online. Good luck with your migration
 
Top
Sign up to the MyBroadband newsletter
X