summaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/greylist.lua
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/lua/greylist.lua')
-rw-r--r--src/plugins/lua/greylist.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/lua/greylist.lua b/src/plugins/lua/greylist.lua
index 76d95acb2..32338f7d5 100644
--- a/src/plugins/lua/greylist.lua
+++ b/src/plugins/lua/greylist.lua
@@ -284,7 +284,7 @@ local function greylist_set(task)
-- Third and second level domains whitelist
if not is_whitelisted and whitelist_domains_map then
local hostname = task:get_hostname()
- if hostname and hostname ~= 'unknown' then
+ if hostname then
local domain = rspamd_util.get_tld(hostname)
if whitelist_domains_map:get_key(hostname) or (domain and whitelist_domains_map:get_key(domain)) then
is_whitelisted = 'meta'