Moving Exchange Server 2003 to a new box without changing the name is already described in a Microsoft White Paper published on TechNet. Because in Exchange Server 2007 many things changed the procedures to move to a new hardware have also changed.
- Backup the mailbox database.edb and pubic database.edb as well as mail.que files. It is highly recommended to have a full backup of these files to prevent any future complications.
- Power down the current Exchange server
Backing up Exchange Server 2007 depends on what server role is being backed up. Below is a list of role specific data that needs to be protected before moving ahead. Procedure documented here applies to a single server installed all the server roles.
- Mailbox Server Data
- Hub Transport Server Data
- Edge Transport Server Data
- Client Access Server Data
- Unified Messaging Server Data
- Active Directory Data
- Client-Side Data
Configure New Hardware:
- Use ADUC console to reset the Exchange Sever machine account.
- If you already have a Windows Server box to box to be brought on the network, join it into the network, change its name to your Exchange Server 2007 existing computer name and join into the domain.
- Configure IP Address for the new machine so that it uses a static IP that matches the IP in the DNS host record for the old server.
- Run Exchange setup. Using Start -> Run specify the path to Exchange Server 2007 Setup launcher, add the /recoverserver and /donotrestart switches. The complete command should look like the following:
Drive:Setup /m:recoverserver /donotrestart
Once setup completes.
- Move the mail.que database back into the queue folder (this folder should be empty): c:program filesMicrosoftExchange ServerTransportRolesdataqueue
- Move the mailbox database into the production folder (this folder should also be empty): c:Program FilesMicrosoftExchange ServerMailboxFirst Storage Group
- Move the Public database into the production folder (this folder should also be empty): c:Program FilesMicrosoftExchange ServerMailboxSecond Storage Group
- Open the Exchange Management Console – obtain properties of the two stores and select the option that “This database can be overwritten by a restore”.
- Start all Exchange services.
- Verify Send Connector configuration – you should have a * domain listed with a type = SMTP in order to send mail outbound.
- Verify Receive Connector configuration – In order to receive mail the connector needs to accept anonymous connections.
- If external SMTP domain is different than the internal domain you need to Verify the External SMTP Domain is added to the Accepted Domains list.
Enable the Anti-Spam Agents for the Hub Transport role. To do so:
- Open Exchange Management shell and navigate to the scripts directory: c:program filesMicrosoftExchange ServerScripts. Issue following command: .install-AntispamAgents.ps1
- Restart the Exchange Transport Service (MSExchangeTransport).
- In Exchange Management console verify that the SPAM Agents are enabled on the Anti-Spam tab. This will be Organization Configuration – Hub Transport – Anti-Spam.
- Verify internal and external mail flow.
If you have different server roles installed on different hardware following should be a good read;
- How to Move an Exchange 2007 Client Access Server to New Hardware Keeping the Same Server Name
- How to Move an Exchange 2007 Mailbox Server to New Hardware Keeping the Same Server Name
- How to Move an Exchange 2007 Unified Messaging Server to New Hardware Keeping the Same Server Name
- How to Move an Exchange 2007 Edge Transport Server to New Hardware Keeping the Same Server Name