The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

GMail to cPanel email migrations?

Discussion in 'E-mail Discussions' started by prixone, Jul 21, 2016.

  1. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I currently have a domain using GMail and I would like to completely migrate it to cPanel.

    By that I mean, I wish all the emails currently in GMail to be migrated into the cPanel respective mail account.

    Alias, forwards and alike are not a big deal, as I can generate it later. What matters are the emails there stored.

    My question is, if I set cPanel as Backup Mail, will the emails including old ones get copied or would I have to completely set cPanel as the mail service and use something like imapsync to get the emails?

    Will imapsync properly save the emails in a format compatible with cPanel?

    From my search I have this 2 threads in sight:
    Those however don't list any walk-through or anything other than the tools to achieve this.

    Since I never did this sort of migration from GMail to cPanel I would love to hear from those who have done it before or from a cPanel staff?

    Since those threads are rather old as well perhaps there are different methods, tools or even built-in within cPanel to achieve this?

    Code:
    /etc/redhat-release:CentOS release 6.8 (Final)
    /usr/local/cpanel/version:11.56.0.28
    /var/cpanel/envtype:kvm
    CPANEL=release
    Server version: Apache/2.4.23 (cPanel-EA4)
    Server built:  Jul 20 2016 18:30:57
    PHP 5.6.23 (cli) (built: Jul 20 2016 18:46:34)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
    mysql  Ver 15.1 Distrib 10.1.16-MariaDB, for Linux (x86_64) using readline 5.1
     
    #1 prixone, Jul 21, 2016
    Last edited: Jul 21, 2016
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    There are no cPanel tools for this that I'm aware of.

    One of the comments in the webhostingtalk thread (linked in one of those threads) was to setup both the Gmail and the cPanel IMAP email accounts in your mail client, Outlook for example, and then simply drag drop the email from one mailbox to the other from within your email client.

    Depending on how much mail you need to move, this might be the easiest solution.
     
    SageBrian likes this.
  3. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Drag and drop the folders, one at a time. This is going to be the only way to pull this off easily
     
  4. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Thanks for the answer @Infopro and @twhiting9275, since it had way too many folders and messages over 200k mails among several folders(on a single email account, god knows about the other emails), I opted to use imapsync from the console.

    It went rather fast and ended up in a few hours, I am yet to verify the mails and if it all went well, but aside from being able to run it automated, there are several configuration options that can be used, including folder renaming, conversion and exclusion.

    And of course, I was using a test account, once I confirm everything went as expected I will re-run for the real thing.

    Only down side of it was that i had to turn on insecure logins on the google options but its not the end of the world.
     
    twhiting9275 and Infopro like this.
  5. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thanks for the update on this.
     
  6. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    So, I went to check the mails and compare against the real account and I have to say imapsync did a really nice job, so nice I would like to suggest it to be implement to cPanel migration options for accounts that are not under cPanel.

    Not only it copied all the emails, but it reproduced all the folders and properly place the mails under each folder just like it was on GMail, I did remove some folders, like starred and/or renamed some folders, as to avoid having All Mails and Inbox and that is all done with the switches from imapsync which is done automatically after it done gathering the mails.

    It does take awhile to get all the mails if you have tons of it but it works wonderfully and no slave work.

    How fast does Outlook copy folders on a per mail basis?
     
    #6 prixone, Jul 25, 2016
    Last edited: Jul 25, 2016
  7. twhiting9275

    twhiting9275 Well-Known Member

    Joined:
    Sep 26, 2002
    Messages:
    538
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    glad to see that this worked out for you. I'll have to take a look at imapsync
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    I encourage you to open a feature request if it's something you want implemented into the "Transfer Tool" option in Web Host Manager:

    Submit A Feature Request

    Thank you.
     
  9. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,478
    Likes Received:
    203
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    If you mean using my original suggestion of drag / dropping email from one account to the other, I'm sure it's much slower than doing this via command line. You're basically downloading the email into one account, and uploading it again to the other.

    If you fire up a Feature Request about that tool, I'll gladly vote for it. :)
     
  10. prixone

    prixone Well-Known Member

    Joined:
    Mar 4, 2004
    Messages:
    107
    Likes Received:
    3
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Yes, that is basically what I was wondering. Like it will probably have a rate per message and an avg, I will probably that it later with Outlook so I can compare the speed, despite that being able to do it unattended is always the best :).

    As for opening a request, I found this one:
    Migrate IMAP mailbox to cPanel

    So I am not really sure I should open a new one or what to add to it.

    It seems to have some votes despite that :) so I will leave it to you.
     
    #10 prixone, Jul 26, 2016
    Last edited: Jul 26, 2016
    Infopro likes this.
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Yes, please feel free to vote and add feedback to that request instead of opening a new one. Thank you for posting the link here.
     
Loading...

Share This Page