Export (0) Print
Expand All


Applies to: Exchange Server 2010

Topic Last Modified: 2011-03-19

Use the Set-AddressRewriteEntry cmdlet to modify an existing address rewrite entry that rewrites sender and recipient e-mail addresses within e-mail messages sent to or from an e-mail organization.

set-addressrewriteentry -Identity <AddressRewriteEntryIdParameter> [-Confirm [<SwitchParameter>]] [-DomainController <Fqdn>] [-ExceptionList <MultiValuedProperty>] [-ExternalAddress <String>] [-InternalAddress <String>] [-Name <String>] [-OutboundOnly <$true | $false>] [-WhatIf [<SwitchParameter>]]

Parameter Required Type Description




The Identity parameter specifies the address rewrite entry to be modified. The Identity parameter accepts a GUID or the unique address rewrite name.




The Confirm switch causes the command to pause processing and requires you to acknowledge what the command will do before processing continues. You don't have to specify a value with the Confirm switch.




The DomainController parameter specifies the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to Active Directory. The DomainController parameter isn't supported on the Edge Transport server role. The Edge Transport server role writes only to the Active Directory Lightweight Directory Services (AD LDS) instance.




The ExceptionList parameter specifies the domain names that shouldn't be rewritten when the InternalAddress parameter contains a value that specifies multiple domain names. You can separate multiple domain names included with the ExceptionList parameter with commas. For more information about how to add values to or remove values from multivalued properties, see Modifying Multivalued Properties.




The ExternalAddress parameter specifies the external e-mail address or domain name used when rewriting an internal e-mail address or domain name. If an e-mail address is specified in the InternalAddress parameter, the value specified in the ExternalAddress parameter must also be an e-mail address. If a domain name, or domain name with a wildcard character, is specified in the InternalAddress parameter, a domain name must be specified in the ExternalAddress parameter. Addresses or domain names can be entered in the following formats:

  • Single e-mail address   Rewrite a single internal e-mail address using the specified address, for example, david@northwindtraders.com.
  • Domain name   Rewrite all internal e-mail addresses included in the InternalAddress parameter using the specified external domain name, for example, northwindtraders.com.
The asterisk character (*) can't be used with the ExternalAddress parameter.




The InternalAddress parameter enables you to modify the internal e-mail address or domain name being rewritten. Addresses or domain names can be entered in the following formats:

  • Single e-mail address   Rewrite only the specified address, for example, david@contoso.com.
  • Domain name   Rewrite all e-mail addresses associated with the specified domain name, for example, contoso.com.
  • Domain name with asterisk   Rewrite all e-mail addresses associated with the specified domain name and all subdomains, for example, *.contoso.com.




The Name parameter specifies the unique name for this address rewrite entry.




The OutboundOnly parameter specifies whether e-mail addresses should be rewritten only when e-mail messages leave the Exchange 2010 organization, or if addresses should be rewritten when messages are sent in both directions. The two possible values for this parameter are $true or $false. The default value is $false.

This parameter can't be set to $false if the value specified in the InternalAddress parameter contains a wildcard character.




The WhatIf switch instructs the command to simulate the actions that it would take on the object. By using the WhatIf switch, you can view what changes would occur without having to apply any of those changes. You don't have to specify a value with the WhatIf switch.

With address rewriting in Microsoft Exchange Server 2010, you can modify the addresses of senders and recipients on messages that enter or leave an Exchange 2010 organization. You configure Address Rewriting agents on the Receive connector and Send connector on a computer that has the Edge Transport server role installed.

You need to be assigned permissions before you can run this cmdlet. Although all parameters for this cmdlet are listed in this topic, you may not have access to some parameters if they're not included in the permissions assigned to you. To see what permissions you need, see the "Address Rewriting agent" entry in the Transport Permissions topic.

This example modifies the internal domain name to be written for the address rewrite entry Address rewrite entry for contoso.com. It also modifies the descriptive name to reflect the new domain name to be rewritten.

Set-AddressRewriteEntry "Address rewrite entry for contoso.com" -Name "Address rewrite entry for northwindtraders.com" -InternalAddress northwindtraders.com 

This example sets the OutboundOnly parameter to $true. This action causes the Address Rewriting agent to rewrite addresses only on outbound e-mail messages from the Exchange 2010 organization.

Internal senders who are affected by an address rewrite entry that has the OutboundOnly parameter set to $true must have a configured proxy address that matches the rewritten e-mail address.
Set-AddressRewriteEntry "Address rewrite entry for all contoso.com e-mail addresses" -OutboundOnly $true
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft