diff options
-rw-r--r-- | src/plugins/lua/greylist.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua index a3905ddec..8f584b76c 100644 --- a/src/plugins/lua/greylist.lua +++ b/src/plugins/lua/greylist.lua @@ -126,6 +126,10 @@ local function check_time(task, tm, type) end local function greylist_check(task) + if task:get_user() ~= nil then + return + end + local body_key = data_key(task) local meta_key = envelope_key(task) local hash_key = body_key .. meta_key @@ -204,6 +208,10 @@ local function greylist_check(task) end local function greylist_set(task) + if task:get_user() ~= nil then + return + end + local is_whitelisted = task:get_mempool():get_variable("grey_whitelisted") local do_greylisting = task:get_mempool():get_variable("grey_greylisted") |