Browse Source

[Fix] dkim_signing: siging_table: lowercase before lookup

pull/4717/head
Andrew Lewis 2 years ago
parent
commit
33b3dd9a1b
  1. 2
      lualib/lua_dkim_tools.lua
  2. 6
      test/functional/messages/dmarc/fail_none.eml

2
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

6
test/functional/messages/dmarc/fail_none.eml

@ -1,3 +1,3 @@
From: Rspamd <foo@cacophony.za.org>
hello
From: Rspamd <foo@caCophony.za.org>
hello
Loading…
Cancel
Save