To add a new Accepted domain on a computer that has the Hub Transport server role installed, you can use either Exchange Management Console or Exchange Management Shell.
To add a domain to Accepted Domains list using Exchange Management Console
To add a domain to Accepted Domains list using Exchange Management Shell
Run the following command for the source Exchange organization:
new-AcceptedDomain -Name 'source.local' -DomainName '*.source.local' -DomainType 'Authoritative'
where *.source.local is the address space you want to use for mail redirection from the target to the source organization.
Run the following command the target Exchange organization:
new-AcceptedDomain -Name 'target.local' -DomainName '*.target.local' -DomainType 'Authoritative'
where *.target.local is the address space you want to use for mail redirection from the source to the target organization.
The second option for establishing Internet mail flow between the target and the source Exchange organizations ( or between the source and the target Exchange organizations) is to subscribe the Edge Transport server to an Active Directory site. The connectors that establish mail flow to the Internet are created automatically when you subscribe an Edge Transport server to an Active Directory site by using the Edge Subscription process.
Before you begin this procedure, verify that the following prerequisites are met:
To establish mail flow to and from the Internet through a subscribed Edge Transport server, follow these steps:
Each step is explained in further detail in the related subtopics.
On the Hub Transport server, run the following command:
New-EdgeSubscription -filename "C:\EdgeSubscriptionInfo.xml" -CreateInternetSendConnector $true -CreateInboundSendConnector $true -site "Site-Name"
Where Site-Name is the name of Active Directory site where the Hub Transport server is located.