}
#endif /* HAVE_IPV6 */
- if ( slow_lookup_log
- && (time_msec = get_time_in_ms() - time_msec) > slow_lookup_log
- )
- log_long_lookup(US"name", host->name, time_msec);
+ if (slow_lookup_log
+ && (time_msec = get_time_in_ms() - time_msec) > slow_lookup_log)
+ log_long_lookup(US"name", host->name, time_msec);
if (hostdata == NULL)
{
--- /dev/null
+
+begin routers
+ dnslookup:
+ driver = dnslookup
+ dnssec_request_domains = *
+ transport = smtp
+
+begin transports
+ smtp:
+ driver = smtp
--- /dev/null
+
+begin routers
+ dnslookup:
+ driver = dnslookup
+ dnssec_require_domains = *
+ transport = smtp
+
+begin transports
+ smtp:
+ driver = smtp
csa1 A V4NET.9.8.7
csa2 A V4NET.9.8.8
+; ------- Testing DNSSEC ----------
+
+mx-unsec-a-unsec MX 5 a-unsec
+mx-unsec-a-sec MX 5 a-sec
+DNSSEC mx-sec-a-unsec MX 5 a-unsec
+DNSSEC mx-sec-a-sec MX 5 a-sec
+
+a-unsec A V4NET.0.0.100
+DNSSEC a-sec A V4NET.0.0.100
+
; ------- Testing DANE ------------
; full suite dns chain, sha512
--- /dev/null
+# dnssec_request_domains
+exim -bt user@mx-unsec-a-unsec.test.ex
+****
+exim -bt user@mx-unsec-a-sec.test.ex
+****
+exim -bt user@mx-sec-a-unsec.test.ex
+****
+exim -bt user@mx-sec-a-sec.test.ex
+****
--- /dev/null
+# dnssec_require_domains
+1
+exim -bt user@mx-unsec-a-unsec.test.ex
+****
+1
+exim -bt user@mx-unsec-a-sec.test.ex
+****
+2
+exim -bt user@mx-sec-a-unsec.test.ex
+****
+exim -bt user@mx-sec-a-sec.test.ex
+****
--- /dev/null
+support DNSSEC
+router dnslookup
--- /dev/null
+LOG: host_lookup_failed MAIN
+ dnssec fail on MX for mx-unsec-a-unsec.test.ex
+LOG: host_lookup_failed MAIN
+ dnssec fail on MX for mx-unsec-a-sec.test.ex
+LOG: host_lookup_failed MAIN
+ dnssec fail on A for a-unsec.test.ex
--- /dev/null
+user@mx-unsec-a-unsec.test.ex
+ router = dnslookup, transport = smtp
+ host a-unsec.test.ex [V4NET.0.0.100] MX=5 ad=no
+user@mx-unsec-a-sec.test.ex
+ router = dnslookup, transport = smtp
+ host a-sec.test.ex [V4NET.0.0.100] MX=5 ad=no
+user@mx-sec-a-unsec.test.ex
+ router = dnslookup, transport = smtp
+ host a-unsec.test.ex [V4NET.0.0.100] MX=5 ad=no
+user@mx-sec-a-sec.test.ex
+ router = dnslookup, transport = smtp
+ host a-sec.test.ex [V4NET.0.0.100] MX=5 ad=yes
--- /dev/null
+user@mx-unsec-a-unsec.test.ex cannot be resolved at this time: host lookup did not complete
+user@mx-unsec-a-sec.test.ex cannot be resolved at this time: host lookup did not complete
+user@mx-sec-a-unsec.test.ex is undeliverable: all relevant MX records point to non-existent hosts
+user@mx-sec-a-sec.test.ex
+ router = dnslookup, transport = smtp
+ host a-sec.test.ex [V4NET.0.0.100] MX=5 ad=yes