From 736b41ddedfccc4cdd8938046c9efc0febcc70ad Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Wed, 29 Nov 2023 14:32:06 +0200 Subject: [PATCH] [Fix] dkim_signing: siging_table: lowercase before lookup --- lualib/lua_dkim_tools.lua | 2 +- test/functional/messages/dmarc/fail_none.eml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.5