Xylos brands

Exchange 2010: add a disclaimer to the OWA login page

The Outlook Web App (OWA) login page can be modified, but only to a certain extend. Microsoft unfortunately does not (and cannot) support all customizations that you perhaps would like to make. The Technet website contains a usefull article that explains how the OWA login/logoff page are built and what or how you can make changes to these pages.

You can find the article here: http://technet.microsoft.com/en-us/library/ee633483.aspx 

One of the changes that are quite easy, but are undocumented on technet is the possibility to add a disclaimer. This can be some useful information for whoever uses Outlook Web App to a mandatory text containing legal information with regards to unrightful access etc...

To add a disclaimer, you will have to do the following:

1. Navigate within the Exchange 2010 installation folder to "ClientAccess\OWA\Auth":



In that folder, you will find a file called "logon.aspx"

2. Open the file and look for "<table class="mid tblConn">". Right underneath, add a reference to the disclaimer: <!-- #include file="disclaimer.inc" -->.

The result should look like this:
     ...
     <table class="mid tblConn">
          <!-- #include file="disclaimer.inc" -->
               <tr>
     ...

After you added the reference, save and close the file.

3. Create a new file called "disclaimer.inc" in the same folder (or in the folder where the reference you created ealier points to). The file can contain HTML or just text. For example:

<html>
     <head>
          <link type="text/css" rel="stylesheet" href="<%=OwaUrl.ApplicationRoot.ImplicitUrl%>
          <%ThemeManager.RenderBaseThemeFileUrl(Response.Output, ThemeFileId.LogonCss, 
          false);%>">
          <link type="text/css" rel="stylesheet" href="<%=OwaUrl.ApplicationRoot.ImplicitUrl%
          >14.1.323.3/themes/resources/<%= Utilities.GetDefaultCultureFontCssFileUrl(OwaContext) %
          >">
     </head>
     <body>
          <table style="border-width:1px;border-style:solid;border-color:gray" width="100%">
               <tr><td align="center">
                    <small>
                         Welcome to the webmail of company X. By using this website, you agree to the 
                         terms and conditions.... Anyone who attempts to unrightful access this webpage will be 
                         prosecuted....
                    </small>
               </td></tr>
          <table>
     </body>
</html>

That's it. The disclaimer will appear on the website and look something like this:  

Note: Applying updates to Exchange Server can (and probably will) undo the changes that you've made to the login page (logon.aspx). After each update, you should check whether the disclaimer is still there, if not re-apply the necessary changes.

Share this blogpost

Also interesting for you

Leave a reply

Your email address will not be published. Required fields are marked.