MtaTlsStrategy
MtaTlsStrategy
Section titled “MtaTlsStrategy”Defines a TLS security strategy for outbound connections.
This object can be configured from the WebUI under Settings › MTA › Outbound › TLS Strategies
Fields
Section titled “Fields”Type:
String· read-onlyShort identifier for the TLS strategy
allowInvalidCerts
Section titled “allowInvalidCerts”Type:
Boolean· default:falseWhether to allow connections to servers with invalid TLS certificates
Type:
MtaRequiredOrOptional· default:"optional"Whether DANE is required, optional, or disabled
description
Section titled “description”Type:
String?A short description of the TLS strategy, which can be used to identify it in the list of strategies
mtaSts
Section titled “mtaSts”Type:
MtaRequiredOrOptional· default:"optional"Whether MTA-STS is required, optional, or disabled
startTls
Section titled “startTls”Type:
MtaRequiredOrOptional· default:"optional"Whether TLS support is required, optional, or disabled
mtaStsTimeout
Section titled “mtaStsTimeout”Type:
Duration· default:"5m"Maximum time to wait for the MTA-STS policy lookup to complete
tlsTimeout
Section titled “tlsTimeout”Type:
Duration· default:"3m"Maximum time to wait for the TLS handshake to complete
JMAP API
Section titled “JMAP API”The MtaTlsStrategy object is available via the urn:stalwart:jmap capability.
x:MtaTlsStrategy/get
Section titled “x:MtaTlsStrategy/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysMtaTlsStrategyGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaTlsStrategy/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:MtaTlsStrategy/set
Section titled “x:MtaTlsStrategy/set”This is a standard Foo/set method as defined in RFC 8620, Section 5.3.
Supports create, update, and destroy operations in a single call.
Create
Section titled “Create”This operation requires the sysMtaTlsStrategyCreate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaTlsStrategy/set", { "create": { "new1": {} } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Update
Section titled “Update”This operation requires the sysMtaTlsStrategyUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaTlsStrategy/set", { "update": { "id1": { "description": "updated value" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Destroy
Section titled “Destroy”This operation requires the sysMtaTlsStrategyDestroy permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaTlsStrategy/set", { "destroy": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:MtaTlsStrategy/query
Section titled “x:MtaTlsStrategy/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysMtaTlsStrategyQuery permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaTlsStrategy/query", { "filter": { "name": "example" } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'The x:MtaTlsStrategy/query filter argument accepts the following conditions (combinable with AnyOf / AllOf / Not per RFC 8620):
| Condition | Kind |
|---|---|
name | text |
stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get MtaTlsStrategy id1Create
Section titled “Create”stalwart-cli create MtaTlsStrategystalwart-cli query MtaTlsStrategystalwart-cli query MtaTlsStrategy --where name=exampleUpdate
Section titled “Update”stalwart-cli update MtaTlsStrategy id1 --field description='updated value'Delete
Section titled “Delete”stalwart-cli delete MtaTlsStrategy --ids id1MtaRequiredOrOptional
Section titled “MtaRequiredOrOptional”| Value | Label |
|---|---|
optional | Optional |
require | Required |
disable | Disabled |