Dnssec observability: add variable $lookup_dnssec_authenticated
[exim.git] / src / src / lookups / dnsdb.c
index b7e50588b6e851c1859fe9ff90068a553ca2cf24..ef3376505c504793295cbe366acdc3ed82fd38a7 100644 (file)
@@ -354,6 +354,9 @@ while ((domain = string_nextinlist(&keystring, &sep, buffer, sizeof(buffer)))
 #endif
       rc = dns_special_lookup(&dnsa, domain, type, &found);
 
+    lookup_dnssec_authenticated = dnssec_mode==OK ? NULL
+      : dns_is_secure(&dnsa) ? US"yes" : US"no";
+
     if (rc == DNS_NOMATCH || rc == DNS_NODATA) continue;
     if (rc != DNS_SUCCEED)
       {