From: Andrew Lewis Date: Fri, 7 Feb 2014 08:20:02 +0000 (+0200) Subject: Remove dated configuration example & add another missing option registration X-Git-Tag: 0.6.9~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5599cf4b84ce3ec53da544d5807dc63ca9cd789e;p=thirdparty%2Frspamd.git Remove dated configuration example & add another missing option registration --- diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index b40278f551..bf043e19e5 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