Skip to content

SpamDnsblSettings

Configures DNSBL query limits for spam filtering.

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

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for domain names

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for E-mail addresses

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for IP addresses

Type: UnsignedInt · default: 50 · min: 1

Maximum number of DNSBL checks for URLs

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

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.

Terminal window
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"
]
}'

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.

Terminal window
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"
]
}'

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

Terminal window
stalwart-cli get SpamDnsblSettings
Terminal window
stalwart-cli update SpamDnsblSettings --field domainLimit=50