From: Heiko Schlittermann (HS12) Date: Mon, 22 Jun 2015 09:44:36 +0000 (+0200) Subject: Testsuite: Add a first test for dns_trust_aa X-Git-Tag: exim-4_86_RC4~8 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=78cc8a23961c969fb7ca66e694446d2e1f7abc98;p=exim.git Testsuite: Add a first test for dns_trust_aa --- 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