[exim-dev] [Bug 1294] SPF TYPE99 deprecation

Page principale
Supprimer ce message
Répondre à ce message
Auteur: admin
Date:  
À: exim-dev
Anciens-sujets: [exim-dev] [Bug 1294] New: SPF TYPE99 deprecation
Sujet: [exim-dev] [Bug 1294] SPF TYPE99 deprecation
https://bugs.exim.org/show_bug.cgi?id=1294

--- Comment #5 from Git Commit <git@???> ---
Git commit:
https://git.exim.org/exim.git/commitdiff/549d36ddec8c419af2223cc83162f58e9106650f

commit 549d36ddec8c419af2223cc83162f58e9106650f
Author:     Wolfgang Breyha <wbreyha@???>
AuthorDate: Tue Jan 7 13:31:20 2020 +0000
Commit:     Jeremy Harris <jgh146exb@???>
CommitDate: Tue Jan 7 13:32:43 2020 +0000


    SPF: switch to NO_DATA for SPF-rr lookups.  Bug 1294
---
 doc/doc-txt/ChangeLog | 4 ++--
 src/src/spf.c         | 9 ++++-----
 2 files changed, 6 insertions(+), 7 deletions(-)


diff --git a/doc/doc-txt/ChangeLog b/doc/doc-txt/ChangeLog
index b904aa9..ce225e9 100644
--- a/doc/doc-txt/ChangeLog
+++ b/doc/doc-txt/ChangeLog
@@ -78,8 +78,8 @@ JH/18 Authentication: the gsasl driver not provides the
$authN variables in time
       for the expansion of the server_scram_iter and server_scram_salt
options.


 WB/01 SPF: DNS lookups for the obsolete SPF RR type done by the libspf2
library
-      are now specifically given a HOST_NOT_FOUND response without hitting the
-      system resolver.  The library goes on to do the now-standard TXT lookup.
+      are now specifically given a NO_DATA response without hitting the system
+      resolver.  The library goes on to do the now-standard TXT lookup.
       Use of dnsdb lookups is not affected.



diff --git a/src/src/spf.c b/src/src/spf.c
index fd9831c..f120f72 100644
--- a/src/src/spf.c
+++ b/src/src/spf.c
@@ -72,14 +72,13 @@ int dns_rc;

DEBUG(D_receive) debug_printf("SPF_dns_exim_lookup '%s'\n", domain);

-/* Shortcircuit SPF RR lookups by returning HOST_NOT_FOUND (shortest code path
-in libspf2). They were obsoleted by RFC 6686/7208 years ago. see bug #1294
-*/
+/* Shortcircuit SPF RR lookups by returning NO_DATA. They were obsoleted by
+RFC 6686/7208 years ago. see bug #1294 */

if (rr_type == T_SPF)
{
- HDEBUG(D_host_lookup) debug_printf("faking HOST_NOT_FOUND for SPF RR(99)
lookup\n");
- srr.herrno = HOST_NOT_FOUND;
+ HDEBUG(D_host_lookup) debug_printf("faking NO_DATA for SPF RR(99)
lookup\n");
+ srr.herrno = NO_DATA;
SPF_dns_rr_dup(&spfrr, &srr);
return spfrr;
}

--
You are receiving this mail because:
You are on the CC list for the bug.