summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-06-22 11:44:36 +0200
committerHeiko Schlittermann (HS12) <hs@schlittermann.de>2015-06-22 11:44:36 +0200
commit78cc8a23961c969fb7ca66e694446d2e1f7abc98 (patch)
treef264339bbd95b572bdcbad8222b13953590880de /test
parentf6584c83fdb3b168c430b5757209cc71cae10727 (diff)
Testsuite: Add a first test for dns_trust_aa
Diffstat (limited to 'test')
-rw-r--r--test/confs/480311
-rw-r--r--test/scripts/4800-dnssec-dnslookup/48034
-rw-r--r--test/stderr/480322
-rw-r--r--test/stdout/48036
4 files changed, 43 insertions, 0 deletions
diff --git a/test/confs/4803 b/test/confs/4803
new file mode 100644
index 000000000..fa18e2c32
--- /dev/null
+++ b/test/confs/4803
@@ -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
index 000000000..11f11dc9e
--- /dev/null
+++ b/test/scripts/4800-dnssec-dnslookup/4803
@@ -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
index 000000000..9a57c446e
--- /dev/null
+++ b/test/stderr/4803
@@ -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
index 000000000..d1f66acde
--- /dev/null
+++ b/test/stdout/4803
@@ -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