Av rating:
Total votes: 21
Total comments: 6


Nicolas Blank
Deploying Exchange 2007 on Windows Server 2008
19 September 2008

Nicolas Blank  recounts his Experiences deploying Exchange 2007 SP1 on Windows Server 2008, when not everything worked out of the box as it should have. In this article Nicolas writes about the fixes to the issues he faced when installing on Server 2008.

My customer’s scenario wasn’t quite typical – he had an unstable mail server running Exchange 2003, as well as Active Directory issues, one of which included the requirement to rename the directory tree. The customer wanted a brand new environment and in order to realize the scalability and security benefits of Microsoft’s 64 bit OS decided on Windows Server 2008. This meant I was called in to perform a “Green Fields” migration, where a new target environment is built and all users, machines and mail are migrated to it. To complicate matters, the customer was on a tight hardware budget, meaning he could only afford a single large machine for a 200 user site.

Designing a solution

The design was relatively straightforward - since I only had a single machine available, I had to place the HUB, CAS and mailbox role onto that machine. Having all of the roles on one machine is well catered for in the available design guidance from the Exchange team at Microsoft. The machine had 16 GB of memory and a quad core processor. I also had enough disks to create a decent set of mirrors for the OS, page file, logs and a RAID 5 array for the Exchange Database.  SPAM handling was done at the ISP, which meant one less burden for the HUB role to handle, since the budget did not allow for additional hardware for an edge server. AV would be handled by the ISP, though this did not preclude internal attack, and I chose Forefront to handle AV on the Exchange server to scan both existing mail in the stores and transmitted mail via the HUB role.

Building a new mail server

Server 2008 is much “lighter” on a default install than Server 2003, with fewer components deployed by default. However this default install requires me to add the Roles and Features required to build a multi role Exchange Server. Instead of adding each feature through the GUI by hand, I built a batch file containing the required commands. The only reboot required would be after the installation of Active Directory Domain Services remote management tools.  From the command line I ran “ServerManagerCmd -i RSAT-ADDS” to install this service, and rebooted. After which I ran the following commands in listed order in a batch file.

ServerManagerCmd -i PowerShell

ServerManagerCmd -i Web-Server

ServerManagerCmd -i Web-ISAPI-Ext

ServerManagerCmd -i Web-Metabase

ServerManagerCmd -i Web-Lgcy-Mgmt-Console

ServerManagerCmd -i Web-Basic-Auth

ServerManagerCmd -i Web-Digest-Auth

ServerManagerCmd -i Web-Windows-Auth

ServerManagerCmd -i Web-Dyn-Compression

ServerManagerCmd -i RPC-over-HTTP-proxy

Using the command line was dramatically faster than using the GUI would have been and allowed me to script all of the required prerequisites, thereby eliminating any potential mistakes installing the prerequisites. After this I invoked the Exchange installer and since all of the prerequisites were met, Exchange had no issues installing.

The problem, IPv6

The last thing I added before installing Exchange was the prerequisite for the CAS role to host Outlook Anywhere and mobile clients, namely RPC over HTTP, using this command

ServerManagerCmd -i RPC-over-HTTP-proxy

 I noticed that RPC over HTTP didn’t always work.  The solution lay in the limited support for the CAS role and IPv6. Running

 Netstat –a –n

From the command line gave the following results

If you’re familiar with IPv4, you’ll know that in the first picture the IP stack is listening on  open ports 6001, 6002 and 6004, but these ports were missing on the IPv6 stack on the same address “[::]:” . This meant that one of the core requirements for RPC over HTTP, communication with the local server, had been compromised.  At first glance, the fix seems simple, surely you just disable IPv6? Correct, but that wasn’t as easy as you might think.

First I had to unbind IPv6 from the Network Adapter, but just like Vista, Server 2008 requires a registry hack in order to disable the protocol altogether.

Using Regedit I navigated to:

                HKLM\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters

Added a DWORD32 called DisabledComponents and give it the following value: 0xff, effectively diabling all IPv6 components. See this article from the MS Exchange team for background. When installing Exchange 2007 on Server 2008, using Outlook Anywhere requires using this value, but refer to the table below for other possible values.

