Skip to content

Email

Configures email message limits, encryption, compression, and default folder settings.

This object can be configured from the WebUI under Settings › Email › Defaults Settings › Email › Encryption Settings › Email › Limits Settings › Email › Storage

Type: Size · default: 50000000 · min: 1

Specifies the maximum size for an email attachment

Type: Size · default: 75000000 · min: 1

Determines the maximum size for an email message

Type: UnsignedInt · default: 10 · min: 1

Restricts the maximum depth of nested mailboxes a user can create

Type: UnsignedInt · default: 255 · min: 1

Establishes the maximum length of a mailbox name

Type: Boolean · default: false

Encrypt messages that are manually appended by the user using JMAP or IMAP

Type: Boolean · default: true

Allow users to configure encryption at rest for their data

Type: CompressionAlgo · default: "lz4"

Algorithm to use to compress e-mail data

Type: Map<SpecialUse, EmailFolder>

Default special-use folders to create for new users

Type: UnsignedInt? · min: 1

The default maximum number of emails a user can create

Type: UnsignedInt? · default: 500 · min: 1

The default maximum number of email submissions a user can create

Type: UnsignedInt? · default: 20 · min: 1

The default maximum number of identities a user can create

Type: UnsignedInt? · default: 250 · min: 1

The default maximum number of mailboxes a user can create

Type: UnsignedInt? · enterprise · default: 5 · min: 1

The default maximum number of masked email addresses a user can create

Type: UnsignedInt? · default: 5 · min: 1

The default maximum number of encryption-at-rest public keys a user can create

The Email 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 sysEmailGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Email/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 sysEmailUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:Email/set",
{
"update": {
"singleton": {
"maxAttachmentSize": 50000000
}
}
},
"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 Email
Terminal window
stalwart-cli update Email --field maxAttachmentSize=50000000

Defines a default email folder configuration.

Type: String · required

Default name for the folder

Type: Boolean · default: true

Whether to create the folder automatically

Type: Boolean · default: true

Whether to subscribe to the folder automatically

Type: String[]

List of folder aliases

ValueLabel
lz4LZ4
noneNone
ValueLabel
inboxInbox
trashTrash
junkJunk
draftsDrafts
archiveArchive
sentSent
sharedShared Folders
importantImportant
memosMemos
scheduledScheduled
snoozedSnoozed