else
logger.errx(rspamd_config, 'cannot load sign condition %s: %s', v, f)
end
+ elseif k == 'whitelisted_signers_map' then
+ settings[k] = lua_maps.map_add(N, k, 'set', 'ARC trusted signers domains')
else
settings[k] = v
end
groups = {'arc'},
})
-if settings.whitelisted_signers_map then
- local lua_maps = require "lua_maps"
- settings.whitelisted_signers_map = lua_maps.map_add_from_ucl(settings.whitelisted_signers_map,
- 'set',
- 'ARC trusted signers domains')
- if settings.whitelisted_signers_map then
- arc_symbols.trusted_allow = arc_symbols.trusted_allow or 'ARC_ALLOW_TRUSTED'
- rspamd_config:register_symbol({
- name = arc_symbols.trusted_allow,
- parent = id,
- type = 'virtual',
- score = -2.0,
- group = 'policies',
- groups = {'arc'},
- })
- end
-end
-
rspamd_config:register_dependency('ARC_CALLBACK', 'SPF_CHECK')
rspamd_config:register_dependency('ARC_CALLBACK', 'DKIM_CHECK')
sym_reg_tbl.forbidden_ids = settings.forbidden_ids
end
+if settings.whitelisted_signers_map then
+ arc_symbols.trusted_allow = arc_symbols.trusted_allow or 'ARC_ALLOW_TRUSTED'
+ rspamd_config:register_symbol({
+ name = arc_symbols.trusted_allow,
+ parent = id,
+ type = 'virtual',
+ score = -2.0,
+ group = 'policies',
+ groups = {'arc'},
+ })
+end
+
rspamd_config:register_symbol(sym_reg_tbl)
-- Do not sign unless checked