While running Hybrid Configuration on an Exchange server you may encounter below error .
Configuring Recipient Settings
HCW073 – Failure setting the email address policy.Powershell failed to invoke ‘set-emailaddresspolicy’ The SMTP address template is invalid because it references a domain that isn’t configured as as an accepted domain in your Organizations.
Set-EmailAddressPolicy –identity ‘Default Policy’ –ForceUpgrade: $true –IncludeRecipients AllRecipients
In my case the server is an Exchange Server 2010 where some of the domains assigned on the proxy address not added in the accepted domain and Email address policies weren’t upgraded to Exchange 2010 from legacy versions.
- Added all missing Domains in Accepted domains of Exchange Server 2010
Ran below to Confirm its legacy.
Get-EmailAddressPolicy | FL Name,*RecipientFilter*,ExchangeVersion
Ran below to Check Address lists are legacy.
Get-GlobalAddressList | FL Name,*RecipientFilter*,ExchangeVersion
Follow below Article – Upgraded Email Address Policies and address lists to Exchange Server 2010
Once done. Hybrid Wizard Ran Successfully.