]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] dkim_signing: siging_table: lowercase before lookup 4717/head
authorAndrew Lewis <nerf@judo.za.org>
Wed, 29 Nov 2023 12:32:06 +0000 (14:32 +0200)
committerAndrew Lewis <nerf@judo.za.org>
Wed, 29 Nov 2023 12:32:06 +0000 (14:32 +0200)
lualib/lua_dkim_tools.lua
test/functional/messages/dmarc/fail_none.eml

index 1f396fbc482ce6a3dde2438a1a2b5a6038a95f71..165ea8f5691482ef21313c28cc8c1fc9113831ad 100644 (file)
@@ -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
index 7fbff77384f0ff1dcbd6d45004e6c298b2f2f941..159f1f5bb69b0a3136df9cf021321d713c78c3ef 100644 (file)
@@ -1,3 +1,3 @@
-From: Rspamd <foo@cacophony.za.org>
-
-hello
+From: Rspamd <foo@caCophony.za.org>\r
+\r
+hello\r