base.m4 (DKIM_SIGN_P): Check that the sending domain is actually listed. master
authorMark Wooding <mdw@distorted.org.uk>
Thu, 23 May 2024 01:45:27 +0000 (02:45 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 23 May 2024 01:45:27 +0000 (02:45 +0100)
base.m4

diff --git a/base.m4 b/base.m4
index 0aadb78..4f16e20 100644 (file)
--- a/base.m4
+++ b/base.m4
@@ -424,7 +424,8 @@ m4_define(<:DKIM_SIGN_P:>,
               {!def:h_DKIM-Signature:} \
               {!def:h_List-ID:} \
               {or {{def:authenticated_id} \
-                   {def:authenticated_sender}}}}:>)
+                   {def:authenticated_sender}}} \
+              {bool {DKIM_KEYS_INSTANCE(<:{true}:>, <:{false}:>)}}}:>)
 
 m4_define(<:DKIM_KEYS_INSTANCE:>,
        <:${lookup {${domain:$h_From:}} partial0-lsearch \