diff options
author | AL <AlexeySa@users.noreply.github.com> | 2016-10-25 14:05:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-25 14:05:50 +0300 |
commit | 1719feacffeec853a1ab3d4cfcfaf3f335d53b49 (patch) | |
tree | 4d52d0d1800ae6259d9126ad76be35814f249e1f | |
parent | c95a6f83eb0aea3ea2f88150e0c1a732f1fef82d (diff) | |
download | rspamd-1719feacffeec853a1ab3d4cfcfaf3f335d53b49.tar.gz rspamd-1719feacffeec853a1ab3d4cfcfaf3f335d53b49.zip |
Update mx_check.lua
-rw-r--r-- | src/plugins/lua/mx_check.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 51b302937..39ba95b0b 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 |