Address Rewriting Order of Precedence
- Single Email Address Rewrite
- Domain Rewrite
- Domain Wildcard Rewrite
Enable the Address Rewriting Agents
Enable-TransportAgent -Identity "Address Rewriting Outbound agent" Enable-TransportAgent -Identity "Address Rewriting Inbound agent"
Disable the Address Rewriting Agents
Disable-TransportAgent -Identity "Address Rewriting Outbound agent" Disable-TransportAgent -Identity "Address Rewriting Inbound agent"
Get a list of all address rewrite entries
Get-AddressRewriteEntry
New Outbound Rewrite Entry for a Single Email Address
New-AddressRewriteEntry -name "<RewriteEntryName>" -InternalAddress <InternalEmailAddress> -ExternalAddress <ExternalEmailAddress> -outboundonly $true
New Outbound Address Rewrite Entry for an Email Domain
New-AddressRewriteEntry -name "<RewriteEntryName>" -InternalAddress internaldomain.com -ExternalAddress externaldomain.com -outboundonly $true
Remove an Address Rewrite Entry
Remove-AddressRewriteEntry "<RewriteEntryName>"