Testsuite: Add a first test for dns_trust_aa
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>
Mon, 22 Jun 2015 09:44:36 +0000 (11:44 +0200)
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>
Mon, 22 Jun 2015 09:44:36 +0000 (11:44 +0200)
test/confs/4803 [new file with mode: 0644]
test/scripts/4800-dnssec-dnslookup/4803 [new file with mode: 0644]
test/stderr/4803 [new file with mode: 0644]
test/stdout/4803 [new file with mode: 0644]

diff --git a/test/confs/4803 b/test/confs/4803
new file mode 100644 (file)
index 0000000..fa18e2c
--- /dev/null
@@ -0,0 +1,11 @@
+dns_trust_aa = *
+
+begin routers
+  dnslookup:
+     driver = dnslookup
+     dnssec_require_domains = *
+     transport = smtp
+
+begin transports
+  smtp:
+     driver = smtp
diff --git a/test/scripts/4800-dnssec-dnslookup/4803 b/test/scripts/4800-dnssec-dnslookup/4803
new file mode 100644 (file)
index 0000000..11f11dc
--- /dev/null
@@ -0,0 +1,4 @@
+# check debug output AD/AA and dns_trust_aa
+exim -d-all+dns -bt foo@mx-sec-a-aa.test.ex
+****
+exim -d-all+dns -bt foo@mx-aa-a-sec.test.ex
diff --git a/test/stderr/4803 b/test/stderr/4803
new file mode 100644 (file)
index 0000000..9a57c44
--- /dev/null
@@ -0,0 +1,22 @@
+Exim version x.yz ....
+configuration file is TESTSUITE/test-config
+admin user
+DNS lookup of mx-sec-a-aa.test.ex (MX) using fakens
+DNS lookup of mx-sec-a-aa.test.ex (MX) succeeded
+DNS lookup of a-aa.test.ex (A) using fakens
+DNS lookup of a-aa.test.ex (A) succeeded
+DNS faked the AD bit (got AA and matched with dns_trust_aa (test.ex in *))
+DNS faked the AD bit (got AA and matched with dns_trust_aa (test.ex in *))
+DNS faked the AD bit (got AA and matched with dns_trust_aa (test.ex in *))
+>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
+Exim version x.yz ....
+configuration file is TESTSUITE/test-config
+admin user
+DNS lookup of mx-aa-a-sec.test.ex (MX) using fakens
+DNS lookup of mx-aa-a-sec.test.ex (MX) succeeded
+DNS faked the AD bit (got AA and matched with dns_trust_aa (test.ex in *))
+DNS faked the AD bit (got AA and matched with dns_trust_aa (test.ex in *))
+DNS faked the AD bit (got AA and matched with dns_trust_aa (test.ex in *))
+DNS lookup of a-sec.test.ex (A) using fakens
+DNS lookup of a-sec.test.ex (A) succeeded
+>>>>>>>>>>>>>>>> Exim pid=pppp terminating with rc=0 >>>>>>>>>>>>>>>>
diff --git a/test/stdout/4803 b/test/stdout/4803
new file mode 100644 (file)
index 0000000..d1f66ac
--- /dev/null
@@ -0,0 +1,6 @@
+foo@mx-sec-a-aa.test.ex
+  router = dnslookup, transport = smtp
+  host a-aa.test.ex [V4NET.0.0.100] MX=5 ad=yes
+foo@mx-aa-a-sec.test.ex
+  router = dnslookup, transport = smtp
+  host a-sec.test.ex [V4NET.0.0.100] MX=5 ad=yes