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.

Migrating to new server with no mail downtime

Discussion in 'E-mail Discussions' started by n000b, Jul 30, 2008.

  1. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I'm about to migrate to a new server (both servers using Exim) and I want to do it with no e-mail downtime.

    I thought I could possibly do this:

    - stop old mail server
    - move all e-mail accounts and current e-mails to new mail server
    - put forwarding rule in place on old server
    - start old mail server
    - switch DNS to new mail server

    That way, while users DNS servers haven't updated and mail is still being delivered to the old server, it will automatically forward all e-mail to the new server.

    A few questions:

    - first, will this method work?
    - second, how do I forward all e-mail that is received by exim on the old server to the new server? How do I forward just one e-mail account for testing purposes before I actually do it?
    - is there any easy way to migrate all e-mail accounts, keeping all passwords, current e-mails on the server etc intact?

    Thanks :)
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's better to stop the old mail server and leave it stopped. Then switch the IP's. Email will then be delivered to the new server and sending MTA's still using the old IP's should queue the email and attempt redelivery by which time the DNS should have propagated and the email will be delivered to the new IP's.

    Alternatively, you can use a tool called rinetd which redirects IP+port combinations on the old server to the new servers IP's. So you could redirect port 25 traffic to the new IP addresses:
    http://www.boutell.com/rinetd/

    I've used both methods successfully.
     
  3. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Thanks, I'll look in to that :)

    Could someone please tell me how to move all existing e-mail accounts from one server to another?
     
  4. UBERHOST

    UBERHOST Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    102
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    California, US
  5. verdon

    verdon Well-Known Member

    Joined:
    Nov 1, 2003
    Messages:
    836
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Northern Ontario, Canada
    cPanel Access Level:
    Root Administrator
  6. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Thanks guys :)
     
Loading...

Share This Page