If set to false, do not yield a result unless the response received from the RBL is defined in its related returncodes {} subsection, else return the default symbol for the RBL.
-- default_user (true)
+- default_exclude_users (false)
-If set to false, do not use this RBL if the message sender is authenticated.
+If set to true, do not use this RBL if the message sender is authenticated.
RBL-specific subsection is structured as follows:
for k,rbl in pairs(rbls) do
(function()
- if rbl['user'] == false then
+ if rbl['exclude_users'] then
if not havegot['user'] and not notgot['user'] then
havegot['user'] = task:get_user()
if havegot['user'] == nil then
rspamd_config:register_module_option('rbl', 'default_rdns', 'string')
rspamd_config:register_module_option('rbl', 'default_helo', 'string')
rspamd_config:register_module_option('rbl', 'default_unknown', 'string')
- rspamd_config:register_module_option('rbl', 'default_user', 'string')
+ rspamd_config:register_module_option('rbl', 'default_exclude_users', 'string')
end
end
if(opts['default_helo'] == nil) then
opts['default_helo'] = false
end
-if(opts['default_user'] == nil) then
- opts['default_user'] = true
+if(opts['default_exclude_users'] == nil) then
+ opts['default_exclude_users'] = false
end
for key,rbl in pairs(opts['rbls']) do
- local o = { "ipv4", "ipv6", "from", "received", "unknown", "rdns", "helo", "user" }
+ local o = { "ipv4", "ipv6", "from", "received", "unknown", "rdns", "helo", "exclude_users" }
for i=1,table.maxn(o) do
if(rbl[o[i]] == nil) then
rbl[o[i]] = opts['default_' .. o[i]]