{"id":104,"date":"2024-04-12T11:07:10","date_gmt":"2024-04-12T03:07:10","guid":{"rendered":"\/blog\/?p=104"},"modified":"2024-07-31T18:04:22","modified_gmt":"2024-07-31T10:04:22","slug":"dkim%e8%ae%b0%e5%bd%95%e6%a0%bc%e5%bc%8f-%e9%85%8d%e7%bd%ae%e7%a4%ba%e4%be%8b%e5%8f%8a%e7%ad%be%e5%90%8d%e9%aa%8c%e8%af%81","status":"publish","type":"post","link":"https:\/\/www.mailabc.cn\/blog\/2024\/04\/12\/dkim%e8%ae%b0%e5%bd%95%e6%a0%bc%e5%bc%8f-%e9%85%8d%e7%bd%ae%e7%a4%ba%e4%be%8b%e5%8f%8a%e7%ad%be%e5%90%8d%e9%aa%8c%e8%af%81\/","title":{"rendered":"DKIM\u8bb0\u5f55\u683c\u5f0f\u3001\u914d\u7f6e\u793a\u4f8b\u53ca\u7b7e\u540d\u9a8c\u8bc1"},"content":{"rendered":"<section>\n<section>\n<section>\n<h2><strong>\u4ec0\u4e48\u662fDKIM<\/strong><\/h2>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section>DomainKeys Identified Mail (DKIM) \u662f\u4e00\u79cd\u7535\u5b50\u90ae\u4ef6\u9a8c\u8bc1\u7cfb\u7edf\uff0c\u65e8\u5728\u5e2e\u52a9\u63a5\u6536\u90ae\u4ef6\u670d\u52a1\u5668\u786e\u5b9a\u67d0\u4e2a\u7535\u5b50\u90ae\u4ef6\u662f\u5426\u771f\u7684\u7531\u58f0\u79f0\u62e5\u6709\u5176\u53d1\u4ef6\u4eba\u5730\u5740\u7684\u57df\u6240\u6388\u6743\u5e76\u53d1\u9001\u3002DKIM\u901a\u8fc7\u4f7f\u7528\u516c\u94a5\u5bc6\u7801\u5b66\u548c\u6570\u5b57\u7b7e\u540d\u6280\u672f\u6765\u589e\u5f3a\u7535\u5b50\u90ae\u4ef6\u7684\u5b89\u5168\u6027\u548c\u53ef\u9760\u6027\u3002<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section>\n<h2><strong>DKIM\u5de5\u4f5c\u539f\u7406<\/strong><\/h2>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<h3><strong>\u5bc6\u94a5\u751f\u6210\u4e0e\u5b58\u50a8\uff1a<\/strong><\/h3>\n<section>\n<ul>\n<li>\u53d1\u9001\u57df\u9996\u5148\u751f\u6210\u4e00\u5bf9\u516c\u94a5\u548c\u79c1\u94a5\u3002\u79c1\u94a5\u4fdd\u7559\u5728\u90ae\u4ef6\u670d\u52a1\u5668\u4e0a\uff0c\u5e76\u7528\u4e8e\u7b7e\u7f72\u5373\u5c06\u53d1\u51fa\u7684\u90ae\u4ef6\u3002<\/li>\n<li>\u516c\u94a5\u5219\u4f5c\u4e3aDKIM\u8bb0\u5f55\u5b58\u50a8\u5728\u53d1\u9001\u57df\u7684DNS\u8bb0\u5f55\u4e2d\uff0c\u901a\u5e38\u662f\u4ee5TXT\u7c7b\u578b\u7684DNS\u8bb0\u5f55\u5f62\u5f0f\u5b58\u5728\u3002<\/li>\n<\/ul>\n<h3><strong>\u90ae\u4ef6\u7b7e\u7f72\uff1a<\/strong><\/h3>\n<ul>\n<li>\u5f53\u90ae\u4ef6\u4ece\u6388\u6743\u7684\u670d\u52a1\u5668\u53d1\u51fa\u65f6\uff0c\u90ae\u4ef6\u670d\u52a1\u5668\u4f1a\u4f7f\u7528\u79c1\u94a5\u5bf9\u90ae\u4ef6\u7684\u90e8\u5206\u6216\u5168\u90e8\u5185\u5bb9\uff08\u901a\u5e38\u662f\u90ae\u4ef6\u5934\u548c\u4e3b\u4f53\u7684\u4e00\u90e8\u5206\uff09\u8fdb\u884c\u52a0\u5bc6\u7b7e\u540d\u3002<\/li>\n<li>\u8fd9\u4e2a\u7b7e\u540d\u88ab\u6dfb\u52a0\u5230\u90ae\u4ef6\u5934\u90e8\u7684DKIM-Signature\u5b57\u6bb5\u4e2d\uff0c\u5305\u542b\u4e86\u4e00\u7cfb\u5217\u6807\u8bc6\u7b26\uff08\u6bd4\u5982d=\u57df\u540d\u3001s=\u9009\u62e9\u5668\u3001bh=\u6563\u5217\u6458\u8981\u3001b=\u7b7e\u540d\u6570\u636e\u7b49\uff09\u3002<\/li>\n<\/ul>\n<h3><strong>\u90ae\u4ef6\u9a8c\u8bc1\uff1a<\/strong><\/h3>\n<ul>\n<li>\u5f53\u90ae\u4ef6\u5230\u8fbe\u63a5\u6536\u65b9\u90ae\u4ef6\u670d\u52a1\u5668\u65f6\uff0c\u670d\u52a1\u5668\u4f1a\u63d0\u53d6DKIM-Signature\u5934\u4fe1\u606f\uff0c\u5e76\u67e5\u627e\u4e0e\u90ae\u4ef6\u4e2d\u6807\u8bc6\u7684\u57df\u540d\u548c\u9009\u62e9\u5668\u76f8\u5bf9\u5e94\u7684DKIM\u8bb0\u5f55\u3002<\/li>\n<li>\u63a5\u6536\u65b9\u90ae\u4ef6\u670d\u52a1\u5668\u4eceDNS\u4e2d\u83b7\u53d6\u5230\u76f8\u5e94\u7684\u516c\u94a5\u540e\uff0c\u4f7f\u7528\u8be5\u516c\u94a5\u5bf9\u90ae\u4ef6\u7b7e\u540d\u8fdb\u884c\u89e3\u5bc6\u9a8c\u8bc1\u3002<\/li>\n<\/ul>\n<p>\u5982\u679c\u6570\u5b57\u7b7e\u540d\u9a8c\u8bc1\u901a\u8fc7\uff0c\u5219\u8868\u660e\u90ae\u4ef6\u5185\u5bb9\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u672a\u88ab\u7be1\u6539\uff0c\u5e76\u4e14\u90ae\u4ef6\u7684\u786e\u662f\u4ece\u58f0\u79f0\u7684\u57df\u540d\u6388\u6743\u7684\u670d\u52a1\u5668\u53d1\u9001\u7684\u3002<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section>\n<h2><strong>DKIM\u8bb0\u5f55<\/strong><\/h2>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section>DKIM\u8bb0\u5f55\u7684\u683c\u5f0f\u662f\u5728DNS\uff08Domain Name System\uff09\u4e2d\u4ee5TXT\u7c7b\u578b\u7684\u8d44\u6e90\u8bb0\u5f55\u5f62\u5f0f\u5b58\u5728\u7684\uff0c\u5b83\u5305\u542b\u4e86\u516c\u5f00\u53ef\u7528\u7684DKIM\u516c\u94a5\u548c\u5176\u4ed6\u76f8\u5173\u53c2\u6570\uff0c\u4ee5\u4fbf\u90ae\u4ef6\u63a5\u6536\u670d\u52a1\u5668\u80fd\u591f\u9a8c\u8bc1\u53d1\u9001\u81ea\u7279\u5b9a\u57df\u540d\u7684\u7535\u5b50\u90ae\u4ef6\u7684\u771f\u5b9e\u6027\u3002DKIM\u8bb0\u5f55\u7684\u6838\u5fc3\u7ec4\u6210\u90e8\u5206\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u90e8\u5206\uff1a<\/section>\n<\/section>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\">selector._domainkey.domain.tld. \u00a0TTL \u00a0 IN \u00a0 \u00a0TXT \u00a0 <span class=\"code-snippet__string\">\"v=DKIM1; k=rsa; p=base64_public_key\"<\/span><\/span><\/code><\/pre>\n<\/section>\n<h3><strong>selector:<\/strong><\/h3>\n<section>\n<section>\n<section>\u8fd9\u662f\u4e00\u4e2a\u53ef\u81ea\u5b9a\u4e49\u7684\u9009\u62e9\u5668\uff0c\u7528\u4e8e\u533a\u5206\u540c\u4e00\u57df\u540d\u4e0b\u53ef\u80fd\u6709\u7684\u591a\u4e2aDKIM\u5bc6\u94a5\u5bf9\u3002\u9009\u62e9\u5668\u901a\u5e38\u4ee3\u8868\u4e00\u4e2a\u7279\u5b9a\u7684\u90ae\u4ef6\u670d\u52a1\u5668\u6216\u670d\u52a1\uff0c\u4f7f\u5f97\u540c\u4e00\u4e2a\u57df\u540d\u4e0b\u7684\u4e0d\u540c\u90ae\u4ef6\u6d41\u53ef\u4ee5\u7528\u4e0d\u540c\u7684DKIM\u5bc6\u94a5\u8fdb\u884c\u7b7e\u540d\u3002selector\u9700\u8981\u914d\u7f6e\u5230\u90ae\u4ef6\u7cfb\u7edf\u4e0a\uff0c\u4e0d\u540c\u54c1\u724c\u7684\u90ae\u4ef6\u7cfb\u7edf\u914d\u7f6e\u65b9\u6cd5\u4e0d\u540c\u3002<\/section>\n<h3><strong>_domainkey:<\/strong><\/h3>\n<section>\u8fd9\u662f\u4e00\u4e2a\u56fa\u5b9a\u7684\u5b50\u57df\u540d\u524d\u7f00\uff0c\u7528\u6765\u6807\u8bc6\u8fd9\u662f\u4e00\u4e2aDKIM\u76f8\u5173\u7684DNS\u8bb0\u5f55\u3002<\/section>\n<h3><strong>domain.tld:<\/strong><\/h3>\n<section>\u6307\u7684\u662f\u8981\u9a8c\u8bc1\u7684\u57df\u540d\uff0c\u5373\u90ae\u4ef6\u58f0\u79f0\u7684\u53d1\u4ef6\u4eba\u5730\u5740\u6240\u5c5e\u7684\u57df\u540d\u3002\u4f8b\u5982\uff0c\u5982\u679c\u53d1\u4ef6\u4eba\u4e3auser@example.com\uff0c\u90a3\u4e48\u8fd9\u91cc\u5c06\u662fexample.com\u3002<\/section>\n<h3><strong>TTL:<\/strong><\/h3>\n<section>Time To Live\uff0c\u751f\u5b58\u65f6\u95f4\uff0c\u6307\u5b9aDNS\u8bb0\u5f55\u5728\u7f13\u5b58\u4e2d\u7684\u6709\u6548\u65f6\u95f4\uff08\u4ee5\u79d2\u4e3a\u5355\u4f4d\uff09\uff0c\u5728\u6b64\u671f\u95f4\u5176\u4ed6DNS\u670d\u52a1\u5668\u65e0\u9700\u91cd\u65b0\u67e5\u8be2\u8bb0\u5f55\u3002<\/p>\n<h3><strong>IN:<\/strong><\/h3>\n<p>Internet \u7c7b\u578b\uff0c\u8868\u660e\u8fd9\u662f\u4e00\u4e2a\u4e92\u8054\u7f51\u8d44\u6e90\u8bb0\u5f55\u3002<\/p>\n<h3><strong>TXT:<\/strong><\/h3>\n<p>\u8868\u660e\u8fd9\u662f\u4e00\u4e2a\u6587\u672c\u8bb0\u5f55\u7c7b\u578b\u3002<\/p>\n<h3><strong>&#8220;v=DKIM1; k=rsa; p=base64_public_key&#8221;:<\/strong><\/h3>\n<p>\u8fd9\u662f\u4e00\u4e2a\u5b57\u7b26\u4e32\u503c\uff0c\u5176\u4e2d\u5305\u542b\u4e86DKIM\u8bb0\u5f55\u7684\u5177\u4f53\u53c2\u6570\uff1a<\/p>\n<ul>\n<li><strong>v: \u7248\u672c\u53f7<\/strong>\uff0c\u8fd9\u91cc\u662fDKIM1\uff0c\u6307DKIM\u534f\u8bae\u7248\u672c1\u3002<\/li>\n<li><strong>k: \u5bc6\u94a5\u7c7b\u578b<\/strong>\uff0c\u6b64\u5904\u7684rsa\u8868\u793a\u4f7f\u7528RSA\u7b97\u6cd5\u7684\u516c\u94a5\u3002<\/li>\n<li><strong>p: \u516c\u94a5\u672c\u8eab<\/strong>\uff0c\u5b83\u662f\u79c1\u94a5\u5bf9\u5e94\u7684\u516c\u94a5\uff0c\u7ecf\u8fc7Base64\u7f16\u7801\u540e\u7684\u5b57\u7b26\u4e32\u5f62\u5f0f\uff0c\u90ae\u4ef6\u670d\u52a1\u5668\u53ef\u4ee5\u901a\u8fc7\u8fd9\u4e2a\u516c\u94a5\u9a8c\u8bc1\u90ae\u4ef6\u5934\u90e8\u643a\u5e26\u7684DKIM\u7b7e\u540d\u3002<\/li>\n<\/ul>\n<p>\u6b64\u5916\uff0cDKIM TXT\u8bb0\u5f55\u8fd8\u53ef\u80fd\u5305\u542b\u5176\u4ed6\u53c2\u6570\uff0c\u5982\uff1a<\/p>\n<ul>\n<li>t=\uff1a\u7b7e\u540d\u65f6\u95f4\u6233\u9009\u9879\u3002<\/li>\n<li>s=\uff1a\u670d\u52a1\u7c7b\u578b\u9009\u9879\uff0c\u7528\u4e8e\u9650\u5b9a\u7b7e\u540d\u7684\u5e94\u7528\u8303\u56f4\u3002<\/li>\n<li>h=\uff1a\u7b7e\u540d\u5934\u5217\u8868\uff0c\u5217\u51fa\u54ea\u4e9b\u90ae\u4ef6\u5934\u4f1a\u88ab\u7eb3\u5165\u7b7e\u540d\u8ba1\u7b97\u4e2d\u3002<\/li>\n<li>g=\uff1a\u516c\u94a5\u7ba1\u7406\u89c4\u8303\uff08GUA\uff09\u9009\u9879\uff0c\u6307\u5411\u53e6\u4e00\u4e2aURI\uff0c\u53ef\u7528\u4e8e\u66f4\u65b0\u516c\u94a5\u4fe1\u606f\u3002<\/li>\n<\/ul>\n<p>DKIM\u7b7e\u540d\u5b9e\u9645\u5e94\u7528\u65f6\uff0c\u90ae\u4ef6\u5934\u90e8\u4f1a\u6709DKIM-Signature\u5b57\u6bb5\uff08\u4e0b\u6587\u4f1a\u505a\u4ecb\u7ecd\uff09\uff0c\u5176\u4e2d\u7684d=\uff08domain\uff09\u3001s=\uff08selector\uff09\u7b49\u6807\u7b7e\u4e0eDNS\u4e2d\u7684DKIM TXT\u8bb0\u5f55\u5bf9\u5e94\uff0c\u5171\u540c\u5b8c\u6210\u90ae\u4ef6\u7684\u8eab\u4efd\u9a8c\u8bc1\u8fc7\u7a0b\u3002<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section>\n<h2><strong>DKIM\u914d\u7f6e\u793a\u4f8b<\/strong><\/h2>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<h3><strong>\u751f\u6210\u5bc6\u94a5<\/strong><\/h3>\n<section>\u5728Linux\u7cfb\u7edf\uff0c\u53ef\u4ee5\u901a\u8fc7openssl\u547d\u4ee4\u5206\u522b\u751f\u6210\u516c\u94a5\u548c\u79c1\u94a5\u3002\u751f\u6210\u79c1\u94a5\u547d\u4ee4\u793a\u4f8b\u5982\u4e0b\uff0c\u751f\u6210\u7684\u79c1\u94a5\u9700\u8981\u914d\u7f6e\u5230\u90ae\u4ef6\u7cfb\u7edf\u4e0a\uff08\u5177\u4f53\u914d\u7f6e\u65b9\u6cd5\u9700\u8981\u54a8\u8be2\u90ae\u4ef6\u7cfb\u7edf\u5382\u5546\uff09\uff1a<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"shell\"><code><span class=\"code-snippet_outer\">[root@localhost tmp]# openssl genrsa -out rsa.private 1024\r\nGenerating RSA private key, 1024 bit long modulus<\/span><\/code><code><span class=\"code-snippet_outer\">.................++++++<\/span><\/code><code><span class=\"code-snippet_outer\">........................++++++<\/span><\/code><code><span class=\"code-snippet_outer\">e is 65537 (0x10001)<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<\/section>\n<section>\u751f\u6210\u516c\u94a5\u547d\u4ee4\u793a\u5982\u4e0b\uff0c\u751f\u6210\u7684\u516c\u94a5\u9700\u8981\u914d\u7f6e\u5230\u57df\u540d\u7684DNS\u8bb0\u5f55\u4e2d\uff1a<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\">[root@localhost tmp]<span class=\"code-snippet__meta\"># openssl rsa -in rsa.private -out rsa.public -pubout -outform PEM<\/span><\/span><\/code><code>\r\n<\/code><code><span class=\"code-snippet_outer\"># \u4e0b\u9762\u547d\u4ee4\u662f\u5217\u51fa\u516c\u94a5\u4fe1\u606f\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">[root@localhost tmp]<span class=\"code-snippet__meta\"># cat rsa.public \r\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">-----BEGIN PUBLIC KEY-----\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDATePPt6HZkegPZq3Rt5EJzl3\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">tVV8VEC3TroXsw11mf\/JKXGETYtnjm08unmnjkemIGPKOwnuWCQNR3nEWwYzQAa1\r\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__number\">2<\/span>YXTHVuntqfdohDGlGQB7DHkvTp3R5bw4u16yrkZ816C6pLAXgHtd\/YEffoZMehe\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">gX\/upuGfo6yhScgEkQIDAQAB\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">-----END PUBLIC KEY-----<\/span><\/code><\/pre>\n<\/section>\n<h3><strong>\u914d\u7f6e\u79c1\u94a5<\/strong><\/h3>\n<section>\n<section>\n<section>\u79c1\u94a5\u9700\u8981\u914d\u7f6e\u5230\u90ae\u4ef6\u7cfb\u7edf\u4e2d\uff0c\u5177\u4f53\u914d\u7f6e\u65b9\u6cd5\u9700\u8981\u54a8\u8be2\u60a8\u7684\u90ae\u4ef6\u7cfb\u7edf\u63d0\u4f9b\u5546\u3002\u540c\u65f6\uff0c\u5982\u4f55\u542f\u7528DKIM\u529f\u80fd\u4e5f\u9700\u8981\u54a8\u8be2\u60a8\u7684\u90ae\u4ef6\u7cfb\u7edf\u63d0\u4f9b\u5546\u3002<\/section>\n<h3><strong>\u914d\u7f6e\u516c\u94a5<\/strong><\/h3>\n<section>\u516c\u94a5\u9700\u8981\u914d\u7f6e\u5230DNS\u89e3\u6790\u8bb0\u5f55\u4e2d\uff0c\u4ee5mailabc.cn\u57df\u540d\u4e3a\u4f8b\uff0c\u5728\u963f\u91cc\u4e91\u7684\u57df\u540d\u63a7\u5236\u53f0\u6dfb\u52a0TXT\u7c7b\u578b\u7684\u8bb0\u5f55\uff0c\u8bb0\u5f55\u503c\u914d\u7f6e\u5982\u4e0b\uff1a<\/section>\n<\/section>\n<\/section>\n<section>\n<section><a href=\"\/blog\/wp-content\/uploads\/2024\/04\/2024041202593973.webp\" rel=\"nofollow\" ><img class=\"aligncenter wp-image-105\" data-original=\"\/blog\/wp-content\/uploads\/2024\/04\/2024041202593973.webp\"  alt=\"\" width=\"770\" height=\"729\" \/><\/a><\/section>\n<noscript><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-105\" src=\"\/blog\/wp-content\/uploads\/2024\/04\/2024041202593973.webp\" alt=\"\" width=\"770\" height=\"729\" \/><\/a><\/section><\/noscript>\n<\/section>\n<section>\n<p style=\"text-align: center;\"><span style=\"font-size: 8pt;\">\u963f\u91cc\u4e91\u57df\u540d\u89e3\u6790\u754c\u9762<\/span><\/p>\n<\/section>\n<section>\n<section>\n<section>\u5176\u4e2d\u8bb0\u5f55\u7c7b\u578b\u4e3aTXT\uff1b\u4e3b\u673a\u8bb0\u5f55\u4e3adkim._domainkey\uff0c\u8fd9\u91cc\u7684dkim\u5c5e\u4e8e\u81ea\u5b9a\u4e49\u7684selector\uff1b\u8bb0\u5f55\u503c\u5982\u4e0b\uff0c\u5176\u4e2dp=\u8868\u793a\u4e0a\u9762\u751f\u6210\u7684\u516c\u94a5\u3002<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\">v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDATePPt6HZkegPZq3Rt5EJzl3tVV8VEC3TroXsw11mf\/JKXGETYtnjm08unmnjkemIGPKOwnuWCQNR3nEWwYzQAa12YXTHVuntqfdohDGlGQB7DHkvTp3R5bw4u16yrkZ816C6pLAXgHtd\/YEffoZMehegX\/upuGfo6yhScgEkQIDAQAB<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<\/section>\n<section>DNS\u8bb0\u5f55\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7dig\u6216nslookup\u67e5\u8be2\u3002\u4ee5mailabc.cn\u57df\u540d\u4e3a\u4f8b\uff0c\u67e5\u8be2\u7ed3\u679c\u5982\u4e0b\uff1a<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"c\"><code><span class=\"code-snippet_outer\">[root@localhost tmp]<span class=\"code-snippet__meta\"># dig dkim._domainkey.mailabc.cn txt\r\n<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">;; ANSWER SECTION:<\/span><\/code><code><span class=\"code-snippet_outer\">dkim._domainkey.mailabc.cn. <span class=\"code-snippet__number\">600<\/span> IN \u00a0 \u00a0 \u00a0TXT \u00a0 \u00a0 <span class=\"code-snippet__string\">\"v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDATePPt6HZkegPZq3Rt5EJzl3tVV8VEC3TroXsw11mf\/JKXGETYtnjm08unmnjkemIGPKOwnuWCQNR3nEWwYzQAa12YXTHVuntqfdohDGlGQB7DHkvTp3R5bw4u16yrkZ816C6pLAXgHtd\/YEffoZMehegX\/upuGfo6yhScgEkQIDAQAB\"<\/span><\/span><\/code><\/pre>\n<\/section>\n<section>\u81f3\u6b64\uff0c\u6240\u6709\u914d\u7f6e\u5de5\u4f5c\u5b8c\u6210\u3002<\/section>\n<section>\n<section>\n<section>\n<h2><strong>\u5982\u4f55\u9a8c\u8bc1\u90ae\u4ef6\u542f\u7528\u4e86DKIM\u7b7e\u540d\uff1f<\/strong><\/h2>\n<\/section>\n<section>\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section>\u4e0a\u6587\u63d0\u5230\u5f53\u542f\u7528DKIM\u7b7e\u540d\u65f6\uff0c\u5728\u4fe1\u5934\u4e2d\u4f1a\u5b58\u5728DKIM-Signature\u5b57\u6bb5\uff0c\u4ee5t1@mailabc.cn\u7ed9163.com\u7684\u90ae\u7bb1\u53d1\u9001\u90ae\u4ef6\u4e3a\u4f8b\uff0c\u5728\u4fe1\u5934\u4e2d\u5b58\u5728\u5982\u4e0b\u4fe1\u606f\uff1a<\/section>\n<\/section>\n<\/section>\n<section>\n<section><a href=\"\/blog\/wp-content\/uploads\/2024\/04\/2024041203005536.webp\" rel=\"nofollow\" ><img class=\"aligncenter size-full wp-image-106\" data-original=\"\/blog\/wp-content\/uploads\/2024\/04\/2024041203005536.webp\"  alt=\"\" \/><\/a><\/section>\n<noscript><img loading=\"lazy\" decoding=\"async\" width=\"834\" height=\"597\" class=\"aligncenter size-full wp-image-106\" src=\"\/blog\/wp-content\/uploads\/2024\/04\/2024041203005536.webp\" alt=\"\" \/><\/a><\/section><\/noscript>\n<\/section>\n<section>\n<p style=\"text-align: center;\"><span style=\"font-size: 8pt;\">\u542f\u7528DKIM\u7b7e\u540d\u540e\u7684\u4fe1\u5934<\/span><\/p>\n<\/section>\n<section>\n<section>\n<section>\u5f53\u4fe1\u5934\u4e2d\u5b58\u5728\u4e0a\u8ff0\u7b7e\u540d\u4fe1\u606f\uff0c\u5219\u8868\u660e\u53d1\u4fe1\u65b9\u542f\u7528\u4e86DKIM\u7b7e\u540d\u3002<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">DKIM-Signature: v=1; a=rsa-sha256; c=relaxed\/relaxed;\r\n  d=mailabc.cn; s=dkim; h=Received:Date:From:To:Subject:\r\n  Content-Type:MIME-Version:Message-ID; bh=u1bnFmVtzdAeVZ2afeXyEnM\r\n  Ns4aUQjMDjQnsu5zkeds=; b=Jk7hVIFXExhLitRylf\/MmzlWqB4Lf+zq+Y7\/+Pa\r\n  ZGnCkKMNcTjs3DAwcr99vgTlMaVXhKMusDGuC7OVUFAPMyFlnlXbWyXgR\/SNdP2Y\r\n  DmpA2TWnJ260aNsgx4a56sR4RSrMBCZG0hZQZ3jeoGdIgI1C7sXlLvgAvouWqSvp\r\n  F3kw=<\/pre>\n<p>\u4ee5\u4e0a\u8ff0\u4fe1\u5934\u4e3a\u4f8b\uff0cDKIM-Signature\u5185\u5bb9\u89e3\u91ca\u5982\u4e0b\uff1a<\/p>\n<\/section>\n<\/section>\n<\/section>\n<section>\n<section>\n<section><em><strong>\ud83d\udd39 v=1:\u00a0<\/strong>\u8868\u793aDKIM\u7b7e\u540d\u7684\u7248\u672c\u4e3a1\u3002<\/em><\/section>\n<section><strong><em>\ud83d\udd39\u00a0a=rsa-sha256:<\/em><\/strong><em>\u00a0\u6307\u5b9a\u4f7f\u7528\u7684\u7b7e\u540d\u7b97\u6cd5\u662fRSA\u52a0\u5bc6\u7b97\u6cd5\u914d\u5408SHA-256\u54c8\u5e0c\u7b97\u6cd5\u3002<\/em><\/section>\n<section><strong><em>\ud83d\udd39\u00a0c=relaxed\/relaxed:\u00a0<\/em><\/strong><em>\u6307\u5b9a\u5934\u90e8canonicalization\uff08\u89c4\u8303\u5316\uff09\u65b9\u5f0f\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c&#8221;relaxed&#8221;\u8868\u793a\u5bf9\u90ae\u4ef6\u5934\u90e8\u5b57\u6bb5\u7684\u5904\u7406\u65b9\u5f0f\u8f83\u4e3a\u5bbd\u677e\uff0c\u5141\u8bb8\u4e00\u4e9b\u975e\u5173\u952e\u5b57\u7b26\uff08\u5982\u591a\u4f59\u7684\u7a7a\u683c\u3001\u6362\u884c\u7b26\u7b49\uff09\u88ab\u5ffd\u7565\uff0c\u540c\u65f6\u5728\u5904\u7406\u987a\u5e8f\u4e0a\u4e5f\u53ef\u4ee5\u4e0d\u4e25\u683c\u9075\u5faaRFC\u89c4\u5b9a\u7684\u987a\u5e8f\u3002<\/em><\/section>\n<section><strong><em>\ud83d\udd39\u00a0d=mailabc.cn:<\/em><\/strong><em>\u00a0\u8868\u793a\u8be5\u7b7e\u540d\u5173\u8054\u7684\u57df\u540d\u662fmailabc.cn\uff0c\u5373\u90ae\u4ef6\u58f0\u79f0\u6765\u81ea\u8fd9\u4e2a\u57df\u540d\u3002<\/em><\/section>\n<section><strong><em>\ud83d\udd39\u00a0s=dkim:\u00a0<\/em><\/strong><em>\u8868\u793a\u7b7e\u540d\u7684\u9009\u62e9\u5668\uff08selector\uff09\uff0c\u7528\u4e8e\u5728DNS\u4e2d\u67e5\u627e\u5bf9\u5e94\u7684DKIM\u516c\u94a5\u8bb0\u5f55\u3002<\/em><\/section>\n<section><strong><em>\ud83d\udd39\u00a0h=Received:<\/em><\/strong><em> Date: From: To: Subject: Content-Type: MIME-Version: Message-ID:: \u5217\u51fa\u4e86\u53c2\u4e0e\u7b7e\u540d\u8ba1\u7b97\u7684\u90ae\u4ef6\u5934\u90e8\u5b57\u6bb5\uff0c\u8fd9\u4e9b\u5b57\u6bb5\u7684\u5185\u5bb9\u5c06\u88ab\u54c8\u5e0c\u5316\u7136\u540e\u7528\u79c1\u94a5\u7b7e\u540d\u3002<\/em><\/section>\n<section><em>\ud83d\udd39<strong>\u00a0bh=u1bnFmVtzdAeVZ2afeXyEnMNs4aUQjMDjQnsu5zkeds=:\u00a0<\/strong>\u8fd9\u662f\u4e00\u4e2a\u57fa\u4e8e\u9009\u5b9a\u5934\u90e8\u5b57\u6bb5\u8ba1\u7b97\u5f97\u51fa\u7684\u54c8\u5e0c\u6458\u8981\uff0c\u91c7\u7528\u7684\u662fbase64\u7f16\u7801\u3002<\/em><\/section>\n<section><em>\ud83d\udd39\u00a0<strong>b=Jk7hVIFXExhLitRylf\/MmzlWqB4Lf+zq+Y7\/+PaZGnCkKMNcTjs3DAwcr99vgTlMaVXhKMusDGuC7OVUFAPMyFlnlXbWyXgR\/SNdP2YDmpA2TWnJ260aNsgx4a56sR4RSrMBCZG0hZQZ3jeoGdIgI1C7sXlLvgAvouWqSvpF3kw=<\/strong><strong>:\u00a0<\/strong>\u8fd9\u662f\u7b7e\u540d\u6570\u636e\uff0c\u4e5f\u662fbase64\u7f16\u7801\u540e\u7684\u7ed3\u679c\uff0c\u5305\u542b\u4e86\u7ecf\u8fc7\u79c1\u94a5\u7b7e\u540d\u7684\u54c8\u5e0c\u503c\u3002<\/em>\u5f53\u63a5\u6536\u90ae\u4ef6\u670d\u52a1\u5668\u6536\u5230\u8fd9\u5c01\u90ae\u4ef6\u65f6\uff0c\u4f1a\u6839\u636ed=\u548cs=\u7684\u503c\u53bbDNS\u4e2d\u67e5\u627e\u5bf9\u5e94\u7684DKIM TXT\u8bb0\u5f55\uff0c\u83b7\u53d6\u516c\u94a5\u3002\u7136\u540e\uff0c\u670d\u52a1\u5668\u4f1a\u5bf9\u90ae\u4ef6\u5934\u90e8\u4e2d\u5217\u51fa\u7684\u5b57\u6bb5\u6309\u7167\u540c\u6837\u7684\u65b9\u5f0f\u8fdb\u884c\u89c4\u8303\u5316\u5904\u7406\uff0c\u8ba1\u7b97\u51fa\u65b0\u7684\u54c8\u5e0c\u503c\uff0c\u5e76\u5229\u7528\u83b7\u53d6\u5230\u7684\u516c\u94a5\u9a8c\u8bc1\u7b7e\u540d\u7684\u6709\u6548\u6027\u3002\u5982\u679c\u9a8c\u8bc1\u6210\u529f\uff0c\u5219\u8bf4\u660e\u90ae\u4ef6\u7684\u6765\u6e90\u5f97\u5230\u4e86DKIM\u7b7e\u540d\u4fdd\u62a4\uff0c\u63d0\u9ad8\u4e86\u90ae\u4ef6\u7684\u53ef\u4fe1\u5ea6\u3002<\/section>\n<\/section>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u4ec0\u4e48\u662fDKIM DomainKeys Identified Mail (DKIM) \u662f\u4e00\u79cd\u7535\u5b50\u90ae\u4ef6\u9a8c\u8bc1\u7cfb\u7edf\uff0c\u65e8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":115,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10],"tags":[18,31],"class_list":["post-104","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-11","category-10","tag-dkim","tag-31"],"_links":{"self":[{"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/posts\/104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/comments?post=104"}],"version-history":[{"count":17,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions"}],"predecessor-version":[{"id":706,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/posts\/104\/revisions\/706"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/media\/115"}],"wp:attachment":[{"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/media?parent=104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/categories?post=104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mailabc.cn\/blog\/wp-json\/wp\/v2\/tags?post=104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}