Applies to: Exchange Server 2007 SP3, Exchange Server
2007 SP2, Exchange Server 2007 SP1
Topic Last Modified: 2007-08-28
Use the Set-AddressRewriteEntry cmdlet to modify an existing address rewrite entry that rewrites sender and recipient e-mail addresses within e-mail messages that are sent to and 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>]]
|
set-addressrewriteentry [-Confirm
[<SwitchParameter>]] [-DomainController <Fqdn>]
[-ExceptionList <MultiValuedProperty>] [-ExternalAddress
<String>] [-Instance <AddressRewriteEntry>]
[-InternalAddress <String>] [-Name <String>]
[-OutboundOnly <$true | $false>] [-WhatIf
[<SwitchParameter>]]
|
Parameters
Parameter | Required | Type | Description | ||
---|---|---|---|---|---|
Identity |
Required |
Microsoft.Exchange.Management.MessagingPolicies.AddressRewrite.AddressRewriteEntryIdParameter |
This parameter specifies the address rewrite entry to be modified. The Identity parameter will accept a GUID, or the unique address rewrite name. |
||
Confirm |
Optional |
System.Management.Automation.SwitchParameter |
The Confirm parameter 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 parameter. |
||
DomainController |
Optional |
Microsoft.Exchange.Data.Fqdn |
To specify the fully qualified domain name (FQDN) of the domain controller that writes this configuration change to the Active Directory directory service, include the DomainController parameter on the command. The DomainController parameter is not supported on Edge Transport servers. The Edge Transport server role writes only to the local ADAM instance. |
||
ExceptionList |
Optional |
Microsoft.Exchange.Data.MultiValuedProperty |
This parameter specifies the domain names that should not be rewritten when the InternalAddress parameter contains a value that specifies multiple domain names. You can separate multiple domain names that are 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 |
This parameter enables the administrator to modify the external e-mail address or domain name that is used when rewriting an internal e-mail address or domain name. If an e-mail address is specified in InternalAddress, the value specified in ExternalAddress must also be an e-mail address. If a domain name, or domain name with a wildcard character, is specified in InternalAddress, a domain name must be specified in ExternalAddress. Addresses or domain names can be entered in the following two formats:
|
||
Instance |
Optional |
Microsoft.Exchange.Data.Directory.SystemConfiguration.AddressRewriteEntry |
The Instance parameter enables you to pass an entire object to the command to be processed. It is mainly used in scripts where an entire object must be passed to the command. |
||
InternalAddress |
Optional |
System.String |
This parameter enables the administrator to modify the internal e-mail address or domain name that is being rewritten. Addresses or domain names can be entered in the following three formats:
|
||
Name |
Optional |
System.String |
This parameter enables the administrator to modify the unique name for this address rewrite entry. |
||
OutboundOnly |
Optional |
System.Boolean |
This parameter enables the administrator to modify whether
e-mail addresses should be rewritten only when e-mail messages
leave the Exchange Server 2007 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 parameter instructs the command to simulate the actions that it would take on the object. By using the WhatIf parameter, 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 parameter. |
Detailed Description
In Microsoft Exchange Server 2007, address rewriting lets you modify the addresses of senders and recipients on messages that enter and leave an Exchange 2007 organization. You configure Address Rewriting agents on the Receive connector and Send connector on a computer that has the Edge Transport server role installed.
To run the Set-AddressRewriteEntry cmdlet on a computer that has the Edge Transport server role installed, you must log on by using an account that is a member of the local Administrators group on that computer.
For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.
Input Types
Return Types
Errors
Error | Description |
---|---|
|
Exceptions
Exceptions | Description |
---|---|
|
Example
The following examples show how to modify an existing address rewrite entry. The first example sets the internal domain name to be written. The descriptive name for this entry is also changed to reflect the new domain name to be rewritten.
The second example sets the OutboundOnly
parameter to $true
. This action tells the Address
Rewriting agent to rewrite addresses only on outbound e-mail
messages from the Exchange 2007 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 contoso.com" -Name "Address rewrite entry for northwindtraders.com" -InternalAddress northwindtraders.com Set-AddressRewriteEntry "Address rewrite entry for all contoso.com e-mail addresses" -OutboundOnly:$true |