{"id":95,"date":"2026-09-02T18:40:35","date_gmt":"2026-09-02T09:40:35","guid":{"rendered":"https:\/\/motoki-design.co.jp\/tools\/mail-header\/"},"modified":"2026-09-02T18:50:16","modified_gmt":"2026-09-02T09:50:16","slug":"mail-header","status":"publish","type":"page","link":"https:\/\/motoki-design.co.jp\/tools\/mail-header\/","title":{"rendered":"\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\u89e3\u6790\u30c4\u30fc\u30eb"},"content":{"rendered":"\n<div id=\"wt-mailheader\" class=\"wt-tool\">\n\t<p class=\"wt-lead\">\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001<strong>SPF\u30fbDKIM\u30fbDMARC\u306e\u8a8d\u8a3c\u7d50\u679c\u3001\u7d4c\u7531\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u3001\u5404\u4e2d\u7d99\u3067\u306e\u9045\u5ef6<\/strong>\u3092\u8aad\u307f\u89e3\u304d\u307e\u3059\u3002\u300c\u306a\u305c\u8ff7\u60d1\u30e1\u30fc\u30eb\u306b\u5165\u3063\u305f\u306e\u304b\u300d\u300c\u3069\u3053\u3067\u914d\u9001\u304c\u6b62\u307e\u3063\u3066\u3044\u305f\u306e\u304b\u300d\u306e\u539f\u56e0\u7a76\u660e\u306b\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\t<div class=\"wt-policy\" style=\"border-color:#cfe3cf;background:#f3faf3;margin-top:0\">\n\t\t<p class=\"wt-policy-title\">\ud83d\udd12 \u3053\u306e\u51e6\u7406\u306f\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3060\u3051\u3067\u5b8c\u7d50\u3057\u307e\u3059<\/p>\n\t\t<ul>\n\t\t\t<li>\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\u306b\u306f<strong>\u9001\u4fe1\u8005\u30fb\u53d7\u4fe1\u8005\u306e\u30a2\u30c9\u30ec\u30b9\u3084\u30b5\u30fc\u30d0\u30fc\u60c5\u5831<\/strong>\u304c\u542b\u307e\u308c\u307e\u3059\u3002\u305d\u306e\u305f\u3081\u3001\u8cbc\u308a\u4ed8\u3051\u305f\u5185\u5bb9\u306f<strong>\u30b5\u30fc\u30d0\u30fc\u306b\u4e00\u5207\u9001\u4fe1\u305b\u305a<\/strong>\u3001\u304a\u4f7f\u3044\u306e\u30d6\u30e9\u30a6\u30b6\u306e\u4e2d\u3060\u3051\u3067\u89e3\u6790\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\t\t\t<li>\u901a\u4fe1\u304c\u767a\u751f\u3057\u306a\u3044\u305f\u3081\u3001\u696d\u52d9\u30e1\u30fc\u30eb\u306e\u30d8\u30c3\u30c0\u30fc\u3067\u3082\u5b89\u5fc3\u3057\u3066\u304a\u4f7f\u3044\u3044\u305f\u3060\u3051\u307e\u3059\u3002<\/li>\n\t\t<\/ul>\n\t<\/div>\n\n\t<form class=\"wt-form\" style=\"margin-top:1.2em\" onsubmit=\"return false\">\n\t\t<div class=\"wt-field\">\n\t\t\t<label for=\"wt-mh-input\">\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\uff08Received: \u3084 Authentication-Results: \u3092\u542b\u3080\u90e8\u5206\u3092\u305d\u306e\u307e\u307e\u8cbc\u308a\u4ed8\u3051\uff09<\/label>\n\t\t\t<textarea id=\"wt-mh-input\" class=\"wt-input\" rows=\"10\" spellcheck=\"false\" placeholder=\"Delivered-To: you@example.co.jp\nReceived: by 2002:...\nAuthentication-Results: mx.example.jp; spf=pass ... dkim=pass ... dmarc=pass ...\nFrom: \u9001\u4fe1\u8005 &lt;sender@example.com&gt;\nSubject: =?UTF-8?B?44GT44KT44Gr44Gh44Gv?=\n...\"><\/textarea>\n\t\t<\/div>\n\t\t<div class=\"wt-row\" style=\"margin-top:1em\">\n\t\t\t<button class=\"wt-btn\" type=\"button\" id=\"wt-mh-run\">\u89e3\u6790\u3059\u308b<\/button>\n\t\t<\/div>\n\t\t<p class=\"wt-privacy-note\">\u4f1a\u54e1\u767b\u9332\u30fb\u30ed\u30b0\u30a4\u30f3\u4e0d\u8981\uff0f<strong>\u8cbc\u308a\u4ed8\u3051\u305f\u5185\u5bb9\u306f\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093<\/strong><\/p>\n\t<\/form>\n\n\t<div class=\"wt-status\" hidden><\/div>\n\t<div class=\"wt-result\" hidden><\/div>\n\n\t<div class=\"wt-disclaimer\">\n\t\t<strong>\u30d8\u30c3\u30c0\u30fc\u306e\u53d6\u308a\u51fa\u3057\u65b9<\/strong><br>\n\t\t<strong>Gmail<\/strong>\uff1a\u30e1\u30fc\u30eb\u3092\u958b\u3044\u3066\u53f3\u4e0a\u306e\u300c\ufe19\u300d\u2192\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u30bd\u30fc\u30b9\u3092\u8868\u793a\u300d\u3002<br>\n\t\t<strong>Outlook<\/strong>\uff1a\u30e1\u30fc\u30eb\u3092\u958b\u3044\u3066\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u2192\u300c\u30d7\u30ed\u30d1\u30c6\u30a3\u300d\u2192\u300c\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30d8\u30c3\u30c0\u30fc\u300d\u3002<br>\n\t\t<strong>Apple Mail<\/strong>\uff1a\u300c\u8868\u793a\u300d\u2192\u300c\u30e1\u30c3\u30bb\u30fc\u30b8\u300d\u2192\u300c\u3059\u3079\u3066\u306e\u30d8\u30c3\u30c0\u300d\u3002<br>\n\t\t\u672c\u6587\u307e\u3067\u542b\u3081\u3066\u8cbc\u308a\u4ed8\u3051\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\uff08\u672c\u6587\u306f\u89e3\u6790\u5bfe\u8c61\u5916\u3067\u3059\uff09\u3002\n\t<\/div>\n\n\t<div class=\"wt-faq\">\n\t\t<details>\n\t\t\t<summary>SPF\u304cpass\u306a\u306e\u306b\u8ff7\u60d1\u30e1\u30fc\u30eb\u306b\u5165\u308a\u307e\u3059<\/summary>\n\t\t\t<p>SPF\u3060\u3051\u3067\u306f\u4e0d\u5341\u5206\u3067\u3059\u3002<strong>DMARC\u306f\u300cSPF\u307e\u305f\u306fDKIM\u304cpass\u3057\u3001\u304b\u3064From\u30c9\u30e1\u30a4\u30f3\u3068\u4e00\u81f4\u3057\u3066\u3044\u308b\u3053\u3068\u300d<\/strong>\u3092\u6c42\u3081\u307e\u3059\u3002SPF\u304cpass\u3067\u3082\u3001\u305d\u308c\u304c\u691c\u8a3c\u3057\u305f\u306e\u306f Return-Path\uff08\u30a8\u30f3\u30d9\u30ed\u30fc\u30d7From\uff09\u3067\u3001\u898b\u305f\u76ee\u306eFrom\u3068\u5225\u30c9\u30e1\u30a4\u30f3\u306a\u3089\u300c\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u4e0d\u4e00\u81f4\u300d\u3067DMARC\u306f\u5931\u6557\u3057\u307e\u3059\u3002\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u7d4c\u7531\u3067\u3088\u304f\u8d77\u304d\u307e\u3059\u3002DKIM\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u89e3\u6c7a\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>Received \u304c\u591a\u3044\u3068\u554f\u984c\u3067\u3059\u304b\uff1f<\/summary>\n\t\t\t<p>\u6570\u81ea\u4f53\u306f\u554f\u984c\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u898b\u308b\u3079\u304d\u306f<strong>\u5404\u30db\u30c3\u30d7\u306e\u6642\u9593\u5dee<\/strong>\u3067\u3059\u3002\u7279\u5b9a\u306e\u4e2d\u7d99\u3067\u6570\u5206\u301c\u6570\u6642\u9593\u6b62\u307e\u3063\u3066\u3044\u308c\u3070\u3001\u305d\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u30b0\u30ec\u30a4\u30ea\u30b9\u30c6\u30a3\u30f3\u30b0\uff08\u4e00\u6642\u62d2\u5426\u3057\u3066\u518d\u9001\u3092\u5f85\u3064\u4ed5\u7d44\u307f\uff09\u3092\u884c\u3063\u3066\u3044\u308b\u304b\u3001\u30ad\u30e5\u30fc\u304c\u8a70\u307e\u3063\u3066\u3044\u307e\u3059\u3002\u30d8\u30c3\u30c0\u30fc\u306f<strong>\u4e0b\u304b\u3089\u4e0a\u3078<\/strong>\u6642\u7cfb\u5217\u306b\u4e26\u3076\u306e\u3067\u3001\u3053\u306e\u30c4\u30fc\u30eb\u3067\u306f\u53d7\u4fe1\u9806\uff08\u53e4\u3044\u9806\uff09\u306b\u4e26\u3079\u66ff\u3048\u3066\u8868\u793a\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\t\t<\/details>\n\t\t<details>\n\t\t\t<summary>\u9001\u308b\u5074\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u305f\u3044\u306e\u3067\u3059\u304c<\/summary>\n\t\t\t<p><a href=\"\/tools\/mail-auth-check\/\">\u30e1\u30fc\u30eb\u8a8d\u8a3c\uff08SPF\u30fbDKIM\u30fbDMARC\uff09\u8a3a\u65ad<\/a>\u3092\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002\u3053\u3061\u3089\u304c\u300c\u5b9f\u969b\u306b\u5c4a\u3044\u305f\u30e1\u30fc\u30eb\u3067\u4f55\u304c\u8d77\u304d\u305f\u304b\u300d\u3092\u898b\u308b\u306e\u306b\u5bfe\u3057\u3001\u3042\u3061\u3089\u306f\u300c\u9001\u308b\u5074\u306eDNS\u8a2d\u5b9a\u304c\u6b63\u3057\u3044\u304b\u300d\u3092\u898b\u307e\u3059\u3002\u4e21\u65b9\u3092\u7a81\u304d\u5408\u308f\u305b\u308b\u3068\u539f\u56e0\u3092\u7d5e\u308a\u8fbc\u3081\u307e\u3059\u3002<\/p>\n\t\t<\/details>\n\t<\/div>\n<\/div>\n\n<div class=\"wt-tool\"><div class=\"wt-policy\"><p class=\"wt-policy-title\">\ud83d\udd12 \u8abf\u3079\u305f\u5185\u5bb9\u306f\u8a18\u9332\u30fb\u516c\u958b\u3057\u307e\u305b\u3093<\/p><ul><li><strong>\u691c\u7d22\u3057\u305f\u5185\u5bb9\u3092\u4fdd\u5b58\u30fb\u4e00\u89a7\u5316\u30fb\u516c\u958b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8abf\u67fb\u7d50\u679c\u3092\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5316\u3057\u3066\u691c\u7d22\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u308a\u3001\u4ed6\u306e\u5229\u7528\u8005\u306b\u898b\u305b\u305f\u308a\u3059\u308b\u3053\u3068\u306f\u4e00\u5207\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li><strong>\u691c\u7d22\u5c65\u6b74\u3092\u6b8b\u3057\u307e\u305b\u3093\u3002<\/strong>\u8ab0\u304c\u4f55\u3092\u8abf\u3079\u305f\u304b\u3092\u7d10\u3065\u3051\u3066\u84c4\u7a4d\u3059\u308b\u3053\u3068\u306f\u3057\u307e\u305b\u3093\u3002\u4f1a\u54e1\u767b\u9332\u30fb\u30ed\u30b0\u30a4\u30f3\u3082\u4e0d\u8981\u3067\u3059\u3002<\/li><li><strong>\u7b2c\u4e09\u8005\u306b\u63d0\u4f9b\u30fb\u8ca9\u58f2\u3057\u307e\u305b\u3093\u3002<\/strong>\u55b6\u696d\u30ea\u30b9\u30c8\u3084\u5e83\u544a\u76ee\u7684\u3067\u306e\u5229\u7528\u3082\u3042\u308a\u307e\u305b\u3093\u3002<\/li><li>\u30b5\u30fc\u30d0\u30fc\u8ca0\u8377\u3092\u6291\u3048\u308b\u305f\u3081\u3001<strong>\u5224\u5b9a\u7d50\u679c\u306e\u307f\u6700\u59271\u6642\u9593\u306e\u4e00\u6642\u30ad\u30e3\u30c3\u30b7\u30e5<\/strong>\u306b\u4fdd\u6301\u3057\u3001\u6642\u9593\u306e\u7d4c\u904e\u3067\u81ea\u52d5\u7684\u306b\u6d88\u3048\u307e\u3059\u3002\u9023\u7d9a\u30a2\u30af\u30bb\u30b9\u306e\u5236\u9650\u7528\u306bIP\u30a2\u30c9\u30ec\u30b9\u3092<strong>\u30cf\u30c3\u30b7\u30e5\u5316\u3057\u305f\u5024<\/strong>\u3092\u6700\u592710\u5206\u9593\u3060\u3051\u4fdd\u6301\u3057\u307e\u3059\uff08\u5143\u306eIP\u30a2\u30c9\u30ec\u30b9\u306f\u4fdd\u5b58\u3057\u307e\u305b\u3093\uff09\u3002<\/li><li>\u8abf\u3079\u305f\u5bfe\u8c61\u306f\u5171\u6709\u7528\u306bURL\u306e<code>#<\/code>\u4ee5\u964d\u306b\u4ed8\u304d\u307e\u3059\u304c\u3001\u3053\u306e\u90e8\u5206\u306f\u30b5\u30fc\u30d0\u30fc\u306b\u3082\u30a2\u30af\u30bb\u30b9\u89e3\u6790\u306b\u3082\u9001\u4fe1\u3055\u308c\u307e\u305b\u3093\u3002<\/li><\/ul><\/div><\/div>\n\n<script>\n(function () {\n\tvar root = document.getElementById('wt-mailheader');\n\tif (!root || !window.WT) return;\n\tvar W = WT;\n\tvar resultBox = root.querySelector('.wt-result');\n\tvar statusBox = root.querySelector('.wt-status');\n\n\t\/\/ \u6298\u308a\u8fd4\u3055\u308c\u305f\u884c\uff08\u5148\u982d\u304c\u7a7a\u767d\uff09\u3092\u524d\u306e\u884c\u306b\u3064\u306a\u3052\u308b\n\tfunction unfold(raw) {\n\t\tvar lines = raw.replace(\/\\r\\n\/g, '\\n').split('\\n');\n\t\tvar out = [];\n\t\tlines.forEach(function (line) {\n\t\t\tif (\/^[ \\t]\/.test(line) && out.length) {\n\t\t\t\tout[out.length - 1] += ' ' + line.trim();\n\t\t\t} else {\n\t\t\t\tout.push(line);\n\t\t\t}\n\t\t});\n\t\treturn out;\n\t}\n\n\t\/\/ MIME\u30a8\u30f3\u30b3\u30fc\u30c9\u3055\u308c\u305f\u65e5\u672c\u8a9e\uff08=?UTF-8?B?...?=\uff09\u3092\u623b\u3059\n\tfunction decodeMime(text) {\n\t\treturn String(text).replace(\/=\\?([^?]+)\\?([BbQq])\\?([^?]*)\\?=\/g, function (all, charset, enc, data) {\n\t\t\ttry {\n\t\t\t\tvar bytes;\n\t\t\t\tif (enc.toUpperCase() === 'B') {\n\t\t\t\t\tvar bin = atob(data.replace(\/\\s\/g, ''));\n\t\t\t\t\tbytes = new Uint8Array(bin.length);\n\t\t\t\t\tfor (var i = 0; i < bin.length; i++) bytes[i] = bin.charCodeAt(i);\n\t\t\t\t} else {\n\t\t\t\t\tvar s = data.replace(\/_\/g, ' ');\n\t\t\t\t\tvar arr = [];\n\t\t\t\t\tfor (var j = 0; j < s.length; j++) {\n\t\t\t\t\t\tif (s[j] === '=' &#038;&#038; \/[0-9A-Fa-f]{2}\/.test(s.substr(j + 1, 2))) {\n\t\t\t\t\t\t\tarr.push(parseInt(s.substr(j + 1, 2), 16)); j += 2;\n\t\t\t\t\t\t} else { arr.push(s.charCodeAt(j)); }\n\t\t\t\t\t}\n\t\t\t\t\tbytes = new Uint8Array(arr);\n\t\t\t\t}\n\t\t\t\treturn new TextDecoder(\/utf-?8\/i.test(charset) ? 'utf-8' : 'iso-2022-jp').decode(bytes);\n\t\t\t} catch (e) {\n\t\t\t\treturn all;\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction headerValue(lines, name) {\n\t\tvar re = new RegExp('^' + name + '\\\\s*:\\\\s*(.*)$', 'i');\n\t\tfor (var i = 0; i < lines.length; i++) {\n\t\t\tvar m = lines[i].match(re);\n\t\t\tif (m) return m[1].trim();\n\t\t}\n\t\treturn '';\n\t}\n\n\tfunction analyze() {\n\t\tvar raw = document.getElementById('wt-mh-input').value;\n\t\tif (!raw.trim()) {\n\t\t\tstatusBox.hidden = false;\n\t\t\tstatusBox.className = 'wt-status is-error';\n\t\t\tstatusBox.textContent = '\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\u3092\u8cbc\u308a\u4ed8\u3051\u3066\u304f\u3060\u3055\u3044\u3002';\n\t\t\tresultBox.hidden = true;\n\t\t\treturn;\n\t\t}\n\t\tstatusBox.hidden = true;\n\n\t\tvar lines = unfold(raw);\n\t\tvar authAll = lines.filter(function (l) { return \/^(Authentication-Results|ARC-Authentication-Results|Received-SPF)\\s*:\/i.test(l); }).join(' ');\n\n\t\tfunction verdict(kind) {\n\t\t\tvar m = authAll.match(new RegExp(kind + '\\\\s*=\\\\s*([a-z]+)', 'i'));\n\t\t\tif (!m &#038;&#038; kind === 'spf') {\n\t\t\t\tvar spfLine = headerValue(lines, 'Received-SPF');\n\t\t\t\tif (spfLine) m = spfLine.match(\/^\\s*([a-z]+)\/i);\n\t\t\t}\n\t\t\treturn m ? m[1].toLowerCase() : '';\n\t\t}\n\n\t\tvar spf = verdict('spf'), dkim = verdict('dkim'), dmarc = verdict('dmarc');\n\n\t\tvar from = decodeMime(headerValue(lines, 'From'));\n\t\tvar to = decodeMime(headerValue(lines, 'To'));\n\t\tvar subject = decodeMime(headerValue(lines, 'Subject'));\n\t\tvar returnPath = headerValue(lines, 'Return-Path').replace(\/[<>]\/g, '');\n\t\tvar messageId = headerValue(lines, 'Message-ID');\n\t\tvar mailer = headerValue(lines, 'X-Mailer') || headerValue(lines, 'User-Agent');\n\t\tvar spamScore = headerValue(lines, 'X-Spam-Score') || headerValue(lines, 'X-Spam-Status');\n\t\tvar listUnsub = headerValue(lines, 'List-Unsubscribe');\n\n\t\t\/\/ From\u30c9\u30e1\u30a4\u30f3\u3068Return-Path\u30c9\u30e1\u30a4\u30f3\u306e\u4e00\u81f4\uff08DMARC\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\uff09\n\t\tvar fromDomain = (from.match(\/@([A-Za-z0-9.-]+)\/) || [])[1] || '';\n\t\tvar rpDomain = (returnPath.match(\/@([A-Za-z0-9.-]+)\/) || [])[1] || '';\n\n\t\t\/\/ Received \u3092\u53e4\u3044\u9806\u306b\n\t\tvar received = lines.filter(function (l) { return \/^Received\\s*:\/i.test(l); })\n\t\t\t.map(function (l) { return l.replace(\/^Received\\s*:\\s*\/i, ''); })\n\t\t\t.reverse();\n\n\t\tvar hops = received.map(function (line, i) {\n\t\t\tvar byM = line.match(\/\\bby\\s+([A-Za-z0-9.\\-_]+)\/i);\n\t\t\tvar fromM = line.match(\/\\bfrom\\s+([A-Za-z0-9.\\-_]+)\/i);\n\t\t\tvar dateM = line.match(\/;\\s*(.+)$\/);\n\t\t\tvar time = dateM ? new Date(dateM[1].trim()) : null;\n\t\t\treturn {\n\t\t\t\tno: i + 1,\n\t\t\t\tfrom: fromM ? fromM[1] : '',\n\t\t\t\tby: byM ? byM[1] : '',\n\t\t\t\ttime: (time && !isNaN(time)) ? time : null,\n\t\t\t\traw: line\n\t\t\t};\n\t\t});\n\t\thops.forEach(function (h, i) {\n\t\t\th.delay = (i > 0 && h.time && hops[i - 1].time)\n\t\t\t\t? Math.round((h.time - hops[i - 1].time) \/ 1000) : null;\n\t\t});\n\n\t\tvar marks = { pass: 'ok', fail: 'ng', softfail: 'warn', neutral: 'warn', none: 'warn', permerror: 'ng', temperror: 'warn', bestguesspass: 'warn' };\n\t\tfunction authCheck(label, value, help) {\n\t\t\tif (!value) return { status: 'na', title: label + ' \u306e\u5224\u5b9a\u7d50\u679c\u304c\u898b\u3064\u304b\u308a\u307e\u305b\u3093', note: '\u53d7\u4fe1\u5074\u304c\u691c\u8a3c\u3057\u3066\u3044\u306a\u3044\u304b\u3001\u8a72\u5f53\u30d8\u30c3\u30c0\u30fc\u304c\u8cbc\u308a\u4ed8\u3051\u7bc4\u56f2\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u305b\u3093\u3002' };\n\t\t\treturn { status: marks[value] || 'warn', title: label + ' \u2026 ' + value, note: help };\n\t\t}\n\n\t\tvar checks = [\n\t\t\tauthCheck('SPF', spf, spf === 'pass'\n\t\t\t\t? '\u9001\u4fe1\u5143\u30b5\u30fc\u30d0\u30fc\u306f\u8a31\u53ef\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u3067\u3057\u305f\u3002'\n\t\t\t\t: '\u9001\u4fe1\u5143\u30b5\u30fc\u30d0\u30fc\u304c\u8a31\u53ef\u30ea\u30b9\u30c8\u306b\u5165\u3063\u3066\u3044\u307e\u305b\u3093\u3002\u8ee2\u9001\u3055\u308c\u305f\u30e1\u30fc\u30eb\u3067\u3082\u8d77\u304d\u307e\u3059\u3002'),\n\t\t\tauthCheck('DKIM', dkim, dkim === 'pass'\n\t\t\t\t? '\u96fb\u5b50\u7f72\u540d\u304c\u691c\u8a3c\u3067\u304d\u3001\u6539\u3056\u3093\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002'\n\t\t\t\t: 'DKIM\u7f72\u540d\u304c\u7121\u3044\u304b\u691c\u8a3c\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059\u3002\u9001\u4fe1\u5074\u3067DKIM\u3092\u6709\u52b9\u306b\u3059\u308b\u3068\u6539\u5584\u3057\u307e\u3059\u3002'),\n\t\t\tauthCheck('DMARC', dmarc, dmarc === 'pass'\n\t\t\t\t? 'SPF\u307e\u305f\u306fDKIM\u304cFrom\u30c9\u30e1\u30a4\u30f3\u3068\u4e00\u81f4\u3057\u307e\u3057\u305f\u3002'\n\t\t\t\t: 'SPF\/DKIM\u304cpass\u3067\u3082\u3001From\u30c9\u30e1\u30a4\u30f3\u3068\u4e00\u81f4\u3057\u3066\u3044\u306a\u3044\u3068DMARC\u306f\u5931\u6557\u3057\u307e\u3059\uff08\u30a2\u30e9\u30a4\u30e1\u30f3\u30c8\u4e0d\u4e00\u81f4\uff09\u3002')\n\t\t];\n\n\t\tif (fromDomain && rpDomain && fromDomain !== rpDomain) {\n\t\t\tchecks.push({\n\t\t\t\tstatus: 'warn',\n\t\t\t\ttitle: 'From \u3068 Return-Path \u306e\u30c9\u30e1\u30a4\u30f3\u304c\u7570\u306a\u308a\u307e\u3059',\n\t\t\t\tnote: 'From \u306f ' + fromDomain + '\u3001Return-Path \u306f ' + rpDomain + ' \u3067\u3059\u3002SPF\u304c\u691c\u8a3c\u3059\u308b\u306e\u306fReturn-Path\u5074\u306e\u305f\u3081\u3001DKIM\u304c\u7121\u3044\u3068DMARC\u306f\u5931\u6557\u3057\u307e\u3059\u3002\u30e1\u30fc\u30eb\u914d\u4fe1\u30b5\u30fc\u30d3\u30b9\u7d4c\u7531\u3067\u3088\u304f\u3042\u308b\u69cb\u6210\u3067\u3059\u3002'\n\t\t\t});\n\t\t}\n\t\tif (listUnsub) {\n\t\t\tchecks.push({ status: 'ok', title: 'List-Unsubscribe\uff08\u914d\u4fe1\u505c\u6b62\u30d8\u30c3\u30c0\u30fc\uff09\u304c\u3042\u308a\u307e\u3059', note: '\u4e00\u62ec\u914d\u4fe1\u30e1\u30fc\u30eb\u3067\u306f\u5fc5\u9808\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002' });\n\t\t}\n\t\tif (spamScore) {\n\t\t\tchecks.push({ status: 'na', title: '\u53d7\u4fe1\u5074\u306e\u30b9\u30d1\u30e0\u5224\u5b9a\u5024', note: spamScore });\n\t\t}\n\n\t\tvar ok = (spf === 'pass' || dkim === 'pass') && dmarc === 'pass';\n\t\tvar status = dmarc === 'fail' ? 'ng' : (ok ? 'ok' : 'warn');\n\t\tvar title = ok ? '\u8a8d\u8a3c\u306f\u3059\u3079\u3066\u901a\u904e\u3057\u3066\u3044\u307e\u3059'\n\t\t\t: (dmarc === 'fail' ? 'DMARC\u8a8d\u8a3c\u306b\u5931\u6557\u3057\u3066\u3044\u307e\u3059' : '\u4e00\u90e8\u306e\u8a8d\u8a3c\u304c\u78ba\u8a8d\u3067\u304d\u307e\u305b\u3093');\n\n\t\tvar html = W.head(status, subject ? subject.slice(0, 60) : '\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\u306e\u89e3\u6790\u7d50\u679c', W.esc(title),\n\t\t\t[ok ? '\u3053\u306e\u30e1\u30fc\u30eb\u304c\u8ff7\u60d1\u30e1\u30fc\u30eb\u6271\u3044\u3055\u308c\u305f\u5834\u5408\u3001\u539f\u56e0\u306f\u8a8d\u8a3c\u4ee5\u5916\uff08\u672c\u6587\u306e\u5185\u5bb9\u3084\u9001\u4fe1\u5143\u306e\u8a55\u5224\uff09\u306b\u3042\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u3044\u3067\u3059\u3002' : '']);\n\n\t\thtml += '<div class=\"wt-cards\">';\n\t\thtml += W.card('SPF', spf ? W.esc(spf) : '', '\u4e0d\u660e');\n\t\thtml += W.card('DKIM', dkim ? W.esc(dkim) : '', '\u4e0d\u660e');\n\t\thtml += W.card('DMARC', dmarc ? W.esc(dmarc) : '', '\u4e0d\u660e');\n\t\thtml += W.card('\u4e2d\u7d99\u30b5\u30fc\u30d0\u30fc\u6570', W.esc(hops.length + ' \u53f0'));\n\t\thtml += '<\/div>';\n\n\t\thtml += '<h3 class=\"wt-h\">\u8a8d\u8a3c\u306e\u5224\u5b9a<\/h3>';\n\t\thtml += W.checks(checks);\n\n\t\thtml += '<h3 class=\"wt-h\">\u30e1\u30fc\u30eb\u306e\u57fa\u672c\u60c5\u5831<\/h3>';\n\t\thtml += W.rows([\n\t\t\t['\u4ef6\u540d', subject ? W.esc(subject) : ''],\n\t\t\t['From\uff08\u898b\u305f\u76ee\u306e\u9001\u4fe1\u8005\uff09', from ? W.esc(from) : ''],\n\t\t\t['Return-Path\uff08\u5b9f\u969b\u306e\u9001\u4fe1\u5143\uff09', returnPath ? '<span class=\"wt-mono\">' + W.esc(returnPath) + '<\/span>' : ''],\n\t\t\t['To', to ? W.esc(to) : ''],\n\t\t\t['Message-ID', messageId ? '<span class=\"wt-mono\">' + W.esc(messageId) + '<\/span>' : ''],\n\t\t\t['\u9001\u4fe1\u30bd\u30d5\u30c8', mailer ? W.esc(mailer) : '']\n\t\t]);\n\n\t\tif (hops.length) {\n\t\t\thtml += '<h3 class=\"wt-h\">\u914d\u9001\u7d4c\u8def\uff08\u53e4\u3044\u9806\uff09<\/h3>';\n\t\t\thtml += '<p class=\"wt-note\" style=\"margin:0 0 .8em\">\u4e0a\u304c\u9001\u4fe1\u5074\u3001\u4e0b\u304c\u53d7\u4fe1\u5074\u3067\u3059\u3002\u300c\u524d\u304b\u3089\u306e\u7d4c\u904e\u300d\u304c\u5927\u304d\u3044\u884c\u3067\u914d\u9001\u304c\u6ede\u3063\u3066\u3044\u307e\u3059\u3002<\/p>';\n\t\t\thtml += W.dataTable({\n\t\t\t\tid: 'wt-mh-hops',\n\t\t\t\tfilename: 'mail-hops.csv',\n\t\t\t\trows: hops.map(function (h) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tno: h.no,\n\t\t\t\t\t\tfrom: h.from || '-',\n\t\t\t\t\t\tby: h.by || '-',\n\t\t\t\t\t\ttime: h.time ? h.time.toLocaleString('ja-JP') : '-',\n\t\t\t\t\t\tdelay: h.delay === null ? '-' : (h.delay + ' \u79d2')\n\t\t\t\t\t};\n\t\t\t\t}),\n\t\t\t\tcolumns: [\n\t\t\t\t\t{ key: 'no', label: '#' },\n\t\t\t\t\t{ key: 'from', label: '\u9001\u4fe1\u5143', wrap: true },\n\t\t\t\t\t{ key: 'by', label: '\u53d7\u4fe1\u3057\u305f\u30b5\u30fc\u30d0\u30fc', wrap: true },\n\t\t\t\t\t{ key: 'time', label: '\u6642\u523b' },\n\t\t\t\t\t{ key: 'delay', label: '\u524d\u304b\u3089\u306e\u7d4c\u904e' }\n\t\t\t\t]\n\t\t\t});\n\t\t}\n\n\t\tif (authAll) {\n\t\t\thtml += '<h3 class=\"wt-h\">\u8a8d\u8a3c\u7d50\u679c\u30d8\u30c3\u30c0\u30fc\uff08\u539f\u6587\uff09<\/h3>';\n\t\t\thtml += '<pre class=\"wt-code\" style=\"white-space:pre-wrap\">' + W.esc(authAll.slice(0, 1500)) + '<\/pre>';\n\t\t}\n\n\t\thtml += '<p class=\"wt-note\" style=\"margin-top:1.2em\"><a href=\"\/tools\/mail-auth-check\/#' +\n\t\t\tencodeURIComponent(fromDomain || '') + '\">\u9001\u4fe1\u5074\uff08' + W.esc(fromDomain || '\u30c9\u30e1\u30a4\u30f3') + '\uff09\u306eDNS\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b \u2192<\/a><\/p>';\n\n\t\tresultBox.innerHTML = html;\n\t\tresultBox.hidden = false;\n\t}\n\n\tdocument.getElementById('wt-mh-run').addEventListener('click', analyze);\n\troot.querySelector('form').addEventListener('submit', function (e) { e.preventDefault(); analyze(); });\n})();\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3068\u3001SPF\u30fbDKIM\u30fbDMARC\u306e\u8a8d\u8a3c\u7d50\u679c\u3001\u7d4c\u7531\u3057\u305f\u30b5\u30fc\u30d0\u30fc\u3001\u5404\u4e2d\u7d99\u3067\u306e\u9045\u5ef6\u3092\u8aad\u307f\u89e3\u304d\u307e\u3059\u3002\u300c\u306a\u305c\u8ff7\u60d1\u30e1\u30fc\u30eb\u306b\u5165\u3063\u305f\u306e\u304b\u300d\u300c\u3069\u3053\u3067\u914d\u9001\u304c\u6b62\u307e\u3063\u3066\u3044\u305f\u306e\u304b\u300d\u306e\u539f\u56e0\u7a76\u660e\u306b\u304a\u4f7f\u3044\u304f\u3060\u3055\u3044\u3002  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"swell_btn_cv_data":"","ssp_meta_description":"\u53d7\u4fe1\u3057\u305f\u30e1\u30fc\u30eb\u306e\u30d8\u30c3\u30c0\u30fc\u3092\u8cbc\u308a\u4ed8\u3051\u308b\u3060\u3051\u3067\u3001SPF\u30fbDKIM\u30fbDMARC\u306e\u8a8d\u8a3c\u7d50\u679c\u3001\u7d4c\u7531\u30b5\u30fc\u30d0\u30fc\u3001\u5404\u4e2d\u7d99\u306e\u9045\u5ef6\u3092\u8aad\u307f\u89e3\u304d\u307e\u3059\u3002\u306a\u305c\u8ff7\u60d1\u30e1\u30fc\u30eb\u306b\u5165\u3063\u305f\u304b\u306e\u539f\u56e0\u7a76\u660e\u306b\u3002\u30d6\u30e9\u30a6\u30b6\u5185\u3067\u51e6\u7406\u3057\u9001\u4fe1\u3057\u307e\u305b\u3093\u3002","ssp_meta_title":"\u30e1\u30fc\u30eb\u30d8\u30c3\u30c0\u30fc\u89e3\u6790\uff5cSPF\u30fbDKIM\u7d50\u679c\u3092\u7121\u6599\u78ba\u8a8d","ssp_meta_robots":"","ssp_meta_canonical":"","ssp_meta_image":"","ssp_meta_keyword":"","footnotes":""},"class_list":["post-95","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/95","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/comments?post=95"}],"version-history":[{"count":1,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/95\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/pages\/95\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/motoki-design.co.jp\/tools\/wp-json\/wp\/v2\/media?parent=95"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}