Results 1 to 8 of 8

Thread: redirecting all incomming mail to a new server?

  1. #1
    sysinternals is offline Member
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    6

    Default redirecting all incomming mail to a new server?

    we're moving from a hosted zimbra to our own servers.

    We have everything set up, with a new MX pointing to our new mail gateway, a new zimbra server and the restore procedure well tested.

    The problem is: When we do the switch, the timing will be critical so no new mail gets into the old server. Typically, I'll add some mailertable-like rule so if mail gets into the old server, it'll be redirected to the new one (and I can use the old server as a backup MX just in case). The problem is: we don't have root access to the box, and the ISP is refusing to give it to us, or provide some sysadmin from their staff to do that tasks while we're migrating.

    That leaves us thinking about some alternate ways to do that without their help.

    Is there a way to do that redirection from within zimbra? (we only have the web access, not CLI access). Can I configure the domain in such a way a sender will try the new MX instead of the older one?

    Thanks in advance

  2. #2
    uxbod's Avatar
    uxbod is offline Moderator
    Join Date
    Nov 2006
    Location
    UK
    Posts
    8,017
    Rep Power
    24

    Default

    Why not reduce the TTL on your domain to something like 1 sec while you switch ? That way it will queue until your new server is up. Do you have a secondany MX in place to handle your queued email ?

  3. #3
    dfriestedt is offline Senior Member
    Join Date
    Jul 2007
    Posts
    72
    Rep Power
    8

    Default

    I just went through this. Here is what I did:

    setup backup MX, zmcontrol stop the primary server, rsync /opt/zimbra over to new server, install zimbra NE on new server, shutdown the old server, done. It was pretty painless.

    In terms of the migration, I followed the migration procedure discussed in a recent zimbra blog post - Moving ZCS to Another Server » Zimbra :: Blog
    Last edited by dfriestedt; 03-17-2009 at 04:29 PM.

  4. #4
    sysinternals is offline Member
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    6

    Default

    Quote Originally Posted by uxbod View Post
    Why not reduce the TTL on your domain to something like 1 sec while you switch ? That way it will queue until your new server is up. Do you have a secondany MX in place to handle your queued email ?
    We have a secondary MX in place. The problem isn't getting the mail into the new one, but making sure no mail is delivered into the old one.

    If we had root access to the old box, I could just shut down zimbra, and when the rest of the world failed to connect to it, it'd try the secondary (new server).

    The problem is we only have zimbra console access on the old server, we canot shutdown zimbra, nor can we tweak the MTA config. I need to know if there is a way to prevent mail from being delivered to the old box.

    BTW, the people who administer the DNS is the same "helpful" people who wouldn't provide us with access to the old box, or a sysadmin from their staff to help us

  5. #5
    sysinternals is offline Member
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    6

    Default

    Quote Originally Posted by dfriestedt View Post
    I just went through this. Here is what I did:

    setup backup MX, zmcontrol stop the primary server, rsync /opt/zimbra over to new server, install zimbra NE on new server, shutdown the old server, done. It was pretty painless.

    In terms of the migration, I followed the migration procedure discussed in a recent zimbra blog post - Moving ZCS to Another Server » Zimbra :: Blog
    That'd be great, but again: we don't have root or CLI access of any kind to the old server, we need a way to do it from the web interface.

    That lack of control over the old server is one of the main reasons for the move to a server of our own

  6. #6
    dfriestedt is offline Senior Member
    Join Date
    Jul 2007
    Posts
    72
    Rep Power
    8

    Default

    why not cancel service w/ the old zimbra host and have them shut down the server, let email spool up on the secondary mx, start up new server, when DNS is updated for new MX email will start getting delivered to new primary.

  7. #7
    sysinternals is offline Member
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    6

    Default

    Quote Originally Posted by dfriestedt View Post
    why not cancel service w/ the old zimbra host and have them shut down the server, let email spool up on the secondary mx, start up new server, when DNS is updated for new MX email will start getting delivered to new primary.
    that's almost what we want to do, but we need to take a backup and move it to the new zimbra host just before the shutdown so every single mail gets moved to the new server. we cannot let them choose when they want to shut it down, we have to shutdown the old one, restore the backup and start the new one all in a row.

    It seems we cannot do it without some root access to the old box, either from their staff or from ours :/

  8. #8
    dfriestedt is offline Senior Member
    Join Date
    Jul 2007
    Posts
    72
    Rep Power
    8

    Default

    OK, remove the DNS entry for MX1. email will try MX1, then roll to MX2 (backup), when that is working, log into zimbra w/ https://IPofMX1, take backup, move backup, restore on new server, change MX1 entry to new server, MX2 will start sending shortly.

    will that get you there?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] mailbox and apache not running
    By rtwick in forum Administrators
    Replies: 4
    Last Post: 11-15-2008, 08:21 AM
  2. Error after installation
    By robsontuxlinux in forum Installation
    Replies: 13
    Last Post: 09-11-2008, 09:48 PM
  3. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 06:47 AM
  4. [SOLVED] Mailserver down when send file attach of 50Mb
    By ZMilton in forum Administrators
    Replies: 20
    Last Post: 04-10-2008, 11:44 AM
  5. Issues...
    By timothyalangorman in forum Administrators
    Replies: 3
    Last Post: 11-19-2007, 10:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •