SpamDnsblSettings
SpamDnsblSettings
Section titled “SpamDnsblSettings”Configures DNSBL query limits for spam filtering.
This object can be configured from the WebUI under Settings › Spam Filter › DNSBL › Settings
Fields
Section titled “Fields”domainLimit
Section titled “domainLimit”Type:
UnsignedInt· default:50· min: 1Maximum number of DNSBL checks for domain names
emailLimit
Section titled “emailLimit”Type:
UnsignedInt· default:50· min: 1Maximum number of DNSBL checks for E-mail addresses
ipLimit
Section titled “ipLimit”Type:
UnsignedInt· default:50· min: 1Maximum number of DNSBL checks for IP addresses
urlLimit
Section titled “urlLimit”Type:
UnsignedInt· default:50· min: 1Maximum number of DNSBL checks for URLs
JMAP API
Section titled “JMAP API”The SpamDnsblSettings singleton is available via the urn:stalwart:jmap capability.
x:SpamDnsblSettings/get
Section titled “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
Section titled “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" ] }'stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.
stalwart-cli get SpamDnsblSettingsUpdate
Section titled “Update”stalwart-cli update SpamDnsblSettings --field domainLimit=50