Testsuite: DMARC history-file
[exim.git] / test / scripts / 4650-DMARC / 4650
index 85d9e51cc930304b34248ea57799c3bf1a3a3f2a..40df619f3ce24742907c12fc2590bf69d5b0613c 100644 (file)
@@ -1,11 +1,13 @@
 # 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.
+#
+# SPF and DMARC lookups in DNS are diverted into the testsuite fakedns handling.
+# Be careful with envelope-domains used for testcases, as real DNS lookups will be done
+# for names not provided for in fakedns.
+#
+mkdir DIR/tmp
+sudo chmod 777 DIR/tmp
 #
 exim -bd -DSERVER=server -oX PORT_D
 ****
@@ -13,14 +15,14 @@ client HOSTIPV4 PORT_D
 ??? 220
 HELO testclient
 ??? 250
-MAIL FROM:<a@example.com>
+MAIL FROM:<a@test.ex>
 ??? 250
 RCPT TO:<fred@test.ex>
 ??? 250
 DATA
 ??? 3
 Subject: test
-From: z@example.com
+From: <z@test.ex>
 
 body line
 .
@@ -29,4 +31,7 @@ QUIT
 ****
 #
 killdaemon
+cat DIR/tmp/TESTNUM.hist.dmarc
+#
+sudo rm -fr DIR/tmp
 no_msglog_check