Results 1 to 9 of 9

Thread: Moving of working emails from cpanel to cpanel

  1. #1
    Registered Member
    Join Date
    Mar 2011
    Posts
    6

    Lightbulb Moving of working emails from cpanel to cpanel

    Hi Guys,
    I hope I've got an easy one for you...

    I'm migrating all my domains from one host to another - both use cpanel.

    I don't have access to SSH (I'm on a low cost reseller plan) so I can't use that...

    What's the easiest way to move the mail boxes across?

    I've read somewhere that you just need to tarball the /home/user/etc and /home/user/mail folders on the old server - transfer them - and then expand them on the new server...

    Is it as easy as that? am I missing something critical?
    If that's done, and I flick the DNS to point at the new server, will mail seamlessly work?

    Do I need to create the email addresses on the new server first? (could be painful, as I don't know the passwords for some of the email addresses on the old server)

    Any help gratefully appreciated!

    Cheers,
    Richard

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: Moving of working emails from cpanel to cpanel

    Is there any reason you wouldn't want to simply use a full backup of the account itself instead and generate it using cPanel > Backups > Download or Generate a Full Backup area?

    After you have the backup file, you could just ask the provider of the new server to restore it, which would restore everything for that account. Since you are moving the account to their machine, they should be happy to restore it for you. Even if the account already exists on the new machine, you could ask them to do a forced restore:

    Code:
    /scripts/restorepkg --force username
    Where username is the cPanel username.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Registered Member
    Join Date
    Mar 2011
    Posts
    6

    Default Re: Moving of working emails from cpanel to cpanel

    Quote Originally Posted by cPanelTristan View Post
    Is there any reason you wouldn't want to simply use a full backup of the account itself instead and generate it using cPanel > Backups > Download or Generate a Full Backup area?

    After you have the backup file, you could just ask the provider of the new server to restore it,
    Hi Tristan,
    Yes, they charge to do that - about $40 per domain...

    I'm poor, lol, can't afford that times 90 domains...
    Cheers,
    Richard
    Last edited by TeeGee; 03-15-2011 at 08:57 AM.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: Moving of working emails from cpanel to cpanel

    True enough, I can understand that. Then you should be able to simply copy /home/username/mail and /home/username/etc folders to the new machine. In fact, you should be able to just copy /home/username to the new machine for all of the content.

    I still believe this is going about it the wrong way, though, because the full backup I mentioned obtaining, which should be an option in cPanel > Backups area, will have the filters, forwarders and so on in it. It will also have all the content for the home directory and the MySQL databases. If you simply make that full backup, you can extract it locally on your machine, then upload anything you need to upload. You could also restore the databases that way from the sql files in the backup.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Registered Member
    Join Date
    Mar 2011
    Posts
    6

    Default Re: Moving of working emails from cpanel to cpanel

    Quote Originally Posted by cPanelTristan View Post
    True enough, I can understand that. Then you should be able to simply copy /home/username/mail and /home/username/etc folders to the new machine. In fact, you should be able to just copy /home/username to the new machine for all of the content.

    I still believe this is going about it the wrong way, though, because the full backup I mentioned obtaining, which should be an option in cPanel > Backups area, will have the filters, forwarders and so on in it. It will also have all the content for the home directory and the MySQL databases. If you simply make that full backup, you can extract it locally on your machine, then upload anything you need to upload. You could also restore the databases that way from the sql files in the backup.
    Thanks for that, I'll give it a go! (I hadn't worried too much about the website side of things, as they're mainly HTML, with no SQL to worry about)

    I might test the process first with a not-so-used domain name

    Cheers,
    Richard

  6. #6
    Registered Member
    Join Date
    Mar 2011
    Posts
    6

    Default Re: Moving of working emails from cpanel to cpanel

    OK, so it sorta worked... but not really...

    After tarballing the entire old home directory, moving it across, and untaring it... everything looks ok...
    The mailboxes are present, along with their inbox contents & folders... password are as usual, webmail works...

    But - mail doesn't get delivered to the account...

    Sending to the mailbox from outside, gives me:
    "Diagnostic-Code: smtp; 5.1.0 - Unknown address error 550-'No Such User Here' (delivery attempts: 0)"

    and if I try to send from the newly migrated email account (via webmail):

    Requested action not taken: mailbox unavailable
    550 Verification failed for <richard@werwerwer.com.au>
    No Such User Here
    Sender verify failed

    So... maybe I do need to set the mailboxes up first?

    Cheers,
    Richard

  7. #7
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    7,611
    cPanel Access Level

    Root Administrator

    Default Re: Moving of working emails from cpanel to cpanel

    Richard, you may well want to setup the email accounts first and then recopy everything that way. The passwords are definitely stored in /home/username/etc location, so even if you use a different password first, once you copy those contents, you will get the old password reset for the email account.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Technical Analyst III, Forums Specialist, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  8. #8
    Registered Member
    Join Date
    Mar 2011
    Posts
    6

    Default Re: Moving of working emails from cpanel to cpanel

    Quote Originally Posted by cPanelTristan View Post
    Richard, you may well want to setup the email accounts first and then recopy everything that way. The passwords are definitely stored in /home/username/etc location, so even if you use a different password first, once you copy those contents, you will get the old password reset for the email account.
    Thanks Tristan,
    I'll give that a go in the morning (1.23am here, and time for sleep!)

    Cheers,
    Richard

  9. #9
    Registered Member
    Join Date
    Mar 2011
    Posts
    6

    Default Re: Moving of working emails from cpanel to cpanel

    Quote Originally Posted by cPanelTristan View Post
    Richard, you may well want to setup the email accounts first and then recopy everything that way. The passwords are definitely stored in /home/username/etc location, so even if you use a different password first, once you copy those contents, you will get the old password reset for the email account.
    Hi Tristan,
    Yes, that works... you do need to create the email addresses first (and the passwords don't matter)...
    Once done, just dump the tarball in there, and voila... mail is moved, with OLD passwords intact ... easy peasy...

    Thanks for the help!
    Cheers,
    Richard

Similar Threads

  1. Replies: 2
    Last Post: 11-01-2011, 02:25 PM
  2. moving from cpanel to cpanel server with zero downtime
    By k-planethost in forum General Discussion
    Replies: 2
    Last Post: 09-22-2011, 10:26 PM
  3. Moving emails to Plesk
    By vegatow in forum Data Protection
    Replies: 1
    Last Post: 05-03-2011, 12:00 AM
  4. Moving SSL from non cpanel server to cpanel/WHM
    By fishfreek in forum General Discussion
    Replies: 0
    Last Post: 03-22-2004, 07:11 PM
bargain