summaryrefslogtreecommitdiff
path: root/test/scripts/4690-DMARC-ARC
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2023-08-24 20:22:43 +0100
committerJeremy Harris <jgh146exb@wizmail.org>2023-08-27 21:15:33 +0100
commit6d9b05ae272ca2122b48451c317d601e449af932 (patch)
tree624845f8c9d921dd0c2dd2c38c1443a32ca39abc /test/scripts/4690-DMARC-ARC
parent21b172df101c2c52faf0cc56a502395451975be9 (diff)
DMARC: add ARC info to history records
Diffstat (limited to 'test/scripts/4690-DMARC-ARC')
-rw-r--r--test/scripts/4690-DMARC-ARC/469045
-rw-r--r--test/scripts/4690-DMARC-ARC/REQUIRES3
2 files changed, 48 insertions, 0 deletions
diff --git a/test/scripts/4690-DMARC-ARC/4690 b/test/scripts/4690-DMARC-ARC/4690
new file mode 100644
index 000000000..18210785a
--- /dev/null
+++ b/test/scripts/4690-DMARC-ARC/4690
@@ -0,0 +1,45 @@
+# DMARC history-report of ARC results
+#
+mkdir DIR/tmp
+sudo chmod 777 DIR/tmp
+#
+exim -DSERVER=server -bd -oX PORT_D
+****
+#
+# We send this one through two forwarding hops.
+# It starts off bare, so the 1st forwarder reception gets an ARC status of "none".
+# The outbound signs it with that, and the 2nd forwarder is happy to pass it.
+# The outbound signs again, and the final receiver is happy.
+#
+client 127.0.0.1 PORT_D
+??? 220
+HELO xxx
+??? 250
+MAIL FROM:<CALLER@test.ex>
+??? 250
+RCPT TO:<zza@test.ex>
+??? 250
+DATA
+??? 354
+Subject: Test
+From: <CALLER@test.ex>
+
+This is a test body.
+.
+??? 250
+QUIT
+??? 221
+****
+#
+exim -DSERVER=server -DNOTDAEMON -q
+****
+exim -DSERVER=server -DNOTDAEMON -q
+****
+exim -DSERVER=server -DNOTDAEMON -q
+****
+#
+killdaemon
+cat DIR/tmp/TESTNUM.hist.dmarc
+#
+sudo rm -fr DIR/tmp
+no_msglog_check
diff --git a/test/scripts/4690-DMARC-ARC/REQUIRES b/test/scripts/4690-DMARC-ARC/REQUIRES
new file mode 100644
index 000000000..9d8d25739
--- /dev/null
+++ b/test/scripts/4690-DMARC-ARC/REQUIRES
@@ -0,0 +1,3 @@
+support DMARC
+support DKIM
+support Experimental_ARC