Old version: FROM <one@test.vov.ru> realy check "vov.ru"
New version: FROM <one@test.vov.ru> realy check "test.vov.ru"
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