Your question
Hello, after setting up things for gmail, this works now.
but outlook still gives an error:
lookup error: DNS resolution error: DNS error: DNSSEC validation failed
what should I do to solve this?
Let me look at the resolver page fully to see variants (system, cloudflare, custom, etc.) and DNSSEC-related notes.
A âDNSSEC validation failedâ lookup error usually surfaces from the DANE/TLSA lookup step, and it means the resolver Stalwart is using got a cryptographically invalid (bogus) DNSSEC response, most often for the recipientâs TLSA or MX records. Stalwart deliberately treats a bogus DNSSEC answer as a failure rather than silently ignoring it, to prevent downgrade attacks, so mail to that domain will be deferred rather than delivered insecurely.
To resolve it:
DnsResolver singleton (Settings âș Network âș DNS âș DNS Resolver in the WebUI). If youâre on System, verify the OS resolver is DNSSEC-validating and reachable; if it isnât reliable, switching to a validating public resolver such as Cloudflare or Quad9 often clears up spurious bogus results.MtaTlsStrategy applied to outlook.comâs route: the dane field defaults to optional, which should fall back to normal STARTTLS if TLSA/DNSSEC canât be validated. If itâs set to require, delivery will hard-fail on DNSSEC problems, consider whether thatâs intended for this domain.Docs: DNS Resolver and DANE
This is an automated reply from the Stalwart Help Bot. Other community members may follow up if this answer is incomplete or wrong.
This problem could be related to MX lookup fails with "DNSSEC validation failed" for signed zone (mail.de, RSA/SHA-512) on 0.16.21, regardless of DANE setting if you are on version 0.16.21
yes, iâm on version 0.16.21 too.
Same symptom here on 0.16.21. In my case the resolver choice made no
difference and dane set to disable did not help either, the validation
runs regardless of that setting.
thornbux bisected it in the linked thread: 0.16.20 is fine, 0.16.21 is
not, the change is in hickory-resolver 0.26.1 to 0.26.2.
Rolling back to 0.16.20 is currently the only known workaround.
Same problem here, had to go back to 16.20.
Happening to me too, since the 16.21 update.
Proton domains are also affected.
Itâs due to a hickory-resolver bug, rollback to the previous version or wait a few days until 0.16.22.
Version 0.16.22 did not fix the issue. I am having the exact same issue with Proton domains at the very least.
Also continuing to see this error with 0.16.22; with proton domains and gmail.
Further Hickory issue resolved in v0.16.23
I confirm the issue seems to be resolved in v0.16.23 ![]()
What DNS resolver are you using? It may be the source of the issue if it doesnât return results correctly.
Seems to be a issue with hickory-dns: DNSSEC "exceeded max validation depth" after upgrading to 0.26.3 · Issue #3974 · hickory-dns/hickory-dns · GitHub
That was the original problem that setting the concurrency to 1 in 0.16.23 was supposed to avoid until they fixed it properly. Guess it isnât a full workaround.
Iâm on 0.16.24 and Iâm also still running in to these âDNS resolution error: DNS error: DNSSEC validation failedâ for any domain hosted at MS365 (MX pointing .mail.protection.outlook.com). Already using DNS over TCP.
Delivering through a simple exim4 relay works but requires a custom outbound delivery strategy and a server restart.
Any ideas on improving the workaround or getting to a definitive solution?
I can only test with normal @outlook.com addresses ( MX outlook-com.olc.protection.outlook.com ), but it works with 0.16.24. I configured a DNS Resolver in Settings->Network->DNS ( Quad9 with TLS and default settings).
This bug report was written from the perspective of Stalwart and not Hickory, and because it cited 0.16.24 with the âworkaroundâ as fixed, it was closed. It didnât actually address the underlying problem.
Two different DNSSEC bug reports of networking: hickory-proto's broad DNSSEC validation exceeds max depth on mainnet's real SRV response, even with edns0=true (GH-Actions-runner soak, #1611 follow-up) · Issue #1614 · xarmian/algod-rust · GitHub and networking: bound DNSSEC-validating SRV lookup stages with a timeout (addresses #1614) - Pull Request #1615 - xarmian/algod-rust - GitHub were however posted and appear resolved, unknown if those actually resolve the issue in Stalwart or not once the updated crate is included.