> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xorlab.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Pages under /latest/ document the current release. Paths that begin with a version number, for example /10.0/, are frozen snapshots of superseded releases kept for reference only — never present their instructions as current. If the reader's version is unknown, answer from /latest/ and say which version the answer describes.
> xorlab is deployed on-premises, hybrid, or as a cloud service, and integrates with either Microsoft 365 or on-premises mail infrastructure. Configuration steps often differ between these. State which deployment and integration mode an instruction applies to instead of presenting one as universal.
> Distinguish inline mode from monitoring mode when describing anything that acts on email. Monitoring mode observes a copy and cannot block or quarantine; inline mode routes mail through xorlab and can.
> Write the product name as lowercase 'xorlab'. Use the documented component names: xorlab Control Center (XCC), xorlab MTA, xorlab Sandbox (DANA), xorlab Natural Language Understanding (NLU). After the first mention, use the short forms XCC, MTA, Sandbox, and NLU. Do not use DANA as a standalone name for the Sandbox, but keep it where it is a literal string in configuration keys, container names, and hostnames.
> Do not invent configuration keys, rule parameters, list names, log properties, or API fields. If a value is not present in this documentation, say that it is not documented rather than guessing.

# Enable Exchange Inline

> Place xorlab in the Exchange delivery path using receive and send connectors, so it can block and quarantine.

This applies to on-premises Microsoft Exchange 2016 or 2019.

<Warning>
  **Prerequisites**

  * Complete [Before You Begin](/latest/before-begin-integration) and [Set Up Email Routing in xorlab](/latest/on-prem-smtp)
</Warning>

* For incoming emails, you must extend the receive connectors to accept emails from xorlab Security Platform.
* For outgoing emails, you must add a new send connector pointing to xorlab Security Platform.

## Setting up the receive connector

To extend the default receive connector to accept emails from xorlab:

1. Open Exchange Admin Center.

2. Under **Mail Flow** → **receive connectors**, select your Exchange server and edit the connector starting with **Default Frontend…**.

3. In the dialog, go to **Scoping** and, for each xorlab MTA in your setup, add its IP address as a new entry to **Remote network settings**.

   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/latest/assets/exchange-scoping.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=db57d14dba712f798dc85698ff43c869" alt="Scope of IP addresses" width="998" height="849" data-path="latest/assets/exchange-scoping.png" />

4. Click **Save**.

## Adding a new send connector

To route all outgoing emails through xorlab Security Platform:

1. Go to Exchange Admin Center.

2. Under **Mail Flow** → **send connectors**, add a new connector.

3. Enter a name and choose **Custom**.

   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/latest/assets/exchange-send-custom.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=239fb41736dd83044e9b19ecf166bfaf" alt="Custom send connector" width="1017" height="873" data-path="latest/assets/exchange-send-custom.png" />

4. Click **Next**.

5. Choose the **Route email through smart hosts** option and add the domain names of all xorlab MTAs in your setup (the domain names—with DNS A records—corresponding to the IPs that you configured in **Setting up the receive connector**) as smart hosts.

6. Tick the checkbox to use external DNS lookup settings.

   <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/latest/assets/exchange-send-hosts.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=a8fff72642b3026e1e7ce43563636851" alt="Smart hosts for send connector" width="1014" height="879" data-path="latest/assets/exchange-send-hosts.png" />

7. Click **Next**.

8. Leave the smart host authentication to **None**. TLS between xorlab and the Exchange server is enforced by xorlab (for incoming and outgoing emails).

9. Click **Next**.

10. Under **Address space**, add a new space and enter `*` as a domain. Click **Next**.

    <img src="https://mintcdn.com/xorlab/O_O2TUa6eRBR54aI/latest/assets/exchange-send-space.png?fit=max&auto=format&n=O_O2TUa6eRBR54aI&q=85&s=92d93d9bb6e2066a5c655f67e60cea25" alt="Address space for email routing" width="1013" height="878" data-path="latest/assets/exchange-send-space.png" />

11. Add your Exchange server as a source. Click **Finish**.

## Next steps

* [Add Your Trusted Infrastructure](/latest/on-prem-add-trusted-mtas)
