]> source.dussan.org Git - rspamd.git/commitdiff
[Test] Add a test to ensure that DKIM verifier ignores unknown tags
authorVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 1 Jul 2022 09:27:45 +0000 (10:27 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Fri, 1 Jul 2022 09:29:19 +0000 (10:29 +0100)
Obtained from: John Levine

test/functional/cases/116_dkim.robot
test/functional/messages/dmarc/dkim_unknown_tags.eml [new file with mode: 0644]

index 782648fe8013636965d57c6a9048d0f9bb39c9f1..3693588388d45f7c9f4c30a38f920a47d8d8f46d 100644 (file)
@@ -31,6 +31,10 @@ DKIM NA NOSIG
   ...  IP=37.48.67.26
   Expect Symbol  R_DKIM_NA
 
+DKIM Ignore Unknown Tags
+  Scan File  ${RSPAMD_TESTDIR}/messages/dmarc/dkim_unknown_tags.eml
+  Expect Symbol  R_DKIM_ALLOW
+
 DKIM Sign
   Set Suite Variable  ${RAN_SIGNTEST}  0
   ${result} =  Scan Message With Rspamc  ${RSPAMD_TESTDIR}/messages/spam_message.eml  --mime  --header=dodkim=1
diff --git a/test/functional/messages/dmarc/dkim_unknown_tags.eml b/test/functional/messages/dmarc/dkim_unknown_tags.eml
new file mode 100644 (file)
index 0000000..15a2f3d
--- /dev/null
@@ -0,0 +1,19 @@
+Received: (qmail 99419 invoked from network); 30 Jun 2022 22:27:07 -0000\r
+DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=taugh.com; h=date:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:references:in-reply-to; s=18457.62be233b.k2206; olt=johnl-iecc.com@submit.iecc.com; bh=Pb6s/Xlf4u1eDlYyO0NCaMRMrCg6xDNkK5byz8RDY1s=; b=XpuXx66miTUH5iEhGqjLUHKozhLjgs2wfGX2msE/3A7L7/IsnSIM7VAjzWS3tYJL6qgmoVqmGcAwtzy0WfXGGaF/n5h46mLxU1f9aLiXvVPAaN5m0w39B+bG6EE6X2Tp267cq+DQJSufUwvoaZX8gLPQ0VbTIMBJ/vV1QQ2JjphaAyggKYR6rcVTMs0A1gFO9S55ksERzW32WlmjOEmcvuzDzrmLAfhvA+jHekrC6yWLo7pmmYyt9/vJVfXsiq8xOacCxkSKWOkzm138OK+1G3Z+FrCZ8OtgWIgHCT6GevgFvZKdeCFkdxvbtMadGT/okOYBIe70tEFO/cUs2tj8tg==\r
+Date: 30 Jun 2022 18:27:04 -0400\r
+Message-Id: <9128D54C-D180-4133-A4DE-A98EDA971B73@taugh.com>\r
+From: "John Levine" <johnl@taugh.com>\r
+To: "Vsevolod Stakhov" <vsevolod@rspamd.com>\r
+Content-Type: text/plain;\r
+       charset=us-ascii\r
+Content-Transfer-Encoding: 7bit\r
+Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.100.31\))\r
+Subject: DKIM tags test\r
+References: <20220630000404.4460844A5EFD@ary.qy>\r
+ <a02a67c8-5336-e3c9-97ca-71e56c3566c1@rspamd.com>\r
+ <E4088547-0AD0-499C-8E48-B94482524484@taugh.com>\r
+ <35781b14-a61c-6e56-2265-6a5161a2b2cd@rspamd.com>\r
+In-Reply-To: <35781b14-a61c-6e56-2265-6a5161a2b2cd@rspamd.com>\r
+\r
+test message\r
+\r