900526
diff --git a/bin/check/named-checkzone.8 b/bin/check/named-checkzone.8
900526
index 8538ca8..0ab0049 100644
900526
--- a/bin/check/named-checkzone.8
900526
+++ b/bin/check/named-checkzone.8
900526
@@ -251,7 +251,7 @@ so that include directives in the configuration file are processed as if run by
900526
 .PP
900526
 \-T \fImode\fR
900526
 .RS 4
900526
-Check if Sender Policy Framework records (TXT and SPF) both exist or both don't exist. A warning is issued if they don't match. Possible modes are
900526
+Check if Sender Policy Framework (SPF) records exist and issues a warning if an SPF-formatted TXT record is not also present. Possible modes are
900526
 \fB"warn"\fR
900526
 (default),
900526
 \fB"ignore"\fR.
900526
diff --git a/bin/check/named-checkzone.docbook b/bin/check/named-checkzone.docbook
900526
index ea37fa2..e78d574 100644
900526
--- a/bin/check/named-checkzone.docbook
900526
+++ b/bin/check/named-checkzone.docbook
900526
@@ -408,10 +408,10 @@
900526
 	<term>-T <replaceable class="parameter">mode</replaceable></term>
900526
 	<listitem>
900526
 	  <para>
900526
-	    Check if Sender Policy Framework records (TXT and SPF)
900526
-	    both exist or both don't exist.  A warning is issued
900526
-	    if they don't match.  Possible modes are
900526
-	    <command>"warn"</command> (default), <command>"ignore"</command>.
900526
+	    Check if Sender Policy Framework (SPF) records exist
900526
+	    and issues a warning if an SPF-formatted TXT record is
900526
+	    not also present.  Possible modes are <command>"warn"</command>
900526
+	    (default), <command>"ignore"</command>.
900526
 	  </para>
900526
 	</listitem>
900526
       </varlistentry>
900526
diff --git a/bin/tests/system/checkzone/tests.sh b/bin/tests/system/checkzone/tests.sh
900526
index 2353c14..7d9192e 100644
900526
--- a/bin/tests/system/checkzone/tests.sh
900526
+++ b/bin/tests/system/checkzone/tests.sh
900526
@@ -44,12 +44,12 @@ echo "I:checking with spf warnings ($n)"
900526
 ret=0
900526
 $CHECKZONE example zones/spf.db > test.out1.$n 2>&1 || ret=1
900526
 $CHECKZONE -T ignore example zones/spf.db > test.out2.$n 2>&1 || ret=1
900526
-grep "'x.example' found SPF/TXT" test.out1.$n > /dev/null || ret=1
900526
-grep "'y.example' found SPF/SPF" test.out1.$n > /dev/null || ret=1
900526
-grep "'example' found SPF/" test.out1.$n > /dev/null && ret=1
900526
-grep "'x.example' found SPF/" test.out2.$n > /dev/null && ret=1
900526
-grep "'y.example' found SPF/" test.out2.$n > /dev/null && ret=1
900526
-grep "'example' found SPF/" test.out2.$n > /dev/null && ret=1
900526
+grep "'x.example' found type SPF" test.out1.$n > /dev/null && ret=1
900526
+grep "'y.example' found type SPF" test.out1.$n > /dev/null || ret=1
900526
+grep "'example' found type SPF" test.out1.$n > /dev/null && ret=1
900526
+grep "'x.example' found type SPF" test.out2.$n > /dev/null && ret=1
900526
+grep "'y.example' found type SPF" test.out2.$n > /dev/null && ret=1
900526
+grep "'example' found type SPF" test.out2.$n > /dev/null && ret=1
900526
 n=`expr $n + 1`
900526
 if [ $ret != 0 ]; then echo "I:failed"; fi
900526
 status=`expr $status + $ret`
