Sưu tầm: How to set up TMG 2010 to publish Outlook Anywhere on Exchange 2010 & Exchange 2007


Issue\Requirement:

How to set up TMG 2010 to publish Outlook Anywhere on Exchange 2010. This article assumes that the TMG server is in the DMZ and is not a domain member, as per best practices.

Resolution\Process:

First of all ensure that the Exchange 2010 CAS server is set up correctly:

  1. Install the RPC over HTTPs feature via Windows Server Manager.
  2. Go into the Exchange management console.
  3. Expand Server Configuration > Client Access.
  4. Right click on the CAS server and select Enable Outlook Anywhere.

As the TMG server is in the DMZ it will not trust the Exchange servers self signed certificate. In order for Outlook Anywhere to work, the TMG server must be able to access https://YourMailServer.YourDomain.Local/RPC/rpcproxy.dll

Therefore we need to create a new certificate that can be trusted by both the Exchange server and the TMG server. This is easily achieved by installing an internal root CA. I would recommend you do this on a Windows Server 2008 machine as it is easily able to create a SAN cert (it can be done on Windows Server 2003, but only via CLI).

You should also ensure that the TMG server can access the mail server by name. The best way to achieve this without opening up additional ports on the firewall is to add the following lines to the TMG servers hosts file:

1.1.1.1 (Your mail servers IP address) YourMailServer YourMailServer.YourDomain.Local ExternalURLOfMailService.YourExternalDomain.Com

  1. Connect to a Windows Server 2008 machine and install the Active Directory Certificate Services role.
  2. Select both the Certification Authority and the Certification Authority Web Enrolment.

Once the above is complete we can create a new certificate for use in Exchange. Connect back to the Exchange server and perform the following:

  1. Launch the Exchange management console.
  2. Click on Server Configuration and then click on the mail servers name in the right hand pane.
  3. Click New Exchange Certificate on the actions pane.
  4. Follow the wizard. Do not worry too much about the Exchange Configuration screen as we can add and alter the Certificate Domains on the next screen. This is where we add all the required names for the SAN certificate.
  5. Once the wizard is complete and you have exported the certificate request you can launch a web browser to: http://YourRootCAServer/certsrv
  6. Authenticate.
  7. Select Request a certificate.
  8. Select advanced certificate request.
  9. Select Submit a certificate request by using a base-64-encoded CMC or PKCS #10 file, or submit a renewal request by using a base-64-encoded PKCS #7 file.
  10. Open your certificate request file and copy the string.
  11. Paste this into the Saved Request section of the certificate services website.
  12. Select the option to create a Web Server under Certificate Template.
  13. Select submit and complete the wizard.
  14. Once you have your certificate file, return to the Exchange management console.
  15. Select the option to complete a pending request and select your new certificate file.
  16. Once complete you may receive the following error against the new certificate in Exchange manager: The Certificate is Invalid for Exchange Server Usage.
  17. This is beacuse the server (and clients) have not had time to pick up the new certificate authority.
  18. To resolve this you can either wait, reboot the machines or update group policy via: gpupdate /force on the command line.
  19. Once the gpupdate /force has been run you may need to close and re-open the management console.
  20. Once the certificate shows as valid select Assisgn Services to Certificate.
  21. Follow the wizard and select the required services for your site (I would select all apart from Unified Messaging).
  22. At this point, client machines using Outlook might start getting certificate errors. This is because they have not had their policy updated to recognise the new root CA. Again, you can fix this either by rebooting the client machiens or runnign gpupdate /force

Exchange is now configured to allow RPC over HTTPs connections. To publish the server we need to do the following on the TMG server:

  1. Launch the TMG management console and browse to Firewall Policy.
  2. On the right hand side, select Tasks > System Policy Tasks > Edit System Policy.
  3. In the pop up window, select Authentication Services > Active Directory.
  4. Uncheck Enforce strict RPC compliance, and click OK.
  5. Right click Firewall Policy and select New > Exchange Web Client Access Publishing Rule.
  6. Follow the wizard selecting the following options: Exchange version – Exchange Server 2010 > Outlook Anywhere (RPC/HTTP(s)) (Note that once this is selected, the other client access services are greyed out. This is because RPC over HTTPs must exist in its own rule and cannot be shared with other services) > Publish a single Web site or load balancer > Use SSL to connect to the published Web server or server farm > Internal site name: YourMailServer.YourDomain.Local (check the TNG server is able to resolve this) > Public name: ExternalURLOfMailService.YourExternalDomain.Com > Select a Web listener from the dropdown (this can be the one used for OWA and should use a SAN cert. No authentication should be enabled). > No delegation, but client may authenticate directly > All Users > Finish.
  7. Right click the newly created rule and select properties.
  8. Select Test Rule.
  9. You should get no errors and the test should read as: Configuration Tests > YourTMGServerName > YourMailServerName.YourDomain.Local > https://ExternalURLOfMailService.YourExternalDomain.Com:443/rpc/
  10. If you get a HTTP error 500 message then follow this article: http://www.cenobite.eu/index.php?option=com_content&view=article&id=61:exchange-outlook-anywhere-error-an-aspnet-setting-has-been-detected-that-does-not-apply-in-integrated-managed-pipeline-mode&catid=3:exchange&Itemid=19

Outlook Anywhere configuration is now complete.

About thangletoan

Hallo Aloha

Posted on 11/11/2012, in Công nghệ và Giáo dục, Chính sách CNTT, Exchange 2010, Microsoft Exchange & TMG, Outlook Anywhere, TMG 2010. Bookmark the permalink. Để lại bình luận.

Gửi phản hồi

Mời bạn điền thông tin vào ô dưới đây hoặc kích vào một biểu tượng để đăng nhập:

WordPress.com Logo

Bạn đang bình luận bằng tài khoản WordPress.com Log Out / Thay đổi )

Twitter picture

Bạn đang bình luận bằng tài khoản Twitter Log Out / Thay đổi )

Facebook photo

Bạn đang bình luận bằng tài khoản Facebook Log Out / Thay đổi )

Google+ photo

Bạn đang bình luận bằng tài khoản Google+ Log Out / Thay đổi )

Connecting to %s

%d bloggers like this: