From 1719feacffeec853a1ab3d4cfcfaf3f335d53b49 Mon Sep 17 00:00:00 2001 From: AL Date: Tue, 25 Oct 2016 14:05:50 +0300 Subject: [PATCH] Update mx_check.lua --- src/plugins/lua/mx_check.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 51b3029379..39ba95b0b5 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -43,11 +43,11 @@ local function mx_check(task) if from and from[1] and from[1]['domain'] and not from[2] then mx_domain = from[1]['domain'] else - mx_domain = rspamd_util.get_tld(task:get_helo()) - end + mx_domain = task:get_helo() - if not mx_domain then - return + if mx_domain then + mx_domain = rspamd_util.get_tld(mx_domain) + end end local valid = false -- 2.47.3