为了理解区别,让我们看一下SPF标准(RFC 7208)对此问题的说明:
Starting with the set of records that were returned by the lookup,
discard records that do not begin with a version section of exactly
"v=spf1". Note that the version section is terminated by either an
SP character or the end of the record. As an example, a record with
a version section of "v=spf10" does not match and is discarded.
If the resultant record set includes no records, check_host()
produces the "none" result. If the resultant record set includes
more than one record, check_host() produces the "permerror" result.
简而言之,不符合SPF语法要求的TXT记录将被忽略。只有在多个记录匹配SPF语法的情况下才会发生错误。
(对于可能想知道的人来说,DMARC语法也有同样的限制。)
"value 1"\n"value 2"\n"value 3"。AWS在处理这个方面做得不太好,当前的编辑器对于编辑现有的TXT记录来说非常糟糕。 - fIwJlxSzApHEZIl