aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2014-02-07 10:20:02 +0200
committerAndrew Lewis <nerf@judo.za.org>2014-02-07 10:20:02 +0200
commit55285dfcf2a5e5bbc10208cf2421f100adadf668 (patch)
tree529881df30b708fc338724e76390ea26708bafc5 /src
parent5affd62368a66e2a20c93eb5caf6934791deb4b8 (diff)
downloadrspamd-55285dfcf2a5e5bbc10208cf2421f100adadf668.tar.gz
rspamd-55285dfcf2a5e5bbc10208cf2421f100adadf668.zip
Remove dated configuration example & add another missing option registration
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/rbl.lua24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua
index b40278f55..bf043e19e 100644
--- a/src/plugins/lua/rbl.lua
+++ b/src/plugins/lua/rbl.lua
@@ -1,26 +1,3 @@
--- Configuration:
--- rbl {
--- default_ipv4 = true;
--- default_ipv6 = false;
--- default_received = true;
--- default_from = false;
--- rbls {
--- spamhaus {
--- rbl = "zen.spamhaus.org";
--- ipv4 = true;
--- ipv6 = false;
--- unknown = false;
--- returncodes {
--- RBL_ZEN_SBL = "127.0.0.2";
--- RBL_ZEN_SBL = "127.0.0.3";
--- RBL_ZEN_XBL = "127.0.0.4";
--- RBL_ZEN_PBL = "127.0.0.10";
--- RBL_ZEN_PBL = "127.0.0.11";
--- }
--- }
--- }
--- }
-
local rbls = {}
local function ip_to_rbl(ip, rbl)
@@ -127,6 +104,7 @@ if type(rspamd_config.get_api_version) ~= 'nil' then
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')
+ rspamd_config:register_module_option('rbl', 'default_unknown', 'string')
end
end