Exchange
Configures the Exchange protocols: Exchange Web Services (EWS), Exchange ActiveSync (EAS), MAPI over HTTP and Exchange Autodiscover.
This object can be configured from the WebUI under Settings › Network › Exchange
Fields
Section titled “Fields”enable
Section titled “enable”Type:
Boolean· default:falseWhether the Exchange protocol endpoints and Exchange Autodiscover are served
ewsVersion
Section titled “ewsVersion”Type:
EwsVersion· default:"exchange2016"Exchange Web Services version advertised to clients in the server version information
maxRequestSize
Section titled “maxRequestSize”Type:
Size· default:52428800Maximum size of an Exchange request that the server will accept
maxDevices
Section titled “maxDevices”Type:
UnsignedInt· default:16· min: 1 · max: 1024Maximum number of Exchange ActiveSync devices an account may register
maxHeartbeat
Section titled “maxHeartbeat”Type:
Duration· default:3540000· min: 60000 · max: 3540000Longest time a client may wait for changes in a single request: the Exchange ActiveSync Ping and Sync heartbeat, the EWS streaming subscription connection and the MAPI over HTTP NotificationWait (which never waits longer than 5 minutes)
maxObjectSize
Section titled “maxObjectSize”Type:
Size· default:262144· min: 1024Maximum size of the Exchange-only properties stored for a single object, such as extended properties set by Outlook
JMAP API
Section titled “JMAP API”The Exchange singleton is available via the urn:stalwart:jmap capability.
x:Exchange/get
Section titled “x:Exchange/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
For singletons, the ids argument should be the literal singleton (or null to return the single instance).
This method requires the sysExchangeGet permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:Exchange/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:Exchange/set
Section titled “x:Exchange/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.
This method requires the sysExchangeUpdate permission.
curl -X POST https://mail.example.com/jmap/ \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:Exchange/set", { "update": { "singleton": { "enable": false } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get ExchangeUpdate
Section titled “Update”stalwart-cli update Exchange --field enable=falseEwsVersion
Section titled “EwsVersion”| Value | Label |
|---|---|
exchange2010Sp2 | Exchange 2010 SP2 |
exchange2013 | Exchange 2013 |
exchange2013Sp1 | Exchange 2013 SP1 |
exchange2016 | Exchange 2016 |