| HomeKnowledge BaseToolsInfo | ![]() ![]() |
HOWTO: Use Outlook RPC over HTTPS with port other than 80 or 443Information in this article applies to:
SUMMARYWhen using Microsoft Outlook RPC over HTTP(S) feature you cannot select the port you want for connecting to the remote Exchange Server (or reverse proxy, if you have one). This article describes a possibility (though likely unsupported) to work around this limitation.
SYMPTOMSWhen specifying a port number in the format "server.example.com:8000" for HTTP or "server.example.com:44300" for HTTPS you receive the following error message:
---------------------------
Microsoft Office Outlook
---------------------------
The proxy server you have specified is invalid. Correct it and try again.
---------------------------
OK
---------------------------
Outlook prevents you from saving your changes.
STATUSCurrently, there is no official way to specifiy a port when using the RPCoHTTP(S) feature. Outlook implicitly uses tcp-80 for HTTP and tcp-443 for HTTPS connections.
However, you can modify the registry directly and specifiy the requested port with the MAPI profile directly. But keep in mind that this might not be supported by Microsoft.
* Open your MAPI profile in the regular way via Control Panel, Mail.
* Select the profile you want to edit (<Your MAPI Display Name>) and click "Properties" and then "E-mail Accounts".
* Select "View or change existing e-mail accounts" and clicke "Next".
* Select "Microsoft Exchange Server" and click "Change...".
* Click on "More Settings...".
* Open the "Connection" tab.
* Click "Exchange Proxy Settings..."
* In the "Connection settings" input text field (preceeded with "http://" or "https://") you will see the server name you normally connect to via its standard port: "server.example.com".
* Change the server name from "server.example.com" to "server.example.com-44300" with "44300" the new port you want to use. Make sure you use '-' as the delimiter and not ':'. Otherwise Outlook will not allow to save your changes.
* Click "OK" to save your changes.
* Click "OK" or "Close" on all other open dialogue boxes you opened during the procedure thus saving your change to ypur MAPI profile.
* Open the registry editor "regedit.exe" and go to the following location: "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Windows Messaging Subsystem\Profiles\<Your MAPI Display Name>\"
* Under this key you find several other subkeys. Navigate to the subkey "13dbb0c8aa05101a9bb000aa002fc45a" and locate the entry "001f6622" of type REG_BINARY.
* When you open this entry and you will see it contains the settings you just made via the GUI. However, all characters are followed by a '00' character and the end of the string is terminated by two additional '00' characters, thus having three '00' characters at the end of the string.
0000 73 00 65 00 72 00 76 00 s.e.r.v.
0008 65 00 72 00 2E 00 65 00 e.r...e.
0010 78 00 61 00 6D 00 70 00 x.a.m.p.
0018 6C 00 65 00 2E 00 63 00 l.e...c.
0020 6F 00 6D 00 2D 00 34 00 o.m.-.4. *** replace 2D with 3A, or '-' with ':'
0028 34 00 33 00 30 00 30 00 4.3.0.0.
0030 00 00
Replace the '-' character with the ':' character and click "OK" to save your changes.
* When you open the MAPI profile via Control Panel, Mail again you will see the server string will now contain "server.example.com:44300". Click "Cancel" to close the dialogue box as Outlook will not allow to save this string via the GUI.
* Start Outlook and it will connect to the non-standard port you specified. Also make sure your Exchange Server or Reverse Proxy accepts this new port.
* To verify the new behaviour use "netstat -an | Findstr /I :44300" from the command line to see Outlook connecting to the new port. Or you the WinHttp Tracing facility to monitor the winHttpConnect calls:
WinHttpConnect(0x12345678, "server.example.com", 44300, 0x0)
REFERENCESMicrosoft WinHttpTraceCfg.exe, http://msdn.microsoft.com/en-us/library/aa384119(VS.85).aspx
Copyright 2009, d-fens GmbH & Co. KG.
|
|||||||||||||||