MtaVirtualQueue
MtaVirtualQueue
Section titled “MtaVirtualQueue”Defines a virtual queue for organizing outbound message delivery.
This object can be configured from the WebUI under Settings › MTA › Outbound › Virtual Queues
Fields
Section titled “Fields”Type:
String· read-only · max length: 8Unique identifier for the queue, max 8 characters
description
Section titled “description”Type:
String?A short description of the queue, which can be used to identify it in the list of queues
threadsPerNode
Section titled “threadsPerNode”Type:
UnsignedInt· default:25· min: 1Maximum number of threads to use for delivery on each node in the cluster
JMAP API
Section titled “JMAP API”The MtaVirtualQueue object is available via the urn:stalwart:jmap capability.
x:MtaVirtualQueue/get
Section titled “x:MtaVirtualQueue/get”This is a standard Foo/get method as defined in RFC 8620, Section 5.1.
This method requires the sysMtaVirtualQueueGet permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaVirtualQueue/get", { "ids": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:MtaVirtualQueue/set
Section titled “x:MtaVirtualQueue/set”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.
Create
Section titled “Create”This operation requires the sysMtaVirtualQueueCreate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaVirtualQueue/set", { "create": { "new1": {} } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Update
Section titled “Update”This operation requires the sysMtaVirtualQueueUpdate permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaVirtualQueue/set", { "update": { "id1": { "description": "updated value" } } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'Destroy
Section titled “Destroy”This operation requires the sysMtaVirtualQueueDestroy permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaVirtualQueue/set", { "destroy": [ "id1" ] }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'x:MtaVirtualQueue/query
Section titled “x:MtaVirtualQueue/query”This is a standard Foo/query method as defined in RFC 8620, Section 5.5.
This method requires the sysMtaVirtualQueueQuery permission.
curl -X POST https://mail.example.com/api \ -H 'Authorization: Bearer $TOKEN' \ -H 'Content-Type: application/json' \ -d '{ "methodCalls": [ [ "x:MtaVirtualQueue/query", { "filter": { "name": "example" } }, "c1" ] ], "using": [ "urn:ietf:params:jmap:core", "urn:stalwart:jmap" ] }'The x:MtaVirtualQueue/query filter argument accepts the following conditions (combinable with AnyOf / AllOf / Not per RFC 8620):
| Condition | Kind |
|---|---|
name | text |
stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get MtaVirtualQueue id1Create
Section titled “Create”stalwart-cli create MtaVirtualQueuestalwart-cli query MtaVirtualQueuestalwart-cli query MtaVirtualQueue --where name=exampleUpdate
Section titled “Update”stalwart-cli update MtaVirtualQueue id1 --field description='updated value'Delete
Section titled “Delete”stalwart-cli delete MtaVirtualQueue --ids id1