900526
diff --git a/bin/tests/system/spf/tests.sh b/bin/tests/system/spf/tests.sh
900526
index 6acd283..3da6e2e 100644
900526
--- a/bin/tests/system/spf/tests.sh
900526
+++ b/bin/tests/system/spf/tests.sh
900526
@@ -24,19 +24,16 @@ echo "I:checking that SPF warnings have been correctly generated ($n)"
900526
 ret=0
900526
 
900526
 grep "zone spf/IN: loaded serial 0" ns1/named.run > /dev/null || ret=1
900526
-grep "'x.spf' found SPF/TXT" ns1/named.run > /dev/null || ret=1
900526
-grep "'y.spf' found SPF/SPF" ns1/named.run > /dev/null || ret=1
900526
-grep "'spf' found SPF/" ns1/named.run > /dev/null && ret=1
900526
+grep "'y.spf' found type SPF" ns1/named.run > /dev/null || ret=1
900526
+grep "'spf' found type SPF" ns1/named.run > /dev/null && ret=1
900526
 
900526
 grep "zone warn/IN: loaded serial 0" ns1/named.run > /dev/null || ret=1
900526
-grep "'x.warn' found SPF/TXT" ns1/named.run > /dev/null || ret=1
900526
-grep "'y.warn' found SPF/SPF" ns1/named.run > /dev/null || ret=1
900526
-grep "'warn' found SPF/" ns1/named.run > /dev/null && ret=1
900526
+grep "'y.warn' found type SPF" ns1/named.run > /dev/null || ret=1
900526
+grep "'warn' found type SPF" ns1/named.run > /dev/null && ret=1
900526
 
900526
 grep "zone nowarn/IN: loaded serial 0" ns1/named.run > /dev/null || ret=1
900526
-grep "'x.nowarn' found SPF/" ns1/named.run > /dev/null && ret=1
900526
-grep "'y.nowarn' found SPF/" ns1/named.run > /dev/null && ret=1
900526
-grep "'nowarn' found SPF/" ns1/named.run > /dev/null && ret=1
900526
+grep "'y.nowarn' found type SPF" ns1/named.run > /dev/null && ret=1
900526
+grep "'nowarn' found type SPF" ns1/named.run > /dev/null && ret=1
900526
 n=`expr $n + 1`
900526
 if [ $ret != 0 ]; then echo "I:failed"; fi
900526
 status=`expr $status + $ret`
900526
diff --git a/doc/arm/Bv9ARM-book.xml b/doc/arm/Bv9ARM-book.xml
900526
index 96c9faf..bd42e11 100644
900526
--- a/doc/arm/Bv9ARM-book.xml
900526
+++ b/doc/arm/Bv9ARM-book.xml
900526
@@ -4750,7 +4750,7 @@ badresp:1,adberr:0,findfail:0,valfail:0]
900526
     <optional> check-mx-cname ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
900526
     <optional> check-srv-cname ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
900526
     <optional> check-sibling <replaceable>yes_or_no</replaceable>; </optional>
900526
-    <optional> check-spf ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
900526
+    <optional> check-spf ( <replaceable>warn</replaceable> | <replaceable>ignore</replaceable> ); </optional>
900526
     <optional> allow-new-zones { <replaceable>yes_or_no</replaceable> }; </optional>
900526
     <optional> allow-notify { <replaceable>address_match_list</replaceable> }; </optional>
900526
     <optional> allow-query { <replaceable>address_match_list</replaceable> }; </optional>
