"The SMTP address template is invalid" error when you run the Hybrid Configuration wizard

Note The Hybrid Configuration wizard that's included in the Exchange Management Console in Microsoft Exchange Server 2010 is no longer supported. Therefore, you should no longer use the old Hybrid Configuration wizard. Instead, use the Office 365 Hybrid Configuration wizard that's available at http://aka.ms/HybridWizard. For more information, see Office 365 Hybrid Configuration wizard for Exchange 2010.
When you run the Hybrid Configuration wizard, you receive the following error message:
ERROR: Updating hybrid configuration failed with error 'Subtask Configure execution failed: Configure Recipient Settings

Execution of the Set-EmailAddressPolicy cmdlet had thrown an exception. This may indicate invalid parameters in your Hybrid Configuration settings.

The SMTP address template 'smtp:%m@contoso.mail.onmicrosoft.com' is invalid because it references a domain that isn't configured as an accepted domain for your organization.
This problem occurs if the accepted domain that's mentioned in the error message is set as an external relay domain.
Set the domain type of the on-premises domain to authoritative or internal relay, as appropriate for your situation. To do this, open the Exchange Management Shell on the on-premises server, and then run the following command:
Set-AcceptedDomain -Identity Contoso.Mail.Onmicrosoft.Com -DomainType <Authoritative or InternalRelay>
For more information, see Mail Flow > Accepted Domains > Edit Accepted Domain.

Still need help? Go to the Office 365 Community website or the Exchange TechNet Forums.

Article ID: 3060864 - Last Review: 04/26/2016 14:38:00 - Revision: 3.0

Microsoft Exchange Online, Microsoft Exchange Server 2013 Enterprise, Microsoft Exchange Server 2013 Standard, Microsoft Exchange Server 2010 Enterprise, Microsoft Exchange Server 2010 Standard

  • o365e o365m o365022013 o365 o365a hybrid KB3060864