Migrating to a New Server

Note: This started as a port of the document which is currently found at http://www.tnpi.net/internet/mail/toaster/faq/server-migration.shtml. Idurey 17:36, 31 August 2010 (UTC)

This document is intended to cover the steps necessary for migrating your Toaster to new hardware.

Best Case Scenario
The easiest way is to simply remove the hot swap SCSI drive from the old server and stick it in the new one. If you are using RAID, move the RAID card too, along with all the drives. Grin, and pat yourself on the back for thinking so far ahead and buying good equipment. :)

Realistic Scenario
Assuming you can't use the above instructions for whatever reasons, the following info might prove helpful. Your users account information is stored in several places, all of which need to be moved to the new server. Here are the critical directories:

* /var/qmail/control * /var/qmail/users * ~vpopmail * /var/db/mysql

A thorough checklist would look something like this:

* 1. Upgrade exiting Mail::Toaster to latest version * 2. Wait a day or two (make sure nothing broke) * 3. Build the new Mail::Toaster * 4. Stop all the services on both systems. * 5. Copy the directories above from old to new server * 6. Start up the new system

If there is mail on the old systems queue, give it a new IP and leave it online until it's finished emptying it's queue (up to a week).

This assumes the new server will inherit the IP and hostname from the old one. If that's not the case, then you have DNS entries to update, config files to alter, etc.