Action
Defines server management actions such as reloads, troubleshooting and cache operations.
This object can be configured from the WebUI under Management › Actions
Fields
Section titled “Fields”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.
@type: "ReloadSettings"
Section titled “@type: "ReloadSettings"”Reload: Server settings
warnings
Section titled “warnings”Type:
Set<String>· server-setWarnings reported while building the new configuration, such as licence problems
@type: "ReloadTlsCertificates"
Section titled “@type: "ReloadTlsCertificates"”Reload: TLS certificates
@type: "ReloadLookupStores"
Section titled “@type: "ReloadLookupStores"”Reload: Lookup stores
@type: "ReloadBlockedIps"
Section titled “@type: "ReloadBlockedIps"”Reload: Blocked IPs list
@type: "UpdateApps"
Section titled “@type: "UpdateApps"”Application Management: Update applications
@type: "TroubleshootDmarc"
Section titled “@type: "TroubleshootDmarc"”DMARC: Troubleshooting
remoteIp
Section titled “remoteIp”Type:
IpAddr· requiredRemote IP address of the SMTP client
ehloDomain
Section titled “ehloDomain”Type:
String· requiredEHLO domain provided by the SMTP client
mailFrom
Section titled “mailFrom”Type:
EmailAddress· requiredMAIL FROM address provided by the SMTP client
rcptTo
Section titled “rcptTo”Type:
Set<EmailAddress>RCPT TO addresses provided by the SMTP client, used for DKIM2 envelope verification
message
Section titled “message”Type:
Text?Body of the email message used for DMARC troubleshooting, if applicable
spfEhloDomain
Section titled “spfEhloDomain”Type:
String· requiredDomain used for SPF check based on EHLO domain
spfEhloResult
Section titled “spfEhloResult”Type:
DmarcTroubleshootAuthResult· server-set · default:{"@type":"Pass"}Result of the SPF check based on EHLO domain
spfMailFromDomain
Section titled “spfMailFromDomain”Type:
String· requiredDomain used for SPF check based on MAIL FROM address
spfMailFromResult
Section titled “spfMailFromResult”Type:
DmarcTroubleshootAuthResult· server-set · default:{"@type":"Pass"}Result of the SPF check based on MAIL FROM address
ipRevResult
Section titled “ipRevResult”Type:
DmarcTroubleshootAuthResult· server-set · default:{"@type":"Pass"}Result of the reverse DNS check for the remote IP address
ipRevPtr
Section titled “ipRevPtr”Type:
Set<String>· server-setPTR records returned by the reverse DNS lookup for the remote IP address
dkimResults
Section titled “dkimResults”Type:
List<DmarcTroubleshootAuthResult>· server-setResults of the DKIM signature verification checks
dkimPass
Section titled “dkimPass”Type:
Boolean· server-set · default:falseWhether the DKIM checks passed
dkim2Result
Section titled “dkim2Result”Type:
DmarcTroubleshootAuthResult· server-set · default:{"@type":"Pass"}Result of the DKIM2 signature chain verification
dkim2Pass
Section titled “dkim2Pass”Type:
Boolean· server-set · default:falseWhether the DKIM2 checks passed
arcResult
Section titled “arcResult”Type:
DmarcTroubleshootAuthResult· server-set · default:{"@type":"Pass"}Result of the ARC validation check
dmarcResult
Section titled “dmarcResult”Type:
DmarcTroubleshootAuthResult· server-set · default:{"@type":"Pass"}Result of the DMARC check
dmarcPass
Section titled “dmarcPass”Type:
Boolean· server-set · default:falseWhether the DMARC check passed
dmarcPolicy
Section titled “dmarcPolicy”Type:
DmarcDisposition· server-setDMARC policy applied to the email message
elapsed
Section titled “elapsed”Type:
Duration· server-set · default:0Time taken to perform the DMARC troubleshooting
@type: "ClassifySpam"
Section titled “@type: "ClassifySpam"”Spam Filter: Classify a message
message
Section titled “message”Type:
Text· requiredRaw email message to classify for spam
remoteIp
Section titled “remoteIp”Type:
IpAddr· requiredRemote IP address of the SMTP client
ehloDomain
Section titled “ehloDomain”Type:
String· requiredEHLO domain provided by the SMTP client
authenticatedAs
Section titled “authenticatedAs”Type:
String?Authentication identity of the SMTP client, if authenticated
Type:
Boolean· default:trueWhether the SMTP connection is secured with TLS
mailFrom
Section titled “mailFrom”Type:
EmailAddress· requiredMAIL FROM address provided by the SMTP client
mailFromParameters
Section titled “mailFromParameters”Type:
SpamClassifyParameters?Parameters related to the MAIL FROM address
rcptTo
Section titled “rcptTo”Type:
Set<EmailAddress>List of RCPT TO addresses provided by the SMTP client
Type:
Float· server-set · default:0Spam score for the classified message
Type:
Map<String,SpamClassifyTag>· server-setList of tags contributing to the spam classification of the message
result
Section titled “result”Type:
SpamClassifyResult· server-setOverall spam classification result for the message
aiGate
Section titled “aiGate”Type:
String?· server-set · enterpriseOutcome of the AI classifier gate: “run” when the classifier was queried, otherwise the reason it was skipped
aiFacts
Section titled “aiFacts”Type:
Text?· server-set · enterpriseMessage facts sent to the AI classifier, as JSON
aiVerdict
Section titled “aiVerdict”Type:
String?· server-set · enterpriseVerdict of the AI classifier in the format of the X-Spam-AI header
@type: "InvalidateCaches"
Section titled “@type: "InvalidateCaches"”Cache: Invalidate all caches
@type: "InvalidateNegativeCaches"
Section titled “@type: "InvalidateNegativeCaches"”Cache: Invalidate negative caches
@type: "PauseMtaQueue"
Section titled “@type: "PauseMtaQueue"”MTA: Pause queue processing
@type: "ResumeMtaQueue"
Section titled “@type: "ResumeMtaQueue"”MTA: Resume queue processing
JMAP API
Section titled “JMAP API”The Action object is available via the urn:stalwart:jmap capability.
x:Action/set
Section titled “x:Action/set”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.
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.
Create
Section titled “Create”stalwart-cli create Action/ReloadSettingsNested types
Section titled “Nested types”DmarcTroubleshootAuthResult
Section titled “DmarcTroubleshootAuthResult”Authentication check result for DMARC troubleshooting.
Pass: Pass. No additional fields.Fail: Fail. Carries the fields ofDmarcTroubleshootDetails.SoftFail: SoftFail. Carries the fields ofDmarcTroubleshootDetails.TempError: TempError. Carries the fields ofDmarcTroubleshootDetails.PermError: PermError. Carries the fields ofDmarcTroubleshootDetails.Neutral: Neutral. Carries the fields ofDmarcTroubleshootDetails.None: None. No additional fields.
DmarcTroubleshootDetails
Section titled “DmarcTroubleshootDetails”Details for a failed authentication check.
details
Section titled “details”Type:
String?· server-setAuthentication result details
SpamClassifyTag
Section titled “SpamClassifyTag”A tag and score contributing to spam classification.
Type:
Float· server-set · default:0Score associated with the tag
disposition
Section titled “disposition”Type:
SpamClassifyTagDisposition· server-setDisposition associated with the tag
DmarcDisposition
Section titled “DmarcDisposition”| Value | Label |
|---|---|
none | No specific action requested |
quarantine | Treat failing messages as suspicious |
reject | Reject failing messages |
unspecified | Disposition not specified |
SpamClassifyParameters
Section titled “SpamClassifyParameters”| Value | Label |
|---|---|
bit7 | 7-bit message content |
bit8Mime - 8-bit MIME message content | bit8Mime - 8-bit MIME message content |
binaryMime | Binary MIME message content |
smtpUtf8 | UTF-8 message content |
SpamClassifyTagDisposition
Section titled “SpamClassifyTagDisposition”| Value | Label |
|---|---|
score | Assign the tag’s score to the overall spam score |
reject | Reject the message |
discard | Discard the message |
SpamClassifyResult
Section titled “SpamClassifyResult”| Value | Label |
|---|---|
spam | Classify as spam |
ham | Classify as non-spam (ham) |
reject | Reject message |
discard | Discard message |