From: Andrey Igoshin Date: Sun, 24 Jun 2018 11:24:35 +0000 (+0300) Subject: support for non-TLD domains X-Git-Tag: 1.7.7~20^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2307%2Fhead;p=thirdparty%2Frspamd.git support for non-TLD domains --- diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index 7637bb5553..69c37c5dcd 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -135,6 +135,9 @@ local function whitelist_cb(symbol, rule, task) if tld then found, mult = find_domain(tld) + if not found then + found, mult = find_domain(val) + end end end end, dkim_opts)