{"id":227,"date":"2009-03-18T14:51:14","date_gmt":"2009-03-18T06:51:14","guid":{"rendered":"http:\/\/www.behindgfw.com\/archives\/2009\/03\/domain-spf-record.html"},"modified":"2019-07-08T11:28:05","modified_gmt":"2019-07-08T03:28:05","slug":"domain-spf-record","status":"publish","type":"post","link":"https:\/\/www.behindgfw.com\/archives\/2009\/03\/domain-spf-record.html","title":{"rendered":"\u7ed9\u57df\u540d\u6dfb\u52a0SPF\u8bb0\u5f55"},"content":{"rendered":"<p>\u72ec\u7acb\u57df\u540d\u535a\u5ba2\u5728\u6536\u5230\u4e3b\u673a\u5bc4\u8fc7\u6765\u7684\u90ae\u4ef6\u65f6\uff0c\u90ae\u4ef6\u5934\u4f1a\u7ecf\u5e38\u663e\u793a\u5982\u4e0b\u4e24\u884c\uff1a<\/p>\n<blockquote><p>Received-SPF: neutral (google.com: 72.47.192.112 is neither permitted nor denied by best guess record for domain of wordpress@your_domain.com) client-ip=72.47.192.112;<\/p><\/blockquote>\n<blockquote><p>Received-SPF: fail (google.com: domain of wordpress@your_domain.com does not designate 72.47.192.112 as permitted sender) client-ip=72.47.192.112;<br \/>\nAuthentication-Results: mx.google.com; spf=hardfail (google.com: domain of wordpress@your_domain.com does not designate 72.47.192.112 as permitted sender) smtp.mail=wordpress@your_domain.com<\/p><\/blockquote>\n<blockquote><p>Received-SPF: softfail (google.com: domain of transitioning wordpress@your_domain.com does not designate 72.47.192.112 as permitted sender) client-ip=72.47.192.112;<br \/>\nAuthentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning wordpress@your_domain.com does not designate 72.47.192.112 as permitted sender) smtp.mail=wordpress@your_domain.com<\/p><\/blockquote>\n<p>\u5bf9\u4e00\u4e2a\u5b8c\u7f8e\u4e3b\u4e49\u8005\u6765\u8bf4\uff0c\u51fa\u73b0\u201cFail\u201d\u662f\u4e0d\u53ef\u63a5\u53d7\u7684\uff0c\u8fd9\u79cd\u90ae\u4ef6\u88abGmail\u6254\u8fdbSpam\u7684\u51e0\u7387\u6bd4\u8f83\u5927\u54e6\u3002\u8fd9\u662f\u4f60\u57df\u540d\u7684SPF\u8bb0\u5f55\u6ca1\u914d\u7f6e\u597d\u51fa\u73b0\u9a8c\u8bc1\u5931\u8d25\u7684\u7f18\u6545\uff0c\u90a3\u4ec0\u4e48\u662fSPF\u5462\uff1f<\/p>\n<p>\u7531\u4e8e\u540c\u4e00\u4e2a\u57df\u540d\u53ef\u80fd\u900f\u8fc7\u591a\u53f0\u7684mail server\u6216\u662fISP\u5bc4\u4fe1\uff0c\u901a\u8fc7IP\u5730\u5740\u6765\u53cd\u5411\u89e3\u6790\u770b\u662f\u5426\u4e3a\u4f2a\u9020\u4fe1\u4ef6\u7684\u65b9\u5f0f\u5c31\u4e0d\u591f\u7528\u4e86\uff08\u6211\u4eec\u4e5f\u7ecf\u5e38\u53ef\u4ee5\u6536\u5230\u53d1\u4ef6\u4eba\u662f\u81ea\u5df1\u7684\u5783\u573e\u90ae\u4ef6\uff09\u3002\u56e0\u6b64\u5c31\u6709\u57df\u540d\u9a8c\u8bc1\u7684\u89c2\u5ff5\u51fa\u6765\u4e86\uff0c\u5171\u5305\u62ecdomain key\u548cSPF\u8fd9\u4e24\u5927\u7c7b\uff0c\u90fd\u5fc5\u987b\u5728\u7f51\u57df\u540d\u79f0\u7684DNS\u8bb0\u5f55\u4e2d\u52a0\u5165\u4e00\u7b14\u8bb0\u5f55\u3002<\/p>\n<p>SPF(\u6216\u662fSender ID)\u662fSender Policy Framework\u7684\u7f29\u5199\u3002\u5f53\u4f60\u5b9a\u4e49\u4e86\u4f60\u57df\u540d\u7684SPF\u8bb0\u5f55\u540e\uff0c\u63a5\u6536\u90ae\u4ef6\u65b9\u4f1a\u6839\u636e\u4f60\u7684SPF\u8bb0\u5f55\u6765\u5224\u65ad\u8fde\u63a5\u8fc7\u6765\u7684IP\u5730\u5740\u662f\u5426\u88ab\u5305\u542b\u5728SPF\u8bb0\u5f55\u91cc\u9762\uff0c\u5982\u679c\u5728\uff0c\u5219\u8ba4\u4e3a\u662f\u4e00\u5c01\u6b63\u786e\u7684\u90ae\u4ef6\uff0c\u5426\u5219\u5219\u8ba4\u4e3a\u662f\u4e00\u5c01\u4f2a\u9020\u7684\u90ae\u4ef6\u3002\u73b0\u5728\u7edd\u5927\u90e8\u4efd\u53cd\u5783\u573e\u90ae\u4ef6\u7cfb\u7edf\u90fd\u652f\u6301SPF\u8fc7\u6ee4\uff0c\u8fd9\u79cd\u8fc7\u6ee4\u4e00\u822c\u4e0d\u4f1a\u6709\u8bef\u5224\uff0c\u9664\u975e\u662f\u90ae\u4ef6\u7cfb\u7edf\u7ba1\u7406\u5458\u81ea\u5df1\u628aSPF\u8bb0\u5f55\u914d\u7f6e\u9519\u8bef\u6216\u9057\u6f0f.<\/p>\n<p>\u81f3\u4e8edomain key\u5219\u662f\u7531Yahoo\u6240\u63d0\u51fa\u7684\u3002\u5fc5\u9700\u914d\u5408\u8f6f\u4ef6\u548c\u52a0\u5bc6\u6280\u672f\uff0c\u6bd4\u8f83\u9ebb\u70e6\u3002\u76ee\u524d\u4f7f\u7528\u7684\u4e5f\u4e0d\u591a\u3002 Google\u76ee\u524d\u6240\u8c13\u7684\u652f\u63f4domainkey\u4e5f\u53ea\u662f\u5728\u5bc4\u4fe1\u7684\u65f6\u5019\u52a0\u5165\uff0c\u514d\u5f97\u88abyahoo\u9000\u4fe1\uff0c\u672c\u8eab\u5e76\u6ca1\u6709\u8981\u6c42\u5bc4\u4ef6\u8005\u8981\u6709domainkey\u3002<\/p>\n<p>\u6b63\u786e\u8bbe\u7f6e\u540e\u90ae\u4ef6\u5934\u4e00\u822c\u663e\u793a\u5982\u4e0b\uff1a<\/p>\n<blockquote><p>Received-SPF: pass (google.com: domain of wordpress@your_domain.com designates 72.47.192.112 as permitted sender) client-ip=72.47.192.112;<br \/>\nAuthentication-Results: mx.google.com; spf=pass (google.com: domain of wordpress@your_domain.com designates 72.47.192.112 as permitted sender) smtp.mail=wordpress@your_domain.com<\/p><\/blockquote>\n<p>\u5173\u4e8eSPF\u662f\u5426\u6709\u8bbe\u5b9a\u7684\u5fc5\u8981\uff1f\u4e00\u822c\u8ba4\u4e3a\u6709\u52a0\u4e0aSPF\u6bd4\u8f83\u597d\uff0c\u6015\u4e07\u4e00\u78b0\u5230\u54ea\u4e2a\u6536\u4ef6\u670d\u52a1\u5668\u6709\u91c7\u7528SenderID\u673a\u5236\u6765\u8fc7\u6ee4\u4fe1\u4ef6\u7684\u8bdd\u5c31\u6709\u7528\u5904\u4e86\u3002<\/p>\n<p>\u5982\u4f55\u589e\u52a0SPF\u8bb0\u5f55\uff0c\u975e\u5e38\u7b80\u5355\uff0c\u5728DNS\u91cc\u9762\u6dfb\u52a0TXT\u8bb0\u5f55\u5373\u53ef\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u9762SPF\u751f\u6210\u68c0\u67e5\u5de5\u5177\uff1a<\/p>\n<p><a href=\"https:\/\/mxtoolbox.com\/spf.aspx\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/mxtoolbox.com\/spf.aspx<\/a><br \/>\n<a href=\"https:\/\/toolbox.googleapps.com\/apps\/checkmx\/\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/toolbox.googleapps.com\/apps\/checkmx\/<\/a><br \/>\n<a href=\"https:\/\/web.archive.org\/web\/20080513111421\/http:\/\/www.openspf.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">http:\/\/old.openspf.org\/wizard.html<\/a><\/p>\n<p>a \u4f60\u57df\u540d\u7684A\u8bb0\u5f55\uff0c\u4e00\u822c\u9009\u62e9yes\uff0c\u56e0\u4e3a\u4ed6\u6709\u53ef\u80fd\u53d1\u51fa\u90ae\u4ef6\uff0c\u6bd4\u5982\u6211\u4e0a\u9762\u63d0\u5230\u7684Wordpress\u7684\u56de\u4fe1\u3002<br \/>\nmx \u4e00\u822c\u4e5f\u662fyes\uff0cMX\u670d\u52a1\u5668\u4f1a\u6709\u9000\u4fe1\u7b49\u3002<br \/>\nptr \u9009\u62e9no\uff0c\u5b98\u65b9\u5efa\u8bae\u7684\u3002<br \/>\ninlude \u5982\u679c\u6709\u53ef\u80fd\u901a\u8fc7\u4e00\u4e2aisp\u6765\u53d1\u4fe1\uff0cisp\u6709\u81ea\u5df1\u7684SPF\u8bb0\u5f55\uff0c\u5219\u586b\u5165\u8fd9\u4e2aisp\u7684\u57df\u540d\u3002\u6bd4\u5982\u4f60\u4f7f\u7528Google Apps\uff0c\u5e94\u8be5\u589e\u52a0include:google.com\u8bb0\u5f55\uff0c\u56e0\u4e3a\u4f60\u7684\u90ae\u4ef6\u65f6\u4eceGoogle\u670d\u52a1\u5668\u53d1\u51fa\u53bb\u7684\u3002<br \/>\nip4\uff1a \u4f60\u8fd8\u6709\u6ca1\u6709\u5176\u4ed6\u7684ip\u53d1\u4fe1\uff1f\u53ef\u80fd\u4f60\u7684smtp\u670d\u52a1\u5668\u662f\u72ec\u7acb\u51fa\u6765\u7684\uff0c\u90a3\u4e48\u5c31\u586b\u5165\u4f60\u7684IP\u5730\u5740\u6216\u8005\u7f51\u6bb5\u3002<br \/>\n~all: \u610f\u601d\u662f\u9664\u4e86\u4e0a\u9762\u7684\uff0c\u5176\u4ed6\u7684\u90fd\u4e0d\u8ba4\u53ef\u3002\u5f53\u7136\u662fyes\u4e86\u3002<\/p>\n<p>\u518d\u68c0\u67e5\u4e0b\uff0c\u8fdb\u5165cmd\uff08\u4ee5Google.com\u4e3a\u4f8b\uff09:<\/p>\n<blockquote><p><strong>C:\\Documents and Settings\\&gt;<\/strong>nslookup<br \/>\nDefault Server: resolver1.opendns.com<br \/>\nAddress: 208.67.222.222&gt;<br \/>\n<strong>&gt;<\/strong> set type=txt<br \/>\n<strong>&gt;<\/strong><br \/>\n<strong>&gt;<\/strong> google.com<br \/>\nServer: resolver1.opendns.com<br \/>\nAddress: 208.67.222.222<\/p>\n<p>Non-authoritative answer:<br \/>\ngoogle.com text =<\/p>\n<p>&#8220;v=spf1 include:_netblocks.google.com ~all&#8221;<br \/>\n<strong>&gt;<\/strong><br \/>\n<strong>&gt;<\/strong> _netblocks.google.com<br \/>\nServer: resolver1.opendns.com<br \/>\nAddress: 208.67.222.222<\/p>\n<p>Non-authoritative answer:<br \/>\n_netblocks.google.com text =<\/p>\n<p>&#8220;v=spf1 ip4:216.239.32.0\/19 ip4:64.233.160.0\/<br \/>\n2.14.192.0\/18 ip4:209.85.128.0\/17 ip4:66.102.0.0\/20 i<br \/>\n0.0\/20 ip4:207.126.144.0\/20 ?all&#8221;<br \/>\n<strong>&gt;<\/strong><br \/>\n<strong>&gt;<\/strong>behindgfw.com<br \/>\nServer: resolver1.opendns.com<br \/>\nAddress: 208.67.222.222<\/p>\n<p>Non-authoritative answer:<br \/>\nbehindgfw.com\u00a0\u00a0 text =<\/p>\n<p>&#8220;v=spf1 a a:fwolf.com mx include:google.com ~all&#8221;<\/p><\/blockquote>\n<p>ok\uff0c\u90fd\u8bbe\u7f6e\u597d\u4e86\uff0c\u7ed9check-auth@verifier.port25.com\u53d1\u5c01\u90ae\u4ef6\uff0c\u5f88\u5feb\u4f1a\u6709\u56de\u4fe1\u544a\u8bc9\u4f60\u8bbe\u7f6e\u662f\u5426\u6b63\u786e\uff0c\u4f1a\u8fd4\u56de\u8be6\u7ec6\u7684SPF check\u3001DomainKeys check\u3001DKIM check\u3001Sender-ID check\u7ed3\u679c\u3002<\/p>\n<p>\u81f3\u4e8e\u90a3\u4e9b\u57df\u540d\u6ce8\u518c\u5546\u652f\u6301\u6dfb\u52a0SPF\u8bb0\u5f55\uff0c\u53ef\u4ee5\u5728\u5982\u4e0b\u7f51\u5740\u68c0\u67e5\uff1a<br \/>\n<a href=\"http:\/\/www.kitterman.com\/spf\/txt.html\">http:\/\/www.kitterman.com\/spf\/txt.html<\/a><\/p>\n<p>\u53c2\u8003\u94fe\u63a5\uff1a<br \/>\nRFC4408 <a href=\"http:\/\/www.ietf.org\/rfc\/rfc4408.txt\">http:\/\/www.ietf.org\/rfc\/rfc4408.txt<\/a><br \/>\n<a href=\"http:\/\/blog.sina.com.cn\/s\/blog_44652a83010004y7.html\">Chifeng<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u72ec\u7acb\u57df\u540d\u535a\u5ba2\u5728\u6536\u5230\u4e3b\u673a\u5bc4\u8fc7\u6765\u7684\u90ae\u4ef6\u65f6\uff0c\u90ae\u4ef6\u5934\u4f1a\u7ecf\u5e38\u663e\u793a\u5982\u4e0b\u4e24\u884c\uff1a Received-SPF: neutral  [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[35,42],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-webdev","tag-domain","tag-spam"],"_links":{"self":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":5,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":1061,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/posts\/227\/revisions\/1061"}],"wp:attachment":[{"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.behindgfw.com\/archives\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}