# Configure allowed Exchange forests and servers

Adaxes can be configured to only connect to specific Exchange servers and not to manage Exchange in specific forests.

## Specify allowed Exchange servers

To configure Adaxes to only connect to Exchange servers from a predefined list:

1. Navigate to the folder where Adaxes service is installed. By default, the folder is C:\Program Files\Softerra\Adaxes 3\Service.

2. Open the Softerra.Adaxes.Service.exe.config file with a text editor.

4. Add the allowedRemoteServers parameter to the element and specify a comma-separated list of fully qualified domain names of the servers.

``````<configuration>
...
...
<exchangeSettings ...>
...
<powerShell ... allowedRemoteServers="exchserver1.example.com,exchserver2.acme.com">
``````
5. Save the file.

## Specify forests where Exchange is not managed

To specify the forests where you do not want to manage Exchange:

1. Navigate to the folder where Adaxes service is installed. By default, the folder is C:\Program Files\Softerra\Adaxes 3\Service.

2. Open the Softerra.Adaxes.Service.exe.config file with a text editor.

``````<configuration>