TlsExternalReport
TlsExternalReport
Section titled “TlsExternalReport”Stores a TLS aggregate report received from an external source.
This object can be configured from the WebUI under Management › Reports › Inbox › TLS
Fields
Section titled “Fields”report
Section titled “report”Type:
TlsReport· requiredTLS report content
Type:
EmailAddress· requiredEmail address of the report sender
subject
Section titled “subject”Type:
String· requiredSubject line of the report email
Type:
EmailAddress[]List of recipient email addresses
receivedAt
Section titled “receivedAt”Type:
UTCDateTime· requiredWhen the report email was received
expiresAt
Section titled “expiresAt”Type:
UTCDateTime· requiredWhen the report is scheduled to be deleted
memberTenantId
Section titled “memberTenantId”Type:
Id<Tenant>?· enterpriseIdentifier for the tenant this report belongs to
JMAP API
Section titled “JMAP API”The TlsExternalReport object is available via the urn:stalwart:jmap capability.
x:TlsExternalReport/get
Section titled “x:TlsExternalReport/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysTlsExternalReportGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:TlsExternalReport/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:TlsExternalReport/set
Section titled “x:TlsExternalReport/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 sysTlsExternalReportCreate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:TlsExternalReport/set", { "create": { "new1": { "expiresAt": "2026-01-01T00:00:00Z", "from": "[email protected]", "receivedAt": "2026-01-01T00:00:00Z", "report": { "dateRangeEnd": "2026-01-01T00:00:00Z", "dateRangeStart": "2026-01-01T00:00:00Z", "policies": {}, "reportId": "Example" }, "subject": "Example", "to": {} } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Update
Section titled “Update”This operation requires the sysTlsExternalReportUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:TlsExternalReport/set", { "update": { "id1": { "subject": "updated value" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Destroy
Section titled “Destroy”This operation requires the sysTlsExternalReportDestroy permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:TlsExternalReport/set", { "destroy": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:TlsExternalReport/query
Section titled “x:TlsExternalReport/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysTlsExternalReportQuery permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:TlsExternalReport/query", { "filter": {} }, "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 TlsExternalReport id1Create
Section titled “Create”stalwart-cli create TlsExternalReport \ --field 'report={"dateRangeEnd":"2026-01-01T00:00:00Z","dateRangeStart":"2026-01-01T00:00:00Z","policies":{},"reportId":"Example"}' \ --field subject=Example \ --field 'to={}' \ --field receivedAt=2026-01-01T00:00:00Z \ --field expiresAt=2026-01-01T00:00:00Zstalwart-cli query TlsExternalReportUpdate
Section titled “Update”stalwart-cli update TlsExternalReport id1 --field subject='updated value'Delete
Section titled “Delete”stalwart-cli delete TlsExternalReport --ids id1Nested types
Section titled “Nested types”TlsReport
Section titled “TlsReport”Content of a TLS aggregate report.
organizationName
Section titled “organizationName”Type:
String?Name of the organization that generated the report
contactInfo
Section titled “contactInfo”Type:
String?Contact information for the reporting organization
reportId
Section titled “reportId”Type:
String· requiredUnique identifier for this report
dateRangeStart
Section titled “dateRangeStart”Type:
UTCDateTime· requiredStart of the reporting period
dateRangeEnd
Section titled “dateRangeEnd”Type:
UTCDateTime· requiredEnd of the reporting period
policies
Section titled “policies”Type:
TlsReportPolicy[]Policy evaluation results for each domain
TlsReportPolicy
Section titled “TlsReportPolicy”TLS policy evaluation result for a specific domain.
policyType
Section titled “policyType”Type:
TlsPolicyType· requiredType of TLS policy that was evaluated
policyStrings
Section titled “policyStrings”Type:
String[]Raw policy strings as retrieved
policyDomain
Section titled “policyDomain”Type:
DomainName· requiredDomain the policy applies to
mxHosts
Section titled “mxHosts”Type:
String[]MX hostnames covered by the policy
totalSuccessfulSessions
Section titled “totalSuccessfulSessions”Type:
UnsignedInt· default:0Number of sessions that successfully established TLS
totalFailedSessions
Section titled “totalFailedSessions”Type:
UnsignedInt· default:0Number of sessions that failed TLS establishment
failureDetails
Section titled “failureDetails”Type:
TlsFailureDetails[]Details of TLS failures encountered
TlsFailureDetails
Section titled “TlsFailureDetails”Details of a TLS failure encountered during delivery.
resultType
Section titled “resultType”Type:
TlsResultType· requiredType of failure encountered
sendingMtaIp
Section titled “sendingMtaIp”Type:
IpAddr?IP address of the sending mail server
receivingMxHostname
Section titled “receivingMxHostname”Type:
String?Hostname of the receiving mail server
receivingMxHelo
Section titled “receivingMxHelo”Type:
String?HELO/EHLO string of the receiving mail server
receivingIp
Section titled “receivingIp”Type:
IpAddr?IP address of the receiving mail server
failedSessionCount
Section titled “failedSessionCount”Type:
UnsignedInt· default:0Number of sessions that failed with this error
additionalInformation
Section titled “additionalInformation”Type:
String?Additional context about the failure
failureReasonCode
Section titled “failureReasonCode”Type:
String?Error code or reason string for the failure
TlsPolicyType
Section titled “TlsPolicyType”| Value | Label |
|---|---|
tlsa | DANE TLSA policy |
sts | MTA-STS policy |
noPolicyFound | No TLS policy was found for the domain |
other | Other or unrecognized policy type |
TlsResultType
Section titled “TlsResultType”| Value | Label |
|---|---|
startTlsNotSupported | Remote server does not support STARTTLS |
certificateHostMismatch | Certificate hostname does not match server |
certificateExpired | Certificate has expired |
certificateNotTrusted | Certificate is not trusted |
validationFailure | General certificate validation failure |
tlsaInvalid | DANE TLSA record is invalid |
dnssecInvalid | DNSSEC validation failed |
daneRequired | DANE is required but not available |
stsPolicyFetchError | Failed to fetch MTA-STS policy |
stsPolicyInvalid | MTA-STS policy is invalid |
stsWebpkiInvalid | MTA-STS WebPKI validation failed |
other | Other or unrecognized failure type |