received = ts.boolean:is_optional(),
replyto = ts.boolean:is_optional(),
requests_limit = (ts.integer + ts.string / tonumber):is_optional(),
+ require_symbols = (
+ ts.array_of(ts.string) + (ts.string / function(s) return {s} end)
+ ):is_optional(),
resolve_ip = ts.boolean:is_optional(),
return_bits = return_bits_schema:is_optional(),
return_codes = return_codes_schema:is_optional(),
rspamd_config:register_dependency(rbl.symbol, 'DKIM_CHECK')
end
+ if rbl.require_symbols then
+ for _,dep in ipairs(rbl.require_symbols) do
+ rspamd_config:register_dependency(rbl.symbol, dep)
+ end
+ end
+
-- Failure symbol
rspamd_config:register_symbol{
type = 'virtual',