diff options
-rw-r--r-- | conf/modules.d/whitelist.conf | 1 | ||||
-rw-r--r-- | src/plugins/lua/whitelist.lua | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/conf/modules.d/whitelist.conf b/conf/modules.d/whitelist.conf index 13013ff53..f1d1ab56a 100644 --- a/conf/modules.d/whitelist.conf +++ b/conf/modules.d/whitelist.conf @@ -39,7 +39,6 @@ whitelist { description = "Mail comes from the whitelisted domain and has valid SPF and DKIM policies"; } "WHITELIST_DMARC" = { - valid_dkim = true; valid_dmarc = true; domains = "${CONFDIR}/dmarc_whitelist.inc"; score = -7.0; diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index 31fd6251b..202d85465 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -95,7 +95,7 @@ local function whitelist_cb(symbol, rule, task) local dkim_opts = sym[1]['options'] if dkim_opts then - each(function(i, val) + each(function(val) if not found then local tld = rspamd_util.get_tld(val) |