From: Vsevolod Stakhov Date: Sat, 17 Sep 2016 17:28:59 +0000 (+0100) Subject: [Minor] Use HELO when SMTP from is empty X-Git-Tag: 1.4.0~414 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad5b6f45a6f9bf59e0a8ad47173c2d987fa74864;p=thirdparty%2Frspamd.git [Minor] Use HELO when SMTP from is empty --- diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 07eae027cc..637dfaec7d 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -37,6 +37,12 @@ local function mx_check(task) if from and from[1] and from[1]['domain'] and not from[2] then mx_domain = rspamd_util.get_tld(from[1]['domain']) + else + mx_domain = task:get_helo() + + if mx_domain then + mx_domain = rspamd_util.get_tld(mx_domain) + end end if not mx_domain then