From e94bf87b4fb3213b554de495642cea028ebad31c Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Fri, 11 Nov 2016 08:27:18 +0200 Subject: [PATCH] [Minor] Fix selective greylisting --- src/plugins/lua/greylist.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index 9610f81d8..c31e48927 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -275,8 +275,10 @@ local function greylist_set(task) end local action = task:get_metric_action('default') - if action == 'no action' or action == 'reject' then - if not do_greylisting_required or do_greylisting_required ~= "1" then return end + if do_greylisting_required then + if do_greylisting_required ~= "1" then return end + else + if action == 'no action' or action == 'reject' then return end end local body_key = data_key(task) local meta_key = envelope_key(task) -- 2.39.5