Skip to content

AccountSettings

Configures default account settings for locale and encryption.

This object can be configured from the WebUI under Account › Settings

Type: String?

Description of the account

Type: Locale · default: "en_US"

Preferred locale for the account

Type: TimeZone?

Preferred time zone for the account

Type: EncryptionAtRest · required

Encryption-at-rest settings for the account

The AccountSettings singleton is available via the urn:stalwart:jmap capability.

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.

Terminal window
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"
]
}'

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.

Terminal window
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.

Terminal window
stalwart-cli get AccountSettings
Terminal window
stalwart-cli update AccountSettings --field description='updated value'

Encryption-at-rest algorithm selection.

Encryption-at-rest settings for an account.

Type: Id<PublicKey> · required

Public key used for encrypting emails

Type: Boolean · default: false

Whether to encrypt emails when they are appended to mailboxes

Type: Boolean · default: false

Whether to allow training the spam classifier with plaintext emails before encryption