Skip to main content

Email Migration and MX changes

Comments

3 comments

  • Jcats
    Hello, No the emails will not migrate them self. What you would do is, migrate the entire cPanel account which will include all the current emails, then change over the DNS, the MX record will be pointing to the new server so all new emails will be sent there, however with any DNS change there will be a propagation period ~48 hours that you can expect emails to still be sent to the old server. You can setup a cronjob on the old server to rsync the mail folder to the new server, so any new emails sent there will be sent to the new server.
    # rsync -ahvz ~/mail/domain.com/ cpuser@newserver:~/mail/domain.com/
    You will want to setup an SSH key so it happens automatically, otherwise you can do it manually however often you want. Just a note, if you delete any emails on the new server that existed on the old server, those emails will be sent again to the new server 'undeleting 'them.
    0
  • trec-r
    ...change over the DNS, the MX record will be pointing to the new server so all new emails will be sent there, however with any DNS change there will be a propagation period ~48 hours that you can expect emails to still be sent to the old server.

    In the past I have changed the local MX records to point to the new server. If I recall correctly the server did forward all the emails, much to my surprise. I had thought it would only send new emails to the new server. However that was a number of years ago and I am not sure if I remember correctly.
    # rsync -ahvz ~/mail/domain.com/ cpuser@newserver:~/mail/domain.com/
    You will want to setup an SSH key so it happens automatically, otherwise you can do it manually however often you want. Just a note, if you delete any emails on the new server that existed on the old server, those emails will be sent again to the new server 'undeleting 'them.
    How can I setup an SSH key without SSH access on the original server?
    0
  • cPanelMichael
    How can I setup an SSH key without SSH access on the original server?

    Hello :) You won't be able to utilize SSH if you don't have SSH access enabled for your account on the source server. However, you could manually download those mail files via FTP and then upload them to the new server. Thank you.
    0

Please sign in to leave a comment.