Skip to content

SpamPyzor

Configures the Pyzor collaborative spam detection service.

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

Type: UnsignedInt · default: 5 · max: 1000 · min: 1

The number of times the hash appears in the Pyzor blocklist

Type: Boolean · default: true

Whether to enable the Pyzor classifier. Pyzor is a collaborative, networked system to detect and report spam.

Type: String · default: "public.pyzor.org"

The hostname of the Pyzor server

Type: UnsignedInt · default: 24441 · max: 65535 · min: 100

The port to connect to the Pyzor server

Type: Float · default: 0.2 · max: 1 · min: 0

The ratio of the number of times the hash appears in the Pyzor allowlist to the blocklist

Type: Duration · default: "5s"

The timeout for the Pyzor server. If the server does not respond within this time, the check is considered failed.

Type: UnsignedInt · default: 10 · max: 1000 · min: 1

The number of times the hash appears in the Pyzor allowlist

The SpamPyzor 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 sysSpamPyzorGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SpamPyzor/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 sysSpamPyzorUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:SpamPyzor/set",
{
"update": {
"singleton": {
"host": "updated value"
}
}
},
"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 SpamPyzor
Terminal window
stalwart-cli update SpamPyzor --field host='updated value'