Skip to content

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

Type: Boolean · default: false

Whether the Exchange protocol endpoints and Exchange Autodiscover are served

Type: EwsVersion · default: "exchange2016"

Exchange Web Services version advertised to clients in the server version information

Type: Size · default: 52428800

Maximum size of an Exchange request that the server will accept

Type: UnsignedInt · default: 16 · min: 1 · max: 1024

Maximum number of Exchange ActiveSync devices an account may register

Type: Duration · default: 3540000 · min: 60000 · max: 3540000

Longest 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)

Type: Size · default: 262144 · min: 1024

Maximum size of the Exchange-only properties stored for a single object, such as extended properties set by Outlook

The Exchange singleton is available via the urn:stalwart:jmap capability.

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.

Terminal window
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"
]
}'

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.

Terminal window
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.

Terminal window
stalwart-cli get Exchange
Terminal window
stalwart-cli update Exchange --field enable=false
ValueLabel
exchange2010Sp2Exchange 2010 SP2
exchange2013Exchange 2013
exchange2013Sp1Exchange 2013 SP1
exchange2016Exchange 2016