Skip to content

[BUG] RBL checks images fails with invalid config #5304

Closed
@japc

Description

Prerequisites

Describe the bug

Although documented as a possible check type for RBLs 'images' makes the RBL fail with:

invalid config for some_rbl: field "checks": array item 2: expected "emails", "replyto", "selector", "content_urls", "helo", "urls", "dkim", "rdns", "from", "received", or "numeric_urls", RBL is DISABLED

Steps to Reproduce

Configuration

some_rbl {
   ...
    checks = ['images'];
   ...
}

Will fail with

invalid config for some_rbl: field "checks\": array item 2: expected "emails", "replyto", "selector", "content_urls", "helo", "urls", "dkim", "rdns", "from", "received", or "numeric_urls", RBL is DISABLED

and not enable the RBL.

Expected behavior

Don't fail with checks = ['images'].

Versions

Rspamd daemon version 3.11.0

CPU architecture x86_64; features: avx2, avx, sse2, sse3, ssse3, sse4.1, sse4.2, rdrand
Hyperscan enabled: TRUE
Jemalloc enabled: TRUE
LuaJIT enabled: TRUE (LuaJIT version: LuaJIT 2.1.1725453128)
ASAN enabled: FALSE
BLAS enabled: FALSE
Fasttext enabled: FALSE

Additional Information

Any additional information, configuration or data that might be necessary to reproduce the issue.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions