]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Support HELO blacklist and fix options registration for RDNS blacklist
authorAndrew Lewis <nerf@judo.za.org>
Fri, 31 Jan 2014 08:48:49 +0000 (10:48 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 1 Feb 2014 17:32:24 +0000 (09:32 -0800)
Conflicts:
src/plugins/lua/rbl.lua

src/plugins/lua/rbl.lua

index ac3074fbd4bad9f79e507cfd385aa0be66c7f8b2..b40278f5515b2f8badbe72f33132f2243bde765b 100644 (file)
@@ -125,6 +125,8 @@ if type(rspamd_config.get_api_version) ~= 'nil' then
                rspamd_config:register_module_option('rbl', 'default_ipv6', 'string')
                rspamd_config:register_module_option('rbl', 'default_received', 'string')
                rspamd_config:register_module_option('rbl', 'default_from', 'string')
+               rspamd_config:register_module_option('rbl', 'default_rdns', 'string')
+               rspamd_config:register_module_option('rbl', 'default_helo', 'string')
        end
 end
 
@@ -151,8 +153,11 @@ end
 if(opts['default_rdns'] == nil) then
         opts['default_rdns'] = false
 end
+if(opts['default_helo'] == nil) then
+        opts['default_helo'] = false
+end
 for key,rbl in pairs(opts['rbls']) do
-       local o = { "ipv4", "ipv6", "from", "received", "unknown", "rdns" }
+       local o = { "ipv4", "ipv6", "from", "received", "unknown", "rdns", "helo" }
        for i=1,table.maxn(o) do
                if(rbl[o[i]] == nil) then
                        rbl[o[i]] = opts['default_' .. o[i]]