Exchange Server
Who can do this: repository admins, and the Exchange and Active Directory administrators.
The Exchange Server connector reads shared mailboxes of Exchange Server 2016, 2019 or Subscription Edition through the agent, with Exchange Web Services. Available on Pro and Scale. It reads only the mailboxes listed on the agent and granted to its service account; what it never reads is as for Exchange Online.
| Plan | Pro and Scale |
| Reads | Mail in the shared mailboxes of Exchange Server 2016, 2019 or Subscription Edition that are on the agent’s list and granted to its service account |
| Does not read | Mailboxes not on the agent’s list; personal, room and equipment mailboxes; meeting requests, read receipts and calendar items; system folders |
| Reaches it through | The agent on a domain-joined Windows server, with Exchange Web Services and Windows authentication; no password in ContentSurface |
| Limits | A message moved to another folder appears as a new item and loses its access override |
Limits common to every connector — indexed text per document, file size for extraction, OCR — are in Connectors.
Before you start
Section titled “Before you start”-
A service account in your domain; install and enroll the agent on a domain-joined Windows server, running as that account. No password is stored in ContentSurface.
-
Make sure the mailboxes are shared mailboxes, and grant the service account FullAccess to each, without automapping.
-
Enable Windows authentication on the EWS virtual directory.
-
In the agent’s configuration file, enable the Exchange plugin:
"Plugins": {"exchange": {"Enabled": true,"EwsUrl": "https://mail.contoso.com/EWS/Exchange.asmx","AllowedMailboxes": [ "support@contoso.com" ]}}AllowedMailboxesis the boundary: no other mailbox can be read, whatever is granted. For a self-signed server certificate, setPinnedCertificateThumbprint; better, use a certificate the machine trusts. -
Run the agent’s preflight on the machine.
Steps in the Portal
Section titled “Steps in the Portal”
- Connections → New connection → Exchange Server, on-premises. No settings and no consent: everything is on the agent.
- Under Agents, add the agent; it must report the
exchangeplugin. - Check: it names the cause of a failure — authentication, certificate, unreachable, not configured, or the directory unreadable.
- New mount point: a mailbox, or a folder in it.
- Mount it, preview, and activate.
Changes are picked up every few minutes. A message moved between folders appears as a new item in its new folder.
In the API
The Portal does this through these calls; an integration can make them directly.
| Operation | Call |
|---|---|
| Creates a connection; its connector type and source location are fixed. | POST /v1/admin/connections |
| Adds and removes the agents an on-prem connection uses; an added agent must be enrolled and report the connector's plugin. The answer names the mount points each added agent covers. | PATCH /v1/admin/connections/{id}/agents |
| Tests reachability and authentication of the source. | POST /v1/admin/connections/{id}/check |
| Where browsing starts: the connector's source roots. | GET /v1/admin/connections/{id}/source-roots |
| The child containers of a source location, for choosing a mount point. | GET /v1/admin/connections/{id}/browse |
| Validates a location through the connector and creates a mount point on it. | POST /v1/admin/connections/{id}/mount-points |