Function

Value

Disable all IPv6 tunnel interfaces, including ISATAP, 6to4, and Teredo tunnels

0x1

Disable all 6to4-based interfaces

0x2

Disable all ISATAP-based interfaces

0x4

Disable all Teredo-based interfaces

0x8

Disable Teredo and 6to4

0xA

Disable IPv6 on non tunnel interfaces including all LAN and PPP interfaces

0x10

Disable IPv6 on all LAN, PPP, and tunnel interfaces

0x11

Prefer IPv4 to IPv6 when attempting connections

0x20

Disable IPv6 over all interfaces and prefer IPv4 to IPv6 when attempting connections

0xFF

 

Have a look at the IPv6 Transition Technologies Whitepaper for more details.

 

 

 

One final step was required, namely editing the hosts file to remove the IPv6 “localhost” equivalent. This meant commenting out the ::1 line by placing a # in front of it as well as manually adding the Netbios and FQDN names

10.41.1.243         mpmx01.ds.customerAD.com

10.41.1.243         mpmx01

127.0.0.1              localhost

# ::1                        localhost

Note that the last line comments out the IPV6 address

Note: This issue is current as of Exchange 2007 SP1 Rollup 3, though it should be resolved with Rollup 4 (if it comes out for real!). None of my Exchange customers run IPv6 ,and even with this issue resolved, I would still disable IPv6 or any other protocol not actively used in the environment. After a reboot running netstat –a –n again revealed that IPv6 was indeed gone for good.

 

Finishing the Org

With that out of the way, configuring Exchange was straightforward. I added the same SMTP namespace as the original org, configured a SAN certificate for the CAS role, allowing OWA and Outlook Anywhere to communicate securely and allowed anonymous mail submission to the Receive connector, thereby enabling internet mail. Final testing showed that I could communicate with Exchange both internally and externally. The migration proceeded smoothly after that, using  Quest Migration Manager (QMM)  to move both the AD user accounts, and the Exchange Mailboxes. The advantage in using this toolset over native tools, was that there was virtually no user impact, and it required no desktops visits. Depending on the timeframe required, the complexity of the migration and the amount of mail that needs to be moved, I generally prefer using third party utilities to native utilities. I have had particular success with QMM, since it supports single or many object rollback. This allowed me to build Disaster Recovery plans that fitted the overall business requirement into the migration plan. Native tools can often be “fire and forget” and you have to hope that the end result is the one you hoped for.

it was worth noting that the original Exchange server suffered massive hardware failure the day after the migration completed and was signed off. The server drive subsystem failed catastrophically, requiring a complete replacement of all drives in the array. One of the original migration drivers was to move off the old hardware platform. Had the business decided to wait to migrate any longer we might have experienced the hardware failure while migrating.

 

Conclusion

If you get the chance to upgrade, Windows Server 2008 offers a number of enhancements in the OS which benefit Exchange 2007 deployment and management greatly.  Security and resilience are enhanced and Windows ships with a better IP stack allowing more RPC connections, amongst other features. This “Green Fields” migration path is particularly straightforward, but even the more complex methods are well worth following if you have the budget. A few things remain incompatible, for example, Server 2008 contains no native backup utility for Exchange 2007, and Exchange 2007 does not support the new Read Only Domain Controller feature in Server 2008. The first of these at least is likely to change in the near future. IPv6 is irritating , but it is quickly disabled since it offers no value over IPv4 at this point. Server 2003 is still available at the time of writing, but I wouldn’t hesitate to deploy Server 2008, and gain advantages such as Hyper-V support or “free” geo-clustering with CCR and SCR clusters replicating over the WAN. It is worth remembering that Exchange is a large application, making every deployment worth planning for, irrespective of which operating system it is deployed against.



This article has been viewed 3127 times.
Nicolas Blank

Author profile: Nicolas Blank

