From cf9feadc59d18130385705d01cf0ca0f847211e7 Mon Sep 17 00:00:00 2001 From: Jan Klopper Date: Fri, 10 Jan 2025 11:32:39 +0100 Subject: [PATCH] Update spf_discovery.py --- octopoes/bits/spf_discovery/spf_discovery.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/octopoes/bits/spf_discovery/spf_discovery.py b/octopoes/bits/spf_discovery/spf_discovery.py index ee24e203264..cfb27f7c466 100644 --- a/octopoes/bits/spf_discovery/spf_discovery.py +++ b/octopoes/bits/spf_discovery/spf_discovery.py @@ -120,14 +120,12 @@ def parse_ptr_exists_include_mechanism( yield DNSSPFMechanismHostname( spf_record=spf_record.reference, hostname=input_ooi.hostname, mechanism="ptr", qualifier=mechanism_qualifier ) - ft = KATFindingType(id="KAT-EXPENSIVE-SPF") + ft = KATFindingType(id="KAT-DEPRECATED-SPF-MECHANISM") yield ft yield Finding( finding_type=ft.reference, ooi=input_ooi.reference, - description="""This SPF record contains a PTR mechanism., - If at all possible, you should avoid using this mechanism in your SPF record, - because it will result in a larger number of expensive DNS lookups.""", + description="""This SPF record contains a PTR mechanism, Use of PTR is deprecated.""", ) else: mechanism_type, domain = mechanism.split(":", 1)