Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You can't add a domain to Exchange federation in Office 365


View products that this article applies to.

Problem

When you try to add a domain to Microsoft Exchange federation in Microsoft Office 365, the process is unsuccessful. This issue may occur even if the TXT (text) record of the federation proof is successfully added to the domain's DNS record.

↑ Back to the top


Cause

This issue occurs�if the TXT record of the federation proof is too large.

By default, DNS uses User Datagram Protocol (UDP) for queries, and it replies with a DNS payload limit of 512 bytes. Larger replies are truncated, and this leads to a later handling through Transmission Control Protocol (TCP) with more overhead. In this case, TCP is not enabled outgoing. Therefore, verification fails if the TXT record of the federation proof is too large.

↑ Back to the top


Solution

To work around this issue, follow these steps:
  1. Manually change the hosts file on the�hybrid server or servers to include the following information:
    207.46.164.41 domains.live.com
    Note This server has TCP outgoing access permissions.
  2. Add the domain to the Exchange federation list by running the following Windows PowerShell command:
    Add-FederatedDomain �DomainName <SmtpDomain>
    For example, run the following command:
    Add-FederatedDomain �DomainName contoso.com
  3. Remove the hosts file entry that you added in step 1.

↑ Back to the top


More information

In Windows 2008 Server and in Windows 2008 Server R2, the hosts file is saved in the following location:
%windir%\system32\drivers\etc\hosts

↑ Back to the top


Still need help? Go to the Office 365 Community website.

↑ Back to the top


Keywords: KB2712678, kbgraphic, o365022013, o365m, hybrid, o365e, o365a, o365

↑ Back to the top

Article Info
Article ID : 2712678
Revision : 9
Created on : 7/9/2014
Published on : 7/9/2014
Exists online : False
Views : 429