[BUG] RBL checks images fails with invalid config #5304
Closed
Description
Prerequisites
- [ X] Put an X between the brackets on this line if you have done all of the following:
- Read about bug reporting in general: https://rspamd.com/doc/faq.html#how-to-report-bugs-found-in-rspamd
- Enabled relevant debugging logs: https://rspamd.com/doc/faq.html#how-to-debug-some-module-in-rspamd
- Checked the FAQs about Core files in case of fatal crash: https://rspamd.com/doc/faq.html#how-to-figure-out-why-rspamd-process-crashed
- Tried ASAN package and obtained the ASAN report (if possible): https://rspamd.com/doc/faq.html#asan-builds
- Checked that your issue isn't already filed: https://github.com/issues?utf8=%E2%9C%93&q=is%3Aissue+user%3Arspamd
- Checked that there is not already an experimental package or master branch
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
Labels
No labels