How to fix Exchange 2007 RPC over HTTPS/Outlook Anywhere on Windows Server 2008

A small but anoying bug in Microsoft Exchange 2007 in combination with Windows Server 2008, will under certain conditions make Outlook Anywhere (OA) fail no matter how correct your settings are in Exchange 2007.

The Outlook Anywhere error only shows under theese conditions.

  • Any Exchange 2007 version
  • Client Access Server (CAS) and Mailbox Server roles installed on the same server
  • Operating system any version and edition of Windows Server 2008, with RPC Proxy feature installed (required for OA).

The reason for the bug and the fix is very simple…

The error is caused by a combination of the Windows Server 2008 RPC Proxy feature and Windows Server 2008 prefering IPv6 over IPv4 when talking to it self either with the localhost or the servername address. This means that when the CAS role contacts the RPC proxy on the same server, it will use the local ServerName resulting in the IPv6 address of :::1: instead of 127.0.0.1. In it self this should not be a problem, however the RPC Proxy feature is bugged and does not listen on one of the 3 ports used (6001-6002 and 6004) when using the IPv6 address. So the RPC over HTTPS connection will fail.

To resolve the problem all You have to do is make the server use the IPv4 address instead of the IPv6 address when contacting it self.

Resolution #1 (Recommended resolution)
Edit the hosts file to use IPv4 localhost 127.0.0.1 address instead of the IPv6 address :::1:, for the local ServerName and localhost addresses, the hosts file is located in the \Windows\System32\Drivers\etc folder. (Remember to start the editing with Administrator permissions)

Resolution #2
By not placing the CAS and Mailbox roles on the same server, and using IPv4 networking, the connection will go with IPv4 to the Mailbox server with RPC Proxy installed.

Resolution #3 (I would not recommend this solution.)
Use Windows Server 2003 on the Mailbox role, since it does not prefer IPv6 it wont be an issue.

Remember to get Outlook Anywhere working you will need to have the Windows feature RPC Proxy installed.

Related posts:

  1. Windows Server 2008 DNS root hints are bugged – how to identify and fix I recently had a problem at a customer, where Windows Server 2008 DNS, at times would not resolve...
  2. How to configure ISA 2006 with FBA for OWA and NTLM for Outlook Anywhere and Autodiscover in Exchange 2007 Configuration of Exchange 2007 with Outlook Web Access (OWA), Outlook Anywhere (OA), ActiveSync and Autodiscover can add grey...
  3. Windows Server 2008 Core Configurator Windows Server 2008 allows for setting up the server with a much smaller foot print and some will...
  4. How to use OWA for both Exchange 2003/2007 during migration and extra things to consider A customer asked me if it was possible during migration from Exchange 2003 to Exchange 2007 to use...
  5. How to install a SSL certificate backup file on Exchange 2007 and still have time for facebook The easiest way (I love easy!) to order and install an SSL certificate on Exchange 2007, is to...

One Response to “How to fix Exchange 2007 RPC over HTTPS/Outlook Anywhere on Windows Server 2008”

  • Sole:

    Just a quick note, this bug can be found in http://www.testexchangeconnectivity.com with an error during “Testing NSPI Interface on Exchange Mailbox Server” wich will fail on “Attempting to ping RPC Endpoint 6004 (NSPI Proxy Interface) on server your-server-name”

    If You get this error, make sure to check the rest of this article with how to fix it.

Leave a Reply