diff options
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/lua/mx_check.lua | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 896e702a8..51b302937 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -40,15 +40,10 @@ local function mx_check(task) local from = task:get_from('smtp') local mx_domain - if from and from[1] and from[1]['domain'] and not from[2] then - mx_domain = rspamd_util.get_tld(from[1]['domain']) + mx_domain = from[1]['domain'] else - mx_domain = task:get_helo() - - if mx_domain then - mx_domain = rspamd_util.get_tld(mx_domain) - end + mx_domain = rspamd_util.get_tld(task:get_helo()) end if not mx_domain then |