Nicolas Blank is an Exchange MVP and consultant at Symbiotech (http://www.symbiotech.co.za), a consultancy that specializes in the Microsoft Infrastructure & related tools space with a strong focus on messaging, collaboration, migration and security solutions. Nicolas currently builds solutions based on Active Directory, Exchange, Office Communication Server and a variety of third party vendors. Nicolas consults, speaks, writes and delivers seminars on various topics and blogs at http://blankmanblog.spaces.live.com

Search for other articles by Nicolas Blank

Rate this article:   Avg rating: from a total of 21 votes.


Poor

OK

Good

Great

Must read
 
Have Your Say
Do you have an opinion on this article? Then add your comment below:
You must be logged in to post to this forum

Click here to log in.


Subject: Title changed?
Posted by: Duncan Smart (not signed in)
Posted on: Monday, September 22, 2008 at 3:42 AM
Message: Google Reader picked up the old title "Exchange 2007 on Windows Server 2008: A White-Knuckle ride" - I think I prefer this one :-)

Subject: re:Title Changed
Posted by: Andrew Clarke (view profile)
Posted on: Monday, September 22, 2008 at 5:43 AM
Message: Yes. The article lacked a snappy title when I added it to Simple-Talk. I'd been struck by a deep visceral panic whilst just reading the article, merely thinking of Nicholas's predicament. Nobody should need to wade into RegEdit when installing anything, let alone a flagship product. Add to that the thought of an unstable mail server running Exchange 2003, Active Directory issues, and a tight budget.
Sadly, conservative elements within Simple-Talk prevailed and the title was changed.

Subject: exchange
Posted by: igor5m (view profile)
Posted on: Monday, October 13, 2008 at 12:52 PM
Message: thanks a lot

Subject: IPv6 Config Reg Edit in Question
Posted by: ibewhoiam (view profile)
Posted on: Thursday, October 23, 2008 at 5:00 PM
Message: FYI, I am in the process of setting up Exchange 2007 SP1 on a Windows server 2008 machine. I noticed that your screen shot shows that your "DisabledComponents" key had a value of "0x000000ff". Please check this config... this may be incorrect. Here is a link directly from microsoft explaining that the value of the key is different.

Look under the headers:

IPv6 in Windows Vista and Windows Server 2008

Q. How do I disable IPv6 in Windows Vista and Windows Server 2008?

A. Unlike Windows XP and Windows Server 2003, IPv6 in Windows Vista and Windows Server 2008 cannot be uninstalled. However, you can disable IPv6 in Windows Vista and Windows Server 2008 by doing one of the following:

• In the Network Connections folder, obtain properties on all of your connections and adapters and clear the check box next to the Internet Protocol version 6 (TCP/IPv6) component in the list under This connection uses the following items.

This method disables IPv6 on your LAN interfaces and connections, but does not disable IPv6 on tunnel interfaces or the IPv6 loopback interface.

• Add the following registry value (DWORD type) set to 0xFFFFFFFF:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents

This method disables IPv6 on all your LAN interfaces, connections, and tunnel interfaces but does not disable the IPv6 loopback interface. You must restart the computer for this registry value to take effect.


For additional information about the DisabledComponents registry value, see Configuring IPv6 with Windows Vista.

If you disable IPv6, you will not be able to use Windows Meeting Space or any application that relies on the Windows Peer-to-Peer Networking platform or the Teredo transition technology.

http://www.microsoft.com/technet/network/ipv6/ipv6faq.mspx


Subject: IPv6 Config Reg Edit in Question
Posted by: ibewhoiam (view profile)
Posted on: Thursday, October 23, 2008 at 6:10 PM
Message: FYI, I am in the process of setting up Exchange 2007 SP1 on a Windows server 2008 machine. I noticed that your screen shot shows that your "DisabledComponents" key had a value of "0x000000ff". Please check this config... this may be incorrect. Here is a link directly from microsoft explaining that the value of the key is different.

Look under the headers:

IPv6 in Windows Vista and Windows Server 2008

Q. How do I disable IPv6 in Windows Vista and Windows Server 2008?

A. Unlike Windows XP and Windows Server 2003, IPv6 in Windows Vista and Windows Server 2008 cannot be uninstalled. However, you can disable IPv6 in Windows Vista and Windows Server 2008 by doing one of the following:

• In the Network Connections folder, obtain properties on all of your connections and adapters and clear the check box next to the Internet Protocol version 6 (TCP/IPv6) component in the list under This connection uses the following items.