900526
@@ -6573,10 +6573,13 @@ options {
900526
 	          The default is <command>yes</command>.
900526
 		</para>
900526
 		<para>
900526
-		  Check that the two forms of Sender Policy Framework
900526
-		  records (TXT records starting with "v=spf1" and SPF) either
900526
-		  both exist or both don't exist.  Warnings are
900526
-		  emitted it they don't and be suppressed with
900526
+		  The use of the SPF record for publishing Sender
900526
+		  Policy Framework is deprecated as the migration
900526
+		  from using TXT records to SPF records was abandoned.
900526
+		  Enabling this option also checks that a TXT Sender
900526
+		  Policy Framework record exists (starts with "v=spf1")
900526
+		  if there is an SPF record. Warnings are emitted if the
900526
+		  TXT record does not exist and can be suppressed with
900526
 		  <command>check-spf</command>.
900526
 		</para>
900526
 	      </listitem>
900526
@@ -6618,11 +6621,11 @@ options {
900526
 	      <term><command>check-spf</command></term>
900526
 	      <listitem>
900526
 		<para>
900526
-		  When performing integrity checks, check that the
900526
-		  two forms of Sender Policy Framwork records (TXT
900526
-		  records starting with "v=spf1" and SPF) both exist
900526
-		  or both don't exist and issue a warning if not
900526
-		  met.  The default is <command>warn</command>.
900526
+		  If <command>check-integrity</command> is set then
900526
+		  check that there is a TXT Sender Policy Framework
900526
+		  record present (starts with "v=spf1") if there is an
900526
+		  SPF record present. The default is
900526
+		  <command>warn</command>.
900526
 		</para>
900526
 	      </listitem>
900526
 	    </varlistentry>
900526
@@ -10372,7 +10375,7 @@ view "external" {
900526
     <optional> check-names (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional>
900526
     <optional> check-mx (<constant>warn</constant>|<constant>fail</constant>|<constant>ignore</constant>) ; </optional>
900526
     <optional> check-wildcard <replaceable>yes_or_no</replaceable>; </optional>
900526
-    <optional> check-spf ( <replaceable>warn</replaceable> | <replaceable>fail</replaceable> | <replaceable>ignore</replaceable> ); </optional>
900526
+    <optional> check-spf ( <replaceable>warn</replaceable> | <replaceable>ignore</replaceable> ); </optional>
900526
     <optional> check-integrity <replaceable>yes_or_no</replaceable> ; </optional>
900526
     <optional> dialup <replaceable>dialup_option</replaceable> ; </optional>
900526
     <optional> file <replaceable>string</replaceable> ; </optional>
900526
diff --git a/lib/dns/zone.c b/lib/dns/zone.c
900526
index 86fad98..08c6d10 100644
900526
--- a/lib/dns/zone.c
900526
+++ b/lib/dns/zone.c
900526
@@ -2612,8 +2612,8 @@ integrity_checks(dns_zone_t *zone, dns_db_t *db) {
900526
 
900526
  checkspf:
900526
 		/*
900526
-		 * Check if there is a type TXT spf record without a type SPF
900526
-		 * RRset being present.
900526
+		 * Check if there is a type SPF record without an
900526
+		 * SPF-formatted type TXT record also being present.
900526
 		 */
900526
 		if (!DNS_ZONE_OPTION(zone, DNS_ZONEOPT_CHECKSPF))
900526
 			goto next;
900526
@@ -2642,16 +2642,13 @@ integrity_checks(dns_zone_t *zone, dns_db_t *db) {
900526
 		dns_rdataset_disassociate(&rdataset);
900526
 
900526
  notxt:
900526
-		if (have_spf != have_txt) {
900526
+		if (have_spf && !have_txt) {
900526
 			char namebuf[DNS_NAME_FORMATSIZE];
900526
-			const char *found = have_txt ? "TXT" : "SPF";
900526
-			const char *need = have_txt ? "SPF" : "TXT";
900526
 
900526
 			dns_name_format(name, namebuf, sizeof(namebuf));
900526
-			dns_zone_log(zone, ISC_LOG_WARNING, "'%s' found SPF/%s "
900526
-				     "record but no SPF/%s record found, add "
900526
-				     "matching type %s record", namebuf, found,
900526
-				     need, need);
900526
+			dns_zone_log(zone, ISC_LOG_WARNING, "'%s' found type "
900526
+				     "SPF record but no SPF TXT record found, "
900526
+				     "add matching type TXT record", namebuf);
900526
 		}
900526
 
900526
  next: