Yep; I've tested this patch for some time on a live production server. It fixes
this CNAME bug and introduces no negative impact so far...
--- a/src/dns.c 2026-08-20 10:39:08.000000000 +0200
+++ b/src/dns.c 2026-09-17 11:46:26.343957061 +0200
@@ -1079,7 +1079,7 @@
if (type_rr.data == NULL) type_rr = *rr;
if (cname_rr.data != NULL) break;
}
- else if (rr->type == T_CNAME)
+ else if (rr->type == T_CNAME && cname_rr.data == NULL)
cname_rr = *rr;
/* For the first time round this loop, if a CNAME was found, take the fully
---
View it on Exim Forgejo (
https://code.exim.org/exim/exim/issues/1383#issuecomment-240368 ) or reply to
this email directly.
--
## subscription configuration (requires account):
## https://lists.exim.org/mailman3/postorius/lists/exim-dev.lists.exim.org/
## unsubscribe (doesn't require an account):
## [email protected]
## Exim details at https://www.exim.org/
## Please use the Wiki with this list - https://code.exim.org/exim/wiki/wiki