This method disables IPv6 on your LAN interfaces and connections, but does not disable IPv6 on tunnel interfaces or the IPv6 loopback interface.

• Add the following registry value (DWORD type) set to 0xFFFFFFFF:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents

This method disables IPv6 on all your LAN interfaces, connections, and tunnel interfaces but does not disable the IPv6 loopback interface. You must restart the computer for this registry value to take effect.


For additional information about the DisabledComponents registry value, see Configuring IPv6 with Windows Vista.

If you disable IPv6, you will not be able to use Windows Meeting Space or any application that relies on the Windows Peer-to-Peer Networking platform or the Teredo transition technology.

http://www.microsoft.com/technet/network/ipv6/ipv6faq.mspx


Subject: IPv6 Config Reg Edit in Question
Posted by: ibewhoiam (view profile)
Posted on: Thursday, October 23, 2008 at 6:10 PM
Message: FYI, I am in the process of setting up Exchange 2007 SP1 on a Windows server 2008 machine. I noticed that your screen shot shows that your "DisabledComponents" key had a value of "0x000000ff". Please check this config... this may be incorrect. Here is a link directly from microsoft explaining that the value of the key is different.

Look under the headers:

IPv6 in Windows Vista and Windows Server 2008

Q. How do I disable IPv6 in Windows Vista and Windows Server 2008?

A. Unlike Windows XP and Windows Server 2003, IPv6 in Windows Vista and Windows Server 2008 cannot be uninstalled. However, you can disable IPv6 in Windows Vista and Windows Server 2008 by doing one of the following:

• In the Network Connections folder, obtain properties on all of your connections and adapters and clear the check box next to the Internet Protocol version 6 (TCP/IPv6) component in the list under This connection uses the following items.

This method disables IPv6 on your LAN interfaces and connections, but does not disable IPv6 on tunnel interfaces or the IPv6 loopback interface.

• Add the following registry value (DWORD type) set to 0xFFFFFFFF:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\DisabledComponents

This method disables IPv6 on all your LAN interfaces, connections, and tunnel interfaces but does not disable the IPv6 loopback interface. You must restart the computer for this registry value to take effect.


For additional information about the DisabledComponents registry value, see Configuring IPv6 with Windows Vista.

If you disable IPv6, you will not be able to use Windows Meeting Space or any application that relies on the Windows Peer-to-Peer Networking platform or the Teredo transition technology.

http://www.microsoft.com/technet/network/ipv6/ipv6faq.mspx


 

Managing Exchange 2007 Mailbox Quotas with Windows PowerShell
 The use of PowerShell with Exchange Server 2007 can do a great deal to ease the task of managing... Read more...

The Road to Beta - Exchange Server Archiver speaks!
 Richard, Robert and Marine at Red Gate Software talk about designing, developing and testing Exchange... Read more...

Exchange Server Archiver, Las Vegas, Lemons and Whales
 It’s the fall and the leaves are falling all around us. And so are the barriers to Exchange Archiving. Read more...

Reporting on Mobile Device Activity Using Exchange 2007 ActiveSync Logs
 In this new column giving practical advice on all things Sys Admin related, Ben Lye takes on the often... Read more...

Asking for help – come and talk to us!
 “When you buy something from a self-assembly furniture shop, do you read the instructions?” This was... Read more...

Using Exchange 2007 for Resource Booking
 The process of booking various resources to go with a meeting room just got a whole lot easier with... Read more...

Free Exchange Server eBook
 Simple-Talk has teamed up with Sybex to give you a free copy of "Best of Exchange Server 2007" Read more...

High Availability in Exchange 2007
 Neil Hobson writes about the ways that MS Exchange 2007 can ensure that your organisations messaging... Read more...

Message Hygiene in Exchange Server 2007
 Around four out of every five email messages are spam. Now that the nuisance threatens to engulf what... Read more...

Controlling Email Messages using Exchange's Transport Rules
 Some tasks that should have been easy in previous versions of Exchange just weren't. Now, with... Read more...

Over 150,000 Microsoft professionals subscribe to the Simple-Talk technical journal. Join today, it's fast, simple, free and secure.

Join Simple Talk