> For the complete documentation index, see [llms.txt](https://help.nightfall.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.nightfall.ai/microsoft-exchange/getting_started/installing-microsoft-exchange/create-connectors.md).

# Create Connectors

Microsoft Exchange uses connectors to manage inbound and outbound email flow. You must create an outbound connector that defines the Nightfall server to which emails must be redirected for scanning, and an inbound connector that defines how to identify emails scanned and routed to Exchange by Nightfall.

## Create Outbound Connector

1. Navigate to the **Exchange admin center** page from your Exchange account. &#x20;
2. Expand **Mail flow** and select **Connectors**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfUfwVjmYZAza24drOlcDekE_Q7_n8V87eWMcDRW_qIWlMa3LdGghdYDqLXGsMs1nQ9rfunW7ap7Z_foGUwZBmeFedrIpQi_2Fg2ODRYOi4GxdBm6G0zcp09X5fm1_9rnvaBXuUBQ?key=gXxqXq4O-toSF3b-7YIbPg" alt="" width="563"><figcaption></figcaption></figure>

3. Click **Add a Connector**.
4. Select **Office 365** in the Connection from section.
5. Select **Partner Organization** in the **Connection to** section.
6. Click **Next**.

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdhhdetxpwpWWlnEPnyX_URrID1N167InL2XxRKrMwk2CyaDOvIlkgBu3rhAZJYeKljqLFoQ00HmxHGBLvu8H29agICDq2FZR0cDgQ_D7UGC1aVTZPrBidgofOiheXeTq8j_azjFA?key=gXxqXq4O-toSF3b-7YIbPg" alt="" width="563"><figcaption></figcaption></figure>

7. Enter a name for the connector.&#x20;
8. (Optional) Enter a description for the connector.&#x20;
9. Ensure that the **Turn it on** check box is selected.&#x20;
10. Select the **Only when I have a transport rule set up that redirects messages to this connector** radio option.
11. Click **Next**.
12. Select the **Route email through these smart hosts** option.
13. Enter the following host domain and click **+** to add it.

```html
2r2xfv8u7uz5.fips.qbns.mail-manager-smtp.amazonaws.com
```

14. Click **Next**.&#x20;
15. &#x20;Do not modify security settings. Click **Next**. &#x20;
16. &#x20;Enter <m365-exchangeonline@nightfall.ai> as the validation Email and click **Validate**.&#x20;
17. Click **Next** once the validation is successful.
18. Click **Create Connector**.

## Create Inbound Connector

1. Click **Add a Connector**.
2. Select **Your organization's email serve**r in the **Connection from** section.
3. Click Next.
4. Enter a name for the connector.&#x20;
5. (Optional) Enter a description for the connector.&#x20;
6. Ensure that the **Turn it on** and the **Retain internal Exchange email headers** check boxes are selected.&#x20;
7. Select the **Authenticate using domain-based authentication.**&#x20;
8. **Login to the Nightfall console and copy the domain in step 2**&#x20;
   1. Domain `emaildlp.nightfall.ai`
9. Click **Next**.&#x20;
10. Click **Create Connector**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.nightfall.ai/microsoft-exchange/getting_started/installing-microsoft-exchange/create-connectors.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
