summaryrefslogtreecommitdiff
path: root/test/scripts
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2018-03-18 19:07:50 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2018-03-18 22:22:32 +0000
commit55997e6c4457d48140d2c7b3919bf98a46374ac7 (patch)
tree4e69fb70778dc9c0124925bdac86d98b5a08f461 /test/scripts
parentd7b5f2ab122c3de70f1f6672fe07b87e011338c6 (diff)
DMARC: tescase
Extremely basic; we have no control of the DNS use of the dmarc library
Diffstat (limited to 'test/scripts')
-rw-r--r--test/scripts/4650-DMARC/465032
-rw-r--r--test/scripts/4650-DMARC/REQUIRES1
2 files changed, 33 insertions, 0 deletions
diff --git a/test/scripts/4650-DMARC/4650 b/test/scripts/4650-DMARC/4650
new file mode 100644
index 000000000..85d9e51cc
--- /dev/null
+++ b/test/scripts/4650-DMARC/4650
@@ -0,0 +1,32 @@
+# acl variables and authresults
+#
+# SPF is a problem. We use libspf2 to do the work, and it
+# does the DNS lookups, so we cannot intercept them in the testsuite's usual fashion
+# to provide values for testcases.
+#
+# For now just check that what should be working syntax does not cause us to fall over.
+# Be careful with envelope-domains used for testcases, as real DNS lookups will be done.
+#
+exim -bd -DSERVER=server -oX PORT_D
+****
+client HOSTIPV4 PORT_D
+??? 220
+HELO testclient
+??? 250
+MAIL FROM:<a@example.com>
+??? 250
+RCPT TO:<fred@test.ex>
+??? 250
+DATA
+??? 3
+Subject: test
+From: z@example.com
+
+body line
+.
+??? 250
+QUIT
+****
+#
+killdaemon
+no_msglog_check
diff --git a/test/scripts/4650-DMARC/REQUIRES b/test/scripts/4650-DMARC/REQUIRES
new file mode 100644
index 000000000..bb17aff6c
--- /dev/null
+++ b/test/scripts/4650-DMARC/REQUIRES
@@ -0,0 +1 @@
+support Experimental_DMARC