From: Andrew Lewis Date: Wed, 29 Nov 2023 12:32:06 +0000 (+0200) Subject: [Fix] dkim_signing: siging_table: lowercase before lookup X-Git-Tag: 3.7.5~1^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F4737%2Fhead;p=rspamd.git [Fix] dkim_signing: siging_table: lowercase before lookup --- diff --git a/lualib/lua_dkim_tools.lua b/lualib/lua_dkim_tools.lua index 1f396fbc4..165ea8f56 100644 --- a/lualib/lua_dkim_tools.lua +++ b/lualib/lua_dkim_tools.lua @@ -268,7 +268,7 @@ local function prepare_dkim_signing(N, task, settings) 'signing_table: cannot get data when no header from is presented') return false, {} end - local sign_entry = settings.signing_table:get_key(hfrom[1].addr) + local sign_entry = settings.signing_table:get_key(hfrom[1].addr:lower()) if sign_entry then -- Check opendkim style entries diff --git a/test/functional/messages/dmarc/fail_none.eml b/test/functional/messages/dmarc/fail_none.eml index 7fbff7738..159f1f5bb 100644 --- a/test/functional/messages/dmarc/fail_none.eml +++ b/test/functional/messages/dmarc/fail_none.eml @@ -1,3 +1,3 @@ -From: Rspamd - -hello +From: Rspamd + +hello