Skip to content

MtaQueueQuota

Defines a quota rule for message queues.

This object can be configured from the WebUI under Settings › MTA › Rates & Quotas › Queue Quotas

Type: Boolean · default: true

Whether to enable this quota

Type: String? · read-only

Short description for the quota

Type: MtaQueueQuotaKey[] · min items: 1

Optional list of context variables that determine where this quota should be applied

Type: Expression · required

Enable the imposition of concurrency and rate limits only when a specific condition is met

Available variables: MtaQueueHostVariable.

Type: UnsignedInt? · min: 1

Maximum number of messages in the queue that this quota will allow

Type: Size?

Maximum total size of messages in the queue that this quota will allow

The MtaQueueQuota object is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

This method requires the sysMtaQueueQuotaGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaQueueQuota/get",
{
"ids": [
"id1"
]
},
"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.

Supports create, update, and destroy operations in a single call.

This operation requires the sysMtaQueueQuotaCreate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaQueueQuota/set",
{
"create": {
"new1": {
"key": {},
"match": {
"else": "Example",
"match": {}
}
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysMtaQueueQuotaUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaQueueQuota/set",
{
"update": {
"id1": {
"enable": true
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This operation requires the sysMtaQueueQuotaDestroy permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaQueueQuota/set",
{
"destroy": [
"id1"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/query method as defined in RFC 8620, Section 5.5.

This method requires the sysMtaQueueQuotaQuery permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:MtaQueueQuota/query",
{
"filter": {}
},
"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 MtaQueueQuota id1
Terminal window
stalwart-cli create MtaQueueQuota \
--field 'key={}' \
--field 'match={"else":"Example","match":{}}'
Terminal window
stalwart-cli query MtaQueueQuota
Terminal window
stalwart-cli update MtaQueueQuota id1 --field enable=true
Terminal window
stalwart-cli delete MtaQueueQuota --ids id1

A conditional expression with match rules and a default value.

Type: ExpressionMatch[]

List of conditions and their corresponding results

Type: String · required

Else condition

A single condition-result pair in an expression.

Type: String · required

If condition

Type: String · required

Then clause

ValueLabel
senderSender
senderDomainSender Domain
rcptRecipient
rcptDomainRecipient Domain

The following expression contexts are used by fields on this page: