diff options
Diffstat (limited to 'src/plugins/lua/rbl.lua')
-rw-r--r-- | src/plugins/lua/rbl.lua | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/plugins/lua/rbl.lua b/src/plugins/lua/rbl.lua index 13d18d4fc..d46e0a33d 100644 --- a/src/plugins/lua/rbl.lua +++ b/src/plugins/lua/rbl.lua @@ -7,7 +7,6 @@ -- rbls { -- spamhaus { -- rbl = "zen.spamhaus.org"; --- symbol = "RBL_ZEN"; -- ipv4 = true; -- ipv6 = false; -- unknown = false; @@ -147,7 +146,7 @@ for key,rbl in pairs(opts['rbls']) do end end end - if not rbl['symbol'] then + if not rbl['symbol'] and type(rbl['returncodes']) ~= 'nil' and not rbl['unknown'] then rbl['symbol'] = key end if type(rspamd_config.get_api_version) ~= 'nil' then |