Note: This article was originally published in 2012. Some steps, commands, or software versions may have changed. Check the current Exchange documentation for the latest information.
In this step-by-step guide, you’ll learn publish exchange 2010 - outlook web access (owa) - with tmg. Microsoft Exchange Server is a mail server and calendaring server developed by Microsoft, used for enterprise email, calendar, contacts, and task management.
Prerequisites
Before you begin, make sure you have:
- Exchange Server installed and configured
- Administrative access to Exchange Management Console/Shell
- Active Directory environment
Publishing Outlook Web Access (OWA) using (http://www.microsoft.com “Microsoft”) Threat Management Gateway (TMG)
Publishing Outlook Web Access (OWA) is a usual step in the enterprise. You want to be able to provide access to your corporate emails via a web interface users can access anywhere with an (http://en.wikipedia.org/wiki/Internet_access “Internet access”). Below are some steps and recommendations for making OWA available to your users. First we will start with some basic pre-requisites and best practices, proceed to prepare the Exchange server and finalize with publishing through TMG (previously known as (http://www.microsoft.com/forefront/threat-management-gateway/en/us/ “Microsoft Forefront Threat Management Gateway”)). Noteworthy is the fact that if you are using Microsoft’s Small Business Server OWA tends to come pre-configured so you can skip that step (just make sure in the Exchange console it appears as active and that the configuration meets your needs). Here are some pre-requisites to keep in mind :
- Ideally you want at least 2 External IPs. You can deal with one for (http://en.wikipedia.org/wiki/Basic_access_authentication “Basic access authentication”) (OA, EWS, EAS) but if you get another one then you can do forms based (OWAECP).
- A multi-name trusted (http://en.wikipedia.org/wiki/Public_key_certificate “Public key certificate”) with all applicable names. I would recommend using your own CA to issue certificates as getting this right might be tricky. Once you got a handle on this then you can use a third party that is more accepted globally.
- TGM can authenticate with AD already (either domain joined or authentication configured)
Preparing the exchange server
- Configure(http://www.microsoft.com/exchange “Microsoft Exchange Server”) for basic authentication (Not needed for SBS)
- Run the following on the (http://en.wikipedia.org/wiki/Central_Authentication_Service “Central Authentication Service”)server that will be published
- Set-OwaVirtualDirectory -id
* -BasicAuthentication $true -WindowsAuthentication $true -FormsAuthentication $false - set-WebServicesVirtualDirectory -id
* -WindowsAuthentication $true -BasicAuthentication $true - set-EcpVirtualdirectory -id
* -BasicAuthentication $true -WindowsAuthentication $true -FormsAuthentication $false - set-OabVirtualDirectory -id
* -WindowsAuthentication $true -BasicAuthentication $true - set-ActiveSyncVirtualDirectory -id
* -BasicAuthentication $true
- Set-OwaVirtualDirectory -id
- Run the following on the (http://en.wikipedia.org/wiki/Central_Authentication_Service “Central Authentication Service”)server that will be published
- Copy the 3rd party certificate to the TMG server. (Not needed for SBS)
- Click Start –> Run –> Type MMC
- Click File –> add remove Snap-in –> Certificates –> ADD –> Computer account-> Next –> finish-> ok
- Click Personal –> certificates
- Right Click on 3rd party certificate and click all tasks –> export
- Click Next –> Yes, Export (http://en.wikipedia.org/wiki/Public-key_cryptography “Public-key cryptography”) –> (http://en.wikipedia.org/wiki/Base64 “Base64”) –> next –> Browse for file location.
- Next-> finish
- Copy certificate file to the TMG server
- Click Start –> Run –> Type MMC
- Click File –> add remove Snap-in –> Certificates –> ADD –> Computer account-> Next –> finish-> ok
- Click Personal –> Right Click certificates –> all task –> import –> next –> select file –> next –> next finish
- Configure OWA Rule on TMG
- Open Forefront TMG
- Click on Firewall Policy
- In the Action Pane under Task launch the wizard “Publish Exchange (http://en.wikipedia.org/wiki/World_Wide_Web “World Wide Web”) Client Access”
- Give the rule a Name based on your enterprise standards.
- Select Exchange 2010 from the DropDown and enable (http://www.microsoft.com/exchange/2010/en/us/outlook-web-app.aspx “Outlook Web App”)
- Make the appropriate selections on the next screen, defaults are acceptable.
- The Internal Site Name should be your CAS server (http://en.wikipedia.org/wiki/Fully_qualified_domain_name “Fully qualified domain name”) (needs to be on the certificate of the site hosting exchange)
- The external name is what you use to access OWA (Needs to be on the certificate as well and on the listener used by TMG)
- Select your listener. Remember you can use one with forms or one that delegates authentication depending on your needs.
- You´re done!
Related articles
- (http://technology.bauzas.com/files/2012/07/noimg_15_80_80.jpg)](http://technology.bauzas.com/microsoft/how-to-configure-and-understand-autodiscover-with-tmg/)(http://technology.bauzas.com/microsoft/how-to-configure-and-understand-autodiscover-with-tmg/)(technology.bauzas.com)
- (http://technology.bauzas.com/files/2012/07/noimg_21_80_801.jpg)](http://technology.bauzas.com/microsoft/how-to-resolve-common-problems-https-inspection-using-microsoft-forefront-threat-management-gateway-2010/)(http://technology.bauzas.com/microsoft/how-to-resolve-common-problems-https-inspection-using-microsoft-forefront-threat-management-gateway-2010/)(technology.bauzas.com)
- (http://technology.bauzas.com/files/2012/07/96124277_80_801.jpg)](http://technology.bauzas.com/microsoft/how-to-configure-exchange-edge-server-for-e-mail-policy-with-thread-management-gateway-tmg/)(http://technology.bauzas.com/microsoft/how-to-configure-exchange-edge-server-for-e-mail-policy-with-thread-management-gateway-tmg/)(technology.bauzas.com)
(http://img.zemanta.com/zemified_h.png?x-id=19932a2e-80ed-452e-a535-0c32c1d1727b)](http://www.zemanta.com/?px “Enhanced by Zemanta”)
Summary
You’ve successfully learned publish exchange 2010 - outlook web access (owa) - with tmg. If you run into any issues, double-check the prerequisites and ensure your Exchange environment is properly configured.