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
Fields
Section titled “Fields”maxAttachmentSize
Section titled “maxAttachmentSize”Type:
Size· default:50000000· min: 1Specifies the maximum size for an email attachment
maxMessageSize
Section titled “maxMessageSize”Type:
Size· default:75000000· min: 1Determines the maximum size for an email message
maxMailboxDepth
Section titled “maxMailboxDepth”Type:
UnsignedInt· default:10· min: 1Restricts the maximum depth of nested mailboxes a user can create
maxMailboxNameLength
Section titled “maxMailboxNameLength”Type:
UnsignedInt· default:255· min: 1Establishes the maximum length of a mailbox name
encryptOnAppend
Section titled “encryptOnAppend”Type:
Boolean· default:falseEncrypt messages that are manually appended by the user using JMAP or IMAP
encryptAtRest
Section titled “encryptAtRest”Type:
Boolean· default:trueAllow users to configure encryption at rest for their data
compressionAlgorithm
Section titled “compressionAlgorithm”Type:
CompressionAlgo· default:"lz4"Algorithm to use to compress e-mail data
defaultFolders
Section titled “defaultFolders”Type:
Map<SpecialUse,EmailFolder>Default special-use folders to create for new users
maxMessages
Section titled “maxMessages”Type:
UnsignedInt?· min: 1The default maximum number of emails a user can create
maxSubmissions
Section titled “maxSubmissions”Type:
UnsignedInt?· default:500· min: 1The default maximum number of email submissions a user can create
maxIdentities
Section titled “maxIdentities”Type:
UnsignedInt?· default:20· min: 1The default maximum number of identities a user can create
maxMailboxes
Section titled “maxMailboxes”Type:
UnsignedInt?· default:250· min: 1The default maximum number of mailboxes a user can create
maxMaskedAddresses
Section titled “maxMaskedAddresses”Type:
UnsignedInt?· enterprise · default:5· min: 1The default maximum number of masked email addresses a user can create
maxPublicKeys
Section titled “maxPublicKeys”Type:
UnsignedInt?· default:5· min: 1The default maximum number of encryption-at-rest public keys a user can create
JMAP API
Section titled “JMAP API”The Email singleton is available via the urn:stalwart:jmap capability.
x:Email/get
Section titled “x:Email/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 sysEmailGet permission.
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" ] }'x:Email/set
Section titled “x:Email/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 sysEmailUpdate permission.
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.
stalwart-cli get EmailUpdate
Section titled “Update”stalwart-cli update Email --field maxAttachmentSize=50000000Nested types
Section titled “Nested types”EmailFolder
Section titled “EmailFolder”Defines a default email folder configuration.
Type:
String· requiredDefault name for the folder
create
Section titled “create”Type:
Boolean· default:trueWhether to create the folder automatically
subscribe
Section titled “subscribe”Type:
Boolean· default:trueWhether to subscribe to the folder automatically
aliases
Section titled “aliases”Type:
String[]List of folder aliases
CompressionAlgo
Section titled “CompressionAlgo”| Value | Label |
|---|---|
lz4 | LZ4 |
none | None |
SpecialUse
Section titled “SpecialUse”| Value | Label |
|---|---|
inbox | Inbox |
trash | Trash |
junk | Junk |
drafts | Drafts |
archive | Archive |
sent | Sent |
shared | Shared Folders |
important | Important |
memos | Memos |
scheduled | Scheduled |
snoozed | Snoozed |