AccountSettings
AccountSettings
Section titled “AccountSettings”Configures default account settings for locale and encryption.
This object can be configured from the WebUI under Account › Settings
Fields
Section titled “Fields”description
Section titled “description”Type:
String?Description of the account
locale
Section titled “locale”Type:
Locale· default:"en_US"Preferred locale for the account
timeZone
Section titled “timeZone”Type:
TimeZone?Preferred time zone for the account
encryptionAtRest
Section titled “encryptionAtRest”Type:
EncryptionAtRest· requiredEncryption-at-rest settings for the account
JMAP API
Section titled “JMAP API”The AccountSettings singleton is available via the urn:stalwart:jmap capability.
x:AccountSettings/get
Section titled “x:AccountSettings/get”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 sysAccountSettingsGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:AccountSettings/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:AccountSettings/set
Section titled “x:AccountSettings/set”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 sysAccountSettingsUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:AccountSettings/set", { "update": { "singleton": { "description": "updated value" } } }, "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 AccountSettingsUpdate
Section titled “Update”stalwart-cli update AccountSettings --field description='updated value'Nested types
Section titled “Nested types”EncryptionAtRest
Section titled “EncryptionAtRest”Encryption-at-rest algorithm selection.
Disabled: Disabled. No additional fields.Aes128: AES-128. Carries the fields ofEncryptionSettings.Aes256: AES-256. Carries the fields ofEncryptionSettings.
EncryptionSettings
Section titled “EncryptionSettings”Encryption-at-rest settings for an account.
publicKey
Section titled “publicKey”Type:
Id<PublicKey>· requiredPublic key used for encrypting emails
encryptOnAppend
Section titled “encryptOnAppend”Type:
Boolean· default:falseWhether to encrypt emails when they are appended to mailboxes
allowSpamTraining
Section titled “allowSpamTraining”Type:
Boolean· default:falseWhether to allow training the spam classifier with plaintext emails before encryption