Applies to: Exchange Server 2010 SP3, Exchange Server 2010 SP2
Topic Last Modified: 2011-05-06
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.
Syntax
set-addressrewriteentry -Identity
<AddressRewriteEntryIdParameter> [-Confirm
[<SwitchParameter>]] [-DomainController <Fqdn>]
[-ExceptionList <MultiValuedProperty>] [-ExternalAddress
<String>] [-InternalAddress <String>] [-Name
<String>] [-OutboundOnly <$true | $false>] [-WhatIf
[<SwitchParameter>]]
|
Detailed Description
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.
Parameters
Parameter | Required | Type | Description | ||
---|---|---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Management.MessagingPolicies.AddressRewrite.AddressRewriteEntryIdParameter |
The Identity parameter specifies the address rewrite entry to be modified. The Identity parameter accepts a GUID or the unique address rewrite name. |
||
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
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. |
||
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
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. |
||
ExceptionList |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
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. |
||
ExternalAddress |
Optional |
System.String |
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:
|
||
InternalAddress |
Optional |
System.String |
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:
|
||
Name |
Optional |
System.String |
The Name parameter specifies the unique name for this address rewrite entry. |
||
OutboundOnly |
Optional |
System.Boolean |
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
|
||
WhatIf |
Optional |
System.Management.Automation.SwitchParameter |
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. |
Input Types
To see the input types that this cmdlet accepts, see Cmdlet Input and Output Types. If the Input Type field for a cmdlet is blank, the cmdlet doesn’t accept input data.
Return Types
To see the return types, which are also known as output types, that this cmdlet accepts, see Cmdlet Input and Output Types. If the Output Type field is blank, the cmdlet doesn’t return data.
Examples
EXAMPLE 1
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.
Copy Code | |
---|---|
Set-AddressRewriteEntry "Address rewrite entry for contoso.com" -Name "Address rewrite entry for northwindtraders.com" -InternalAddress northwindtraders.com |
EXAMPLE 2
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.
Important: |
---|
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. |
Copy Code | |
---|---|
Set-AddressRewriteEntry "Address rewrite entry for all contoso.com e-mail addresses" -OutboundOnly $true |