Skip to content

Action

Defines server management actions such as reloads, troubleshooting and cache operations.

This object can be configured from the WebUI under Management › Actions

Action is a multi-variant object: each instance has an @type discriminator selecting one of the variants below, and each variant carries its own set of fields.

Reload: Server settings

Type: Set<String> · server-set

Warnings reported while building the new configuration, such as licence problems

Reload: TLS certificates

Reload: Lookup stores

Reload: Blocked IPs list

Application Management: Update applications

DMARC: Troubleshooting

Type: IpAddr · required

Remote IP address of the SMTP client

Type: String · required

EHLO domain provided by the SMTP client

Type: EmailAddress · required

MAIL FROM address provided by the SMTP client

Type: Set<EmailAddress>

RCPT TO addresses provided by the SMTP client, used for DKIM2 envelope verification

Type: Text?

Body of the email message used for DMARC troubleshooting, if applicable

Type: String · required

Domain used for SPF check based on EHLO domain

Type: DmarcTroubleshootAuthResult · server-set · default: {"@type":"Pass"}

Result of the SPF check based on EHLO domain

Type: String · required

Domain used for SPF check based on MAIL FROM address

Type: DmarcTroubleshootAuthResult · server-set · default: {"@type":"Pass"}

Result of the SPF check based on MAIL FROM address

Type: DmarcTroubleshootAuthResult · server-set · default: {"@type":"Pass"}

Result of the reverse DNS check for the remote IP address

Type: Set<String> · server-set

PTR records returned by the reverse DNS lookup for the remote IP address

Type: List<DmarcTroubleshootAuthResult> · server-set

Results of the DKIM signature verification checks

Type: Boolean · server-set · default: false

Whether the DKIM checks passed

Type: DmarcTroubleshootAuthResult · server-set · default: {"@type":"Pass"}

Result of the DKIM2 signature chain verification

Type: Boolean · server-set · default: false

Whether the DKIM2 checks passed

Type: DmarcTroubleshootAuthResult · server-set · default: {"@type":"Pass"}

Result of the ARC validation check

Type: DmarcTroubleshootAuthResult · server-set · default: {"@type":"Pass"}

Result of the DMARC check

Type: Boolean · server-set · default: false

Whether the DMARC check passed

Type: DmarcDisposition · server-set

DMARC policy applied to the email message

Type: Duration · server-set · default: 0

Time taken to perform the DMARC troubleshooting

Spam Filter: Classify a message

Type: Text · required

Raw email message to classify for spam

Type: IpAddr · required

Remote IP address of the SMTP client

Type: String · required

EHLO domain provided by the SMTP client

Type: String?

Authentication identity of the SMTP client, if authenticated

Type: Boolean · default: true

Whether the SMTP connection is secured with TLS

Type: EmailAddress · required

MAIL FROM address provided by the SMTP client

Type: SpamClassifyParameters?

Parameters related to the MAIL FROM address

Type: Set<EmailAddress>

List of RCPT TO addresses provided by the SMTP client

Type: Float · server-set · default: 0

Spam score for the classified message

Type: Map<String, SpamClassifyTag> · server-set

List of tags contributing to the spam classification of the message

Type: SpamClassifyResult · server-set

Overall spam classification result for the message

Type: String? · server-set · enterprise

Outcome of the AI classifier gate: “run” when the classifier was queried, otherwise the reason it was skipped

Type: Text? · server-set · enterprise

Message facts sent to the AI classifier, as JSON

Type: String? · server-set · enterprise

Verdict of the AI classifier in the format of the X-Spam-AI header

Cache: Invalidate all caches

Cache: Invalidate negative caches

MTA: Pause queue processing

MTA: Resume queue processing

The Action object is available via the urn:stalwart:jmap capability.

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

Supports the create operation only.

This method requires the sysActionCreate permission.

Terminal window
curl -X POST https://mail.example.com/jmap/ \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Action/set",
{
"create": {
"new1": {
"@type": "ReloadSettings"
}
}
},
"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 create Action/ReloadSettings

Authentication check result for DMARC troubleshooting.

Details for a failed authentication check.

Type: String? · server-set

Authentication result details

A tag and score contributing to spam classification.

Type: Float · server-set · default: 0

Score associated with the tag

Type: SpamClassifyTagDisposition · server-set

Disposition associated with the tag

ValueLabel
noneNo specific action requested
quarantineTreat failing messages as suspicious
rejectReject failing messages
unspecifiedDisposition not specified
ValueLabel
bit77-bit message content
bit8Mime - 8-bit MIME message contentbit8Mime - 8-bit MIME message content
binaryMimeBinary MIME message content
smtpUtf8UTF-8 message content
ValueLabel
scoreAssign the tag’s score to the overall spam score
rejectReject the message
discardDiscard the message
ValueLabel
spamClassify as spam
hamClassify as non-spam (ham)
rejectReject message
discardDiscard message