
Cloned Configuration Process
The cloned configuration process consists of three steps:
-
Export the configuration on the source server. In this step, you run the ExportEdgeConfig.ps1 script to export the source server's configuration information to an intermediate XML file.
-
Validate the configuration on the target server. In this step, you run the ImportEdgeConfig.ps1 script. This script checks the existing information in the intermediate XML file to see whether the settings that were exported are valid for the target server and then creates an answer file. The answer file specifies the server-specific information that is used during the next step when you import the configuration on the target server. The answer file contains entries for each source server setting that is not valid for the target server. You can modify these settings so that they are valid for the target server. If all settings are valid, the answer file contains no entries.
-
Import the configuration on the target server. In this step, the ImportEdgeConfig.ps1 script uses the intermediate XML file and the answer file to clone an existing configuration or to restore the server to a specific configuration.
These three steps are described in detail in the following sections.
Exporting the Configuration
After you install and configure the Edge Transport server role, run the ExportEdgeConfig.ps1 script. This script retrieves the source server’s configuration information and stores the information in an intermediate XML file.
The following information is exported from the source server and stored in the intermediate XML file:
-
Transport server-related information and log file path information. The following file paths are imported:
-
ReceiveProtocolLogPath
-
SendProtocolLogPath
-
MessageTrackingLogPath
-
PickupDirectoryPath
-
RoutingTableLogPath
-
Transport agent-related information that includes the status and priority settings of each transport agent.
-
All Send connector-related information. If any Send connectors are configured to use credentials, the password is written to the intermediate XML file as an encrypted string. You can use the -key parameter with the ImportEdgeConfig.ps1 and ExportEdgeConfig.ps1 scripts to specify the 32-byte string to use for password encryption and decryption. If you do not use the -key parameter, a default encryption key is used.
-
Receive connector-related information. To modify the local network binding and port properties, you must modify the configuration information in the answer file that is created in the validate configuration step.
-
Accepted domain configuration.
-
Remote domain configuration.
-
Anti-spam features configuration settings. The following information is imported:
-
IP Allow list information. Only the IP Allow list entries that were manually configured by the administrator are exported.
-
IP Block list information.
-
Content filter configuration.
-
Recipient filter configuration.
-
Address rewrite entries.
-
Attachment filter entries.
Validating the Configuration
The target server is an Exchange 2007 server that has a clean installation of the Edge Transport server role. Run the ImportEdgeConfig.ps1 script on the target server to validate the existing information in the intermediate XML file and to create the answer file. The answer file specifies the server-specific information that is used during the next step in the cloned configuration process when you import the configuration on the target server. The answer file contains entries for each source server setting that is not valid for the target server. You can modify these settings so that they are valid for the target server. If all settings are valid, the answer file contains no entries. The intermediate XML file can be used for different target servers. The answer file is specific to a target server.
The ImportEdgeConfig.ps1 script performs the following tasks during this step:
-
The script verifies that the data paths and log paths can be created on the target server. If the paths cannot be created, a blank path is inserted into the answer file.
-
For each Send connector in the XML file, the script adds a blank entry for the source IP address in the answer file.
-
For each Receive connector in the XML file, the script adds a blank entry for the local network bindings in the answer file.
You must manually modify the answer file to provide the following information about server-specific settings:
-
Fill in the data paths and log paths. If these paths are left blank in the answer file, the paths that are configured in the intermediate XML file are used in the next step when you import the configuration on the target server.
-
For each Send connector entry, fill in the source IP address. If this field is left blank, an error occurs in the import configuration step.
-
For each Receive connector entry, fill in the local network bindings. If the local network bindings are left blank, an error occurs in the next step when you import the configuration on the target server.
Importing the Configuration
Perform this step on any target server to clone the configuration of an existing Edge Transport server or to restore the server to a specific configuration. Run the ImportEdgeConfig.ps1 script to validate and import the new configuration. After you run this script, the target server’s configuration matches the settings in the intermediate XML file and the answer file.
Important: |
|---|
|
It is a best practice to back up the existing server configuration before you run the import configuration process, so that if the cloning operation fails, the server can be restored to the previous stable state.
|
This step uses the server-specific information that is provided in the answer file. If a setting is not specified in the answer file, the data in the intermediate XML file is used. Before the script modifies the configuration, the script validates the data in the intermediate XML file and the answer file.
The following configuration settings of the target server are modified during the import configuration step:
-
Transport agent configuration.
-
The existing connectors on the target server are removed, and the connectors that are present in the intermediate XML file are added.
-
The existing accepted domains are removed, and the accepted domain entries in the intermediate XML file are added.
-
The existing remote domains are removed, and the remote domain entries in the intermediate XML file are added.
-
The existing IP Allow list entries are removed, and the IP Allow list entries in the intermediate remote domains file are added.
-
The existing IP Block list entries are removed, and the IP Block list entries in the intermediate remote domains file are added.
-
The following anti-spam configuration is cloned to the target server:
-
Content filter configuration
-
Recipient filter configuration
-
Address rewrite entries
-
Attachment filter entries