From e1953731d1886a6bbba8733d2afe0fd219560885 Mon Sep 17 00:00:00 2001 From: Alexander Moisseev Date: Sun, 18 Sep 2016 11:02:44 +0300 Subject: [PATCH] [Fix] Skip MX check for authenticated users and local networks --- src/plugins/lua/mx_check.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 002ff46ab..0a41632f6 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -32,6 +32,11 @@ local settings = { local redis_params local function mx_check(task) + local ip_addr = task:get_ip() + if task:get_user() or (ip_addr and ip_addr:is_local()) then + return + end + local from = task:get_from('smtp') local mx_domain -- 2.39.5