You can bulk-create or import address rewriting information into an Edge Transport server by using a comma-separated value (CSV) file. The following list describes common scenarios that require you to do this:
You are replacing an address rewriting solution with an Edge Transport server.
You enter into an agreement with a third-party solution provider that requires you to rewrite their email addresses.
You acquire another organization, and you need to temporarily rewrite the email addresses in the acquired organization.
You can use a spreadsheet application like Microsoft Excel to create the CSV file. Format the file as described in this topic and save it as a .csv file.
The first row, or header row, of the CSV file lists the names of the parameters. Each parameter is separated by a comma. The required and optional parameters are described in the following table.
Parameter
Required or optional
Description
Name
Required
A unique, descriptive name for the address rewrites entry.
InternalAddress
Required
The address you want to change. You can use the following values:
A single email address (chris@contoso.com)
A single domain or subdomain (contoso.com or sales.contoso.com)
A domain and all subdomains (*.contoso.com)
ExternalAddress
Required
The final email address you want. You can use the following values:
A single email address if you specified a single email address for InternalAddress
A single domain or subdomain for all other values of InternalAddress
ExceptionList
Optional
Available only when you're rewriting email addresses in a domain and all subdomains (*.contoso.com). Specifies one or more subdomains you want to exclude from address rewriting. Enclose the value in double quotation marks, and separate multiple values by commas. For example, "marketing.contoso.com" or "marketing.contoso.com,legal.contoso.com".
OutboundOnly
Optional
False means that addresses are written on inbound and outbound mail. True means that addresses are rewritten on outbound mail only, and you need to manually configure the rewritten email address as a proxy address on the affected recipients. The default value is False, but you need to set it to True if InternalAddress contains the wildcard character (*.contoso.com). The OutboundOnly parameter value in the CSV file is True or False, not $True or $False.
Each row under the header row represents an individual address rewrite entry. The values in each row need to be in the same order as the parameter names in the header row. Each value is separated by a comma.
You need to be assigned permissions before you can perform this procedure or procedures. To see what permissions you need, see the "Address Rewriting agent" entry in the Mail flow permissions topic.
If you have more than one Edge Transport server, we recommend that you use the procedures in this topic to import the address rewrite entries into a single Edge Transport server and then clone the configuration of that Edge Transport server to the other Edge Transport servers in your organization. For more information about how to clone an Edge Transport server, see Using Edge Transport Server Cloned Configuration.
When you create the CSV file, consider the following items:
If you specify values for optional parameters in the CSV file, every row must include a value in that column. If you want to create multiple address rewrite entries where some entries have optional parameters and some entries do not, you need to separate those address rewrite entries into different CSV files, and then import each CSV file separately.
If the CSV file contains non-ASCII characters, be sure to save the CSV file with UTF-8 encoding or other Unicode encoding. Saving the CSV file with UTF-8 encoding or other Unicode encoding might be easier when the system locale of the computer matches the language that's used in the CSV file.
The following example shows how a CSV file can be populated with the optional ExceptionList and OutboundOnly parameters included:
To verify that you have successfully imported address rewrite entries from a CSV file, use either of the following procedures:
To see all address rewrite entries, run the following command:
Get-AddressRewriteEntry
To see details about a specific address rewrite entry, replace <AddressRewriteIdentity> with the name of the address rewrite entry, and run the following command:
Summary: Learn how address rewriting on Edge Transport servers in Exchange Server can modify sender and recipient email addresses on email messages in transit.
Summary: Learn how to configure address rewriting on an Edge Transport server in Exchange Server, and how to verify the address rewriting configuration.
Summary: Learn about subscribing an Edge Transport server to your internal Exchange Server 2016 or Exchange Server 2019 organization, which provides end-to-end mail flow, recipient look-up, and safelist aggregation.