Skip to main content
Version: 0.16

SpamDnsblSettings

Configures DNSBL query limits for spam filtering.

This object can be configured from the WebUI under Settings › Spam Filter › DNSBL › Settings

Fields

domainLimit

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for domain names

emailLimit

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for E-mail addresses

ipLimit

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for IP addresses

urlLimit

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for URLs

JMAP API

The SpamDnsblSettings singleton is available via the urn:stalwart:jmap capability.

x:SpamDnsblSettings/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 sysSpamDnsblSettingsGet permission.

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

x:SpamDnsblSettings/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 sysSpamDnsblSettingsUpdate permission.

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

CLI

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Fetch

stalwart-cli get spam-dnsbl-settings

Update

stalwart-cli update spam-dnsbl-settings --field description='Updated'