Cache
Configures in-memory cache sizes for data, DNS records, and authorization tokens.
This object can be configured from the WebUI under Settings › Storage › Cache
Fields
Section titled “Fields”accessTokens
Section titled “accessTokens”Type:
Size· default:"10mb"· min: 2048Maximum size of the access tokens cache
contacts
Section titled “contacts”Type:
Size· default:"10mb"· min: 2048Maximum size of the address books and contacts cache
dnsIpv4
Section titled “dnsIpv4”Type:
Size· default:"5mb"· min: 2048Maximum size of the IPv4 record cache
dnsIpv6
Section titled “dnsIpv6”Type:
Size· default:"5mb"· min: 2048Maximum size of the IPv6 record cache
dnsMtaSts
Section titled “dnsMtaSts”Type:
Size· default:"1mb"· min: 2048Maximum size of the MTA-STS record cache
Type:
Size· default:"5mb"· min: 2048Maximum size of the MX record cache
dnsPtr
Section titled “dnsPtr”Type:
Size· default:"1mb"· min: 2048Maximum size of the PTR record cache
dnsRbl
Section titled “dnsRbl”Type:
Size· default:"5mb"· min: 2048Maximum size of the DNSBl record cache
dnsTlsa
Section titled “dnsTlsa”Type:
Size· default:"1mb"· min: 2048Maximum size of the TLSA record cache
dnsTxt
Section titled “dnsTxt”Type:
Size· default:"5mb"· min: 2048Maximum size of the TXT record cache
events
Section titled “events”Type:
Size· default:"10mb"· min: 2048Maximum size of the calendar and events cache
scheduling
Section titled “scheduling”Type:
Size· default:"1mb"· min: 2048Maximum size of the scheduling cache
Type:
Size· default:"10mb"· min: 2048Maximum size of the file storage data cache
httpAuth
Section titled “httpAuth”Type:
Size· default:"1mb"· min: 2048Maximum size of the HTTP authorization headers cache
messages
Section titled “messages”Type:
Size· default:"50mb"· min: 2048Maximum size of the e-mail data cache
domains
Section titled “domains”Type:
Size· default:"5mb"· min: 2048Maximum size of the domains cache
domainNames
Section titled “domainNames”Type:
Size· default:"10mb"· min: 2048Maximum size of the domain name lookup cache
domainNamesNegative
Section titled “domainNamesNegative”Type:
Size· default:"1mb"· min: 2048Maximum size of the domain name lookup negative cache
emailAddresses
Section titled “emailAddresses”Type:
Size· default:"10mb"· min: 2048Maximum size of the email addresses lookup cache
emailAddressesNegative
Section titled “emailAddressesNegative”Type:
Size· default:"2mb"· min: 2048Maximum size of the email addresses lookup negative cache
accounts
Section titled “accounts”Type:
Size· default:"20mb"· min: 2048Maximum size of the accounts cache
Type:
Size· default:"5mb"· min: 2048Maximum size of the roles cache
tenants
Section titled “tenants”Type:
Size· default:"5mb"· min: 2048Maximum size of the tenants cache
mailingLists
Section titled “mailingLists”Type:
Size· default:"2mb"· min: 2048Maximum size of the mailing lists cache
dkimSignatures
Section titled “dkimSignatures”Type:
Size· default:"10mb"· min: 2048Maximum size of the DKIM signatures cache
negativeTtl
Section titled “negativeTtl”Type:
Duration· default:"1h"Time-to-live for domain and account name lookup negative cache entries
JMAP API
Section titled “JMAP API”The Cache singleton is available via the urn:stalwart:jmap capability.
x:Cache/get
Section titled “x:Cache/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 sysCacheGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:Cache/get", { "ids": [ "singleton" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:Cache/set
Section titled “x:Cache/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 sysCacheUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:Cache/set", { "update": { "singleton": { "accessTokens": "10mb" } } }, "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 CacheUpdate
Section titled “Update”stalwart-cli update Cache --field accessTokens=10mb