Skip to content

MtaSts

Configures the MTA-STS policy for the server.

This object can be configured from the WebUI under Settings › MTA › Inbound › MTA-STS

Type: Duration · default: "7d"

Maximum time to cache the MTA-STS policy

Type: PolicyEnforcement · default: "testing"

Whether to enforce, test, or disable the MTA-STS policy

Type: String[]

Override the allowed MX hosts for the MTA-STS policy domain. If empty, the MX hosts are determined from the system settings

The MtaSts 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 sysMtaStsGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaSts/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 sysMtaStsUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaSts/set",
{
"update": {
"singleton": {
"maxAge": "7d"
}
}
},
"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 MtaSts
Terminal window
stalwart-cli update MtaSts --field maxAge=7d
ValueLabel
enforceEnforce
testingTesting
disableDisabled