<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="2" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[2]</anchor-end> <code>Received:</code> 欄は、普通<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">電子メイル</anchor>で使って、配送の記録が行われる欄です。
他に、電子ニュースでもかつてはつかわれていました。</p><section><h1>仕様書</h1><refs xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:"><ul xmlns="http://www.w3.org/1999/xhtml"><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="36" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[36]</anchor-end> <cite xml:lang="en">RFC 5321 - Simple Mail Transfer Protocol</cite> (<time>2016-01-10 14:43:30 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://tools.ietf.org/html/rfc5321#section-4.4">https://tools.ietf.org/html/rfc5321#section-4.4</anchor-external></li></ul></refs></section><section><h1>電子メイルにおける Received: 欄</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> 配送の各段階の数だけどんどん追加されていきます。
メイルがどのような経路で配送されたのかやどのサーバーが不調なのかなどの追跡に使用出来ます。
(現在では途中経路を数 hop も経ないで直接サイトからサイトに配送されるのが普通ですし、途中の経過サイトの不調のための遅延もかなり稀ですが、昔はよくあることでした。)</p><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC822</anchor> (822 旧仕様)</li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2822</anchor> (822)</li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC821</anchor> (SMTP 旧仕様)</li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2821</anchor> (SMTP)</li></ul><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="5" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[5]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2822</anchor> は一般的な <code>Received:</code> 欄の構文を規定しています。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2821</anchor> (<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SMTP</anchor>) は、 SMTP サーバーが <code>Received:</code>
欄に記録すること及びその書式を規定しています。 RFC 2821 の構文は
RFC 2822 のものより具体的・厳格になっています。</p><p>RFC 2822, RFC 2821 の旧版である <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC822</anchor>, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC821</anchor>
についても同じような関係がありますが、 2822/2821 程はっきり分化してはいません。</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form><section><h1>値</h1><ul><li>by = domain</li><li>for = addr-spec / &quot;&lt;&quot; [route] addr-spec &quot;&gt;&quot;</li><li>from = domain</li><li>id = word / msg-id</li><li>via = &quot;TCP&quot; (2821) / &quot;UUCP&quot; (2821) / iana-atom 
/ &quot;smtptcp&quot; / &quot;TELNET&quot; (821) / &quot;DDN&quot; / &quot;ARPANET/MILNET&quot; / &quot;EUnet&quot;</li><li>with = &quot;ESMTP&quot; (2821) / &quot;SMTP&quot; (2821) / iana-atom 
/ &quot;X25&quot; (821) / &quot;TCP/SMTP&quot; / &quot;Mailnet&quot; / &quot;BSMTP&quot;</li></ul><p>昔は結構すきなよーな値を入れてたらしい。</p><p>&quot;BSMTP&quot; <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">BITNET</anchor> 版 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SMTP</anchor>?</p><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="11" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[11]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC1428</anchor> は値 <code>convert</code> を規定しています。 &quot;rfc822-to-8bit&quot;, &quot;rfc822-to-base-64&quot; or &quot;rfc822-to-quoted-printable&quot;</li></ul><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="14" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[14]</anchor-end>
<samp class="822">with QMQP</samp>: <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">QMQP</anchor> — Quick Mail Queueing Protocol [djb]
ってのもしばしば使われている模様。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 01:06:33 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="15" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[15]</anchor-end>
<code class="822">from unknown</code> ってのも昔からよく見かけます。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="16" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[16]</anchor-end>
<samp class="822">with internal</samp> なるものも使われています。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 01:08:13 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="37" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[37]</anchor-end> <code>SMTP</code> と <code>ESMTP</code> の値の意味は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 5321</anchor>
には明記されていません。いつどちらを使うべきかは明らかではありません。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="17" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[17]</anchor-end>
<samp class="822">via csmap</samp>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 01:10:29 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="38" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[38]</anchor-end> <code>VIA</code> は省略されることが多いようです。 <code>VIA TCP WITH SMTP</code>
と書いてもほとんど意味が無いからでしょう。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="18" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[18]</anchor-end>
こういうとんでもなのもあった: <samp class="822">with Microsoft SMTPSVC(5.0.2195.6824)</samp>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 01:26:00 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="19" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[19]</anchor-end>
<code class="822">WITH</code> の値に6月に色々追加されています。典拠は RFC-to-be です。</p><p>追加されたのは
<code class="822">ESMTPA</code>, <code class="822">ESMTPS</code>, <code class="822">ESMTPSA</code>, <code class="822">LMTP</code>, <code class="822">LMTPA</code>, <code class="822">LMTPS</code>, <code class="822">LMTPSA</code>, <code class="822">ESMTP</code> です。 <code>A</code> は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">SMTP AUTH</anchor>, <code>S</code> は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TLS</anchor>, <code>LMTP</code> は <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">LMTP</anchor> です。 <code class="822">ESMTP</code> は <q>ESMTP with NO-SOLICITING</q> と書いてありますが、既に <q>SMTP with Service Extensions       [RFC2821] </q> が登録されているので、何かの間違いでしょう。</p><p>(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 02:39:26 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="20" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[20]</anchor-end>
<em>MAIL Parameters</em> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.iana.org/assignments/mail-parameters">http://www.iana.org/assignments/mail-parameters</anchor-external>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 02:39:56 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="21" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[21]</anchor-end>
<samp class="822">with ESMTP/inet</samp> こんなのもある。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 02:42:34 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="22" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[22]</anchor-end>
<samp class="822">by <var>foo.example.org</var> (AppleMailServer 38.0.2.6) id 668620 via NDR</samp></p><p>こんなのがあった。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2004-07-11 02:55:55 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="23" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[23]</anchor-end>
<code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">WITH</anchor></code> として <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MMS</anchor></code>
が登録されました。
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor> <weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">2006-08-12 07:33:09 +00:00</weak>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="24" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[24]</anchor-end>
太古の昔の: <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">WITH</anchor> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">TCP</anchor></code>
(<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">名無しさん</anchor>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="25" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[25]</anchor-end>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Gmail</anchor>: <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">with</anchor> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">HTTP</anchor></code></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="31" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[31]</anchor-end> <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">with</anchor> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">POP3</anchor></code></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="29" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[29]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">IANA</anchor> 登録簿に <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">draft-ietf-eai-rfc5336bis-16</anchor> を出典として
<code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8SMTP</anchor></code>, <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8SMTPA</anchor></code>, 
<code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8SMTPS</anchor></code>, <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8SMTPSA</anchor></code>,
<code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8LMTP</anchor></code>, <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8LMTPA</anchor></code>, 
<code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8LMTPS</anchor></code>, <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF8LMTPSA</anchor></code>
が追加されています。 <time>2011-12-10T11:03:15.00Z</time></p></section><section><h1>注釈 comment について</h1><p>RFC 2821 は慣習的に行われてきた、 comment 内に実ドメイン名・ IP address を
記録する方法を標準化しました。これに限らず Received: 領域の
注釈には有意義な情報が入れられていますから、注釈を取り除いて
解釈するのはよくないかもしれません。</p><p>しかし注釈は (RFC 2821/2822 で入る場所が限定されたとはいえ) RFC 822 以来
各要素間どこにでも入れられるので、構文解析 parse が面倒になります。
また、 RFC 2821 で標準化された注釈とそうでない注釈を
一目で見分ける方法はありません。</p><p>ですから、 Received: を解釈する実装としては、次のようなものが考えられます。</p><ul><li>非構造化 unstructured 領域と同等に見て、構文解析しない</li><li>注釈内の情報を残すのは諦め、取り除いて解析する</li><li>RFC 2821/2822 的に妥当 (で旧構文 obsolete syntax でない) 注釈はなんとか解析する</li><li>注釈は解析しないが、参考情報として残す</li></ul><p>3番目の方法は旧構文の注釈 (例えば date-time 内の注釈) は取り除く必要が
あるので、なんだか面倒そうです。それから4番目の方法は
そこまでするならあと1歩で中身も解析出来る気が。</p><p>わけのわからんことぐたぐた述べてないで実装してみた方が
早いという説もありますが:-)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="6" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[6]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MIME</anchor> は <code>encoded-word</code> を規定していますが、これを <code>Received:</code>
欄の注釈内で使用してもいいのかは不明です。 (See <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">encoded-word</anchor>)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="7" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[7]</anchor-end> <code>Received:</code> 欄の日付の部分の後 (つまり一番最後)
には、その欄を加えたサーバーの現地の<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">時間帯を表す文字列</anchor>を注釈として入れておくと追跡の時に役に立つかもしれないのでイイとされています。</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>env-from</h1><ul><li>Received = rfc2822.Received FWS &quot;env-from&quot; FWS &quot;(&quot; host &quot;)&quot; [CFWS]</li></ul><p>こんなのをつけてくる <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">MTA</anchor> がいるみたい。
例:</p><pre> Received: from localhost (daemon@localhost)
	by smtp.foo.example (8.9.3/8.9.3) with SMTP id KAA25477;
	Fri, 23 Feb 2001 10:42:36 +0900 (JST)
	env-from (from@bar.example)</pre><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>参考</h1><p>Received: 領域の数が多いと配送拒否されることがあるので、
mail-list などで Received: を X-Received: に置き換えることがある。
(あるいはそこでばっさり消されることもある。)</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="9" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[9]</anchor-end> <code>Received:</code> 欄は長くなりがちなので、たいてい折畳まれています。
この時、2行目以降の行頭は <code class="CHARNAME">TAB</code> になっているのが普通です。
また、名前‐値組の間や日付の途中で折畳むことはありません。</p><p>しかし、これはそうなっていることが多いだけで、 RFC 2822 や RFC 2821
を読んでもこれが強制されてはいないことが分かります。</p><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>関連する IANA 登録簿</h1><ul><li>Mail parameters <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://www.iana.org/assignments/mail-parameters">http://www.iana.org/assignments/mail-parameters</anchor-external>
<form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></li></ul></section><section><h1>例</h1><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="10" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[10]</anchor-end> 以下の例は規格への適合性により分類していますが、この判断にはちょっと疑問もあります。
構文や本文規定を参考に振り分けなおす必要があるかもしれません。
<form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></li></ul><section><h1>RFC 2821 的に適当なもの</h1><ul><li>Received: from foo3.example (foo4.example [127.0.0.1]) by foo2.example (Postfix) with ESMTP id E7F0824030; Sat, 16 Mar 2002 21:40:39 +0900 (JST)</li><li>Received: (qmail 16842 invoked from network); 16 Mar 2002 21:41:54 +0900</li><li>Received: (qmail 12928 invoked by uid 38); 16 Mar 2002 13:01:43 -0000</li><li>Received: from foo8.example (mail@192.168.0.11) by foo9.example with SMTP; 16 Mar 2002 13:01:40 -0000</li><li>Received: (from uucp@localhost) by foo9.example (8.9.1a/3.7W-u48) id OAA09787; Tue, 12 Mar 2002 14:12:37 +0900 (JST)</li><li>Received: by foo10.example (8.9.1a/3.7W-hack) id OAA03107 for hoge-outgoing; Tue, 12 Mar 2002 14:08:04 +0900 (JST)</li><li>Received: from foo.bar2.example ([61.198.253.195]) by foo.bar3.example (8.9.3 (PHNE_24848+JAGad82359)/8.8.6) with ESMTP id JAA17845; Sat, 9 Mar 2002 09:30:50 +0900 (JST)</li></ul><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section><section><h1>RFC 2821 的に不適当だが RFC 2822 的に適当なもの</h1><ul><li>Received: from unknown (HELO foo1.example) (192.168.0.1) by foo2.example with SMTP; 16 Mar 2002 21:41:54 +0900</li><li>Received: from foo4.example (unknown [192.168.0.8]) by foo5.example (Postfix) with ESMTP id 48DB815007 for &lt;bar@foo5.example&gt;; Sat, 16 Mar 2002 21:04:21 +0800 (CST)</li><li>Received: from bar by foo8.example with local (Exim 3.12 1 (Debian)) id 16mDoa-0004ep-00; Sat, 16 Mar 2002 07:01:40 -0600</li><li>Received: from localhost ([127.0.0.1] helo=foo.bar1.example) by bar.bar1.example with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 16jUlY-0006UE-00; Fri, 08 Mar 2002 16:31:16 -0800</li></ul></section><section><h1>その他</h1><ul><li>Received: from foo6.example [192.168.0.10] by foo7.example with smtp (Exim 3.12 1 (Debian)) id 16mDoZ-0004ec-00; Sat, 16 Mar 2002 07:01:39 -0600</li><li>Received: from mailhost(192.9.200.18) by hogehoge via smap/slg/sizecheck/clearerr (V1.3) with ESMTP id fmala9603; Tue Mar 12 14:11:44 2002</li></ul><form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></section></section><section><h1>参考文献</h1><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="1" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[1]</anchor-end> <em>Fight spam on the Net!</em> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://ssss.jp/~trombik/email/index.html">http://ssss.jp/~trombik/email/index.html</anchor-external>
<code>Received:</code> 欄の読み方を学習するのにいいでしょう。
<form xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" ref="comment"></form></li></ul></section><section><h1>メモ</h1><ul><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="12" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[12]</anchor-end> たまに、特に <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ML</anchor> なんかで、おせっかいにも送信者にお宅の時計ずれてませんか? とか忠告する人いますね。 <code class="822"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Date:</anchor></code> 欄の日付が受信時刻からあまりに離れているからとか、 ML の他のメイルと番号と日付の関係が合わなかったりするのを根拠にそう言うんでしょうが。実際よく見てみると送信者の方の時計はおそらくあっていて、転送路の問題で遅れただけであることも実はよくあったりします。<weak xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">ML server が遅延の原因だったりすることもあったりします。</weak> わざわわざわざ忠告してみて知識をひけらかす暇があったら、 <code class="822">Received:</code> 欄の読み方くらい勉強した方がいいですね(w</li><li><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="13" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[13]</anchor-end> ほんとに、メイルが届くのに時間がかかって、しかも届くかどうか分からなかった時代は遠くに行ってしまったんですねぇ。それでも未だに遅延があるからには <code class="822">Received:</code> 欄の存在意義も減らないとは思うんですけど、メイル配送路障害のことなんて考えもしない人が増えてるんだろうなあ。</li></ul></section></section><section><h1>歴史</h1><section><h1>RFC 821 / RFC 822 時代</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="43" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[43]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 821</anchor> より抜粋</figcaption><pre>            When the receiver-SMTP accepts a message either for relaying
            or for final delivery it inserts at the beginning of the
            mail data a time stamp line.  The time stamp line indicates
            the identity of the host that sent the message, and the
            identity of the host that received the message (and is
            inserting this time stamp), and the date and time the
            message was received.  Relayed messages will have multiple
            time stamp lines.</pre><pre>            Example of Return Path and Received Time Stamps</pre><pre>      Return-Path: &lt;@GHI.ARPA,@DEF.ARPA,@ABC.ARPA:JOE@ABC.ARPA&gt;   
      Received: from GHI.ARPA by JKL.ARPA ; 27 Oct 81 15:27:39 PST
      Received: from DEF.ARPA by GHI.ARPA ; 27 Oct 81 15:15:13 PST
      Received: from ABC.ARPA by DEF.ARPA ; 27 Oct 81 15:01:59 PST
      Date: 27 Oct 81 15:01:01 PST                                
      From: JOE@ABC.ARPA                                          
      Subject: Improved Mailing System Installed                  
      To: SAM@JKL.ARPA                                            
                                    
      This is to inform you that ...                              </pre><pre>                               Example 8</pre><pre>         The time stamp line and the return path line are formally
         defined as follows:</pre><pre>         &lt;return-path-line&gt; ::= &quot;Return-Path:&quot; &lt;SP&gt;&lt;reverse-path&gt;&lt;CRLF&gt;</pre><pre>         &lt;time-stamp-line&gt; ::= &quot;Received:&quot; &lt;SP&gt; &lt;stamp&gt; &lt;CRLF&gt;</pre><pre>            &lt;stamp&gt; ::= &lt;from-domain&gt; &lt;by-domain&gt; &lt;opt-info&gt; &quot;;&quot;
                      &lt;daytime&gt;</pre><pre>            &lt;from-domain&gt; ::= &quot;FROM&quot; &lt;SP&gt; &lt;domain&gt; &lt;SP&gt;</pre><pre>            &lt;by-domain&gt; ::= &quot;BY&quot; &lt;SP&gt; &lt;domain&gt; &lt;SP&gt;</pre><pre>            &lt;opt-info&gt; ::= [&lt;via&gt;] [&lt;with&gt;] [&lt;id&gt;] [&lt;for&gt;]</pre><pre>            &lt;via&gt; ::= &quot;VIA&quot; &lt;SP&gt; &lt;link&gt; &lt;SP&gt;</pre><pre>            &lt;with&gt; ::= &quot;WITH&quot; &lt;SP&gt; &lt;protocol&gt; &lt;SP&gt;</pre><pre>            &lt;id&gt; ::= &quot;ID&quot; &lt;SP&gt; &lt;string&gt; &lt;SP&gt;</pre><pre>            &lt;for&gt; ::= &quot;FOR&quot; &lt;SP&gt; &lt;path&gt; &lt;SP&gt;</pre><pre>            &lt;link&gt; ::= The standard names for links are registered with
                      the Network Information Center.</pre><pre>            &lt;protocol&gt; ::= The standard names for protocols are
                      registered with the Network Information Center.</pre><pre>            &lt;daytime&gt; ::= &lt;SP&gt; &lt;date&gt; &lt;SP&gt; &lt;time&gt;</pre><pre>            &lt;date&gt; ::= &lt;dd&gt; &lt;SP&gt; &lt;mon&gt; &lt;SP&gt; &lt;yy&gt;</pre><pre>            &lt;time&gt; ::= &lt;hh&gt; &quot;:&quot; &lt;mm&gt; &quot;:&quot; &lt;ss&gt; &lt;SP&gt; &lt;zone&gt;</pre><pre>            &lt;dd&gt; ::= the one or two decimal integer day of the month in
                      the range 1 to 31.</pre><pre>            &lt;mon&gt; ::= &quot;JAN&quot; | &quot;FEB&quot; | &quot;MAR&quot; | &quot;APR&quot; | &quot;MAY&quot; | &quot;JUN&quot; |
                      &quot;JUL&quot; | &quot;AUG&quot; | &quot;SEP&quot; | &quot;OCT&quot; | &quot;NOV&quot; | &quot;DEC&quot;</pre><pre>            &lt;yy&gt; ::= the two decimal integer year of the century in the
                      range 00 to 99.</pre><pre>            &lt;hh&gt; ::= the two decimal integer hour of the day in the
                      range 00 to 24.</pre><pre>            &lt;mm&gt; ::= the two decimal integer minute of the hour in the
                      range 00 to 59.</pre><pre>            &lt;ss&gt; ::= the two decimal integer second of the minute in the
                      range 00 to 59.</pre><pre>            &lt;zone&gt; ::= &quot;UT&quot; for Universal Time (the default) or other
                      time zone designator (as in [2]).</pre><pre>                        Time Stamp Line Example</pre><pre>      Received: FROM ABC.ARPA BY XYZ.ARPA ; 22 OCT 81 09:23:59 PDT</pre><pre>         Received: from ABC.ARPA by XYZ.ARPA via TELENET with X25
                   id M12345 for Smith@PDQ.ARPA ; 22 OCT 81 09:23:59 PDT</pre><pre>                               Example 10</pre></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="44" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[44]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 822</anchor> の <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">BNF</anchor></figcaption><pre>     received    =  &quot;Received&quot;    &quot;:&quot;            ; one per relay
                       [&quot;from&quot; domain]           ; sending host
                       [&quot;by&quot;   domain]           ; receiving host
                       [&quot;via&quot;  atom]             ; physical path
                      *(&quot;with&quot; atom)             ; link/mail protocol
                       [&quot;id&quot;   msg-id]           ; receiver msg id
                       [&quot;for&quot;  addr-spec]        ; initial form
                        &quot;;&quot;    date-time         ; time received</pre></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="45" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[45]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 822</anchor> 4.3.2.  RECEIVED</figcaption><pre>        A copy of this field is added by each transport  service  that
        relays the message.  The information in the field can be quite
        useful for tracing transport problems.</pre><pre>        The names of the sending  and  receiving  hosts  and  time-of-
        receipt may be specified.  The &quot;via&quot; parameter may be used, to
        indicate what physical mechanism the message  was  sent  over,
        such  as  Arpanet or Phonenet, and the &quot;with&quot; parameter may be
        used to indicate the mail-,  or  connection-,  level  protocol
        that  was  used, such as the SMTP mail protocol, or X.25 tran-
        sport protocol.</pre><pre>        Note:  Several &quot;with&quot; parameters may  be  included,  to  fully
               specify the set of protocols that were used.</pre><pre>        Some transport services queue mail; the internal message iden-
        tifier that is assigned to the message may be noted, using the
        &quot;id&quot; parameter.  When the  sending  host  uses  a  destination
        address specification that the receiving host reinterprets, by
        expansion or transformation, the receiving host  may  wish  to
        record  the original specification, using the &quot;for&quot; parameter.
        For example, when a copy of mail is sent to the  member  of  a
        distribution  list,  this  parameter may be used to record the
        original address that was used to specify the list.</pre></figure></section><section><h1>USENET ニュースメッセージ</h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="51" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[51]</anchor-end> 
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">USENET</anchor> メッセージは <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 822</anchor> を基にしていますが、違いもいろいろあります。
<code>Received:</code> 相当の機能も複数に分かれていろいろなものがありました。</p><ul><li><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">日付形式</anchor><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC850の日付形式</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">asctime形式</anchor></li></ul></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Date:領域</anchor></li></ul></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">電子ニュース</anchor><ul><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC850</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC1036</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">son-ofRFC1036</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">draft-usefor-article</anchor></li><li><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">NNTP</anchor></li></ul></li></ul><section><h1><code>Received:</code></h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="3" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[3]</anchor-end> かつて Received: は記事を受け取った時間を表す領域として
USENET で使われていた。領域本体の値は USENET 形式の日付。
(See <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">日付形式</anchor>) RFC 850 ではすでに旧式とされ <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Date-Received:領域</anchor> を使う
ことになっているが、 RFC 850 および RFC 1036 の例に挙がっている。</p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="4" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[4]</anchor-end> 今ではもう使用されることはないでしょう。ただ、 <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">INN</anchor>
は現在の版でも <code>Received:</code> 欄を持つメッセージの投稿は拒否します。
(<code>Received:</code> 欄のあるメッセージを中継する時は中継元で落としてから中継先に送っていた。)</p></section><section><h1><code>Date-Received:</code></h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="48" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[48]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 850</anchor> 2.2.4  Date-Received  </figcaption><blockquote><p>This line (formerly  &quot;Received&quot;)  is
in  a  legal  USENET date format.  It records the date and
time that the article was  first  received  on  the  local
system.   If  this  line  is  present  in an article being
transmitted from one host to another, the  receiving  host
should  ignore  it  and  replace it with the current date.
Since this field is intended for local use only,  no  site
is  required  to support it.  However, no site should pass
this field on to another site unchanged.</p></blockquote><p>この行 (元は「Received」(受信)) は妥当な USENET 日付形式です。
記事が最初に局地系統で受信した日時を記録します。
この行があるホストから他のホストに転送される記事に
ある時は、受信したホストはこれを無視し、現在時刻で置き換えます。
この領域は局地的に使うことだけを意図しているので、
どのサイトもこれに対応する必要はありません。しかし、
どのサイトもこの領域を他のサイトに変更せずに渡すべきではありません。</p></figure></section><section><h1><code>Relay-Version:</code></h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="49" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[49]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 850</anchor> 2.1.1  Relay-Version  </figcaption><p>This header line shows  the  version
of  the  program  responsible for the transmission of this
article over the immediate link, that is, the program that
is  relaying the article from the next site.  For example,
suppose site A sends an article to  site  B,  and  site  B
forwards  the  article  to  site  C.   The  message  being
transmitted from A to B would have a Relay-Version  header
identifying  the  program  running  on  A, and the message
transmitted from B to C would identify the program running
on  B.  This header can be used to interpret older headers
in an upward compatible way.  Relay-Version must always be
the  first  in  a message; thus, all articles meeting this
standard will begin with an upper case   &quot;R&quot;.    No  other
restrictions are placed on the order of header lines.</p><p>この頭行は直接リンクでこの記事を転送する責任のあるプログラム、
すなわち記事を隣のサイトに中継するプログラムの版を示します。
例えば、サイト A が記事をサイト B に送り、サイト B が
記事をサイト C に転送するとします。 A から B に転送されたメッセージは
A で動いているプログラムを識別する Relay-Version 頭を
持っていて、 B から C に転送されたメッセージは
B で動いているプログラムを識別する頭を持っています。
この頭は上位互換のために古い頭を解釈するのに使うことが出来ます。
Relay-Version は常にメッセージの最初に無ければなりません。
ですから、この規格に合致する記事は全て大文字の「R」から
始まります。頭行の順序に関してこれ以外の制限はありません。</p><p>The line contains two  fields,  separated  by  semicolons.
The fields are the version and the full domain name of the
site.  The version should identify the system program used
(e.g.,   &quot;B&quot;)   as  well  as  a version number and version
date.  For example, the header line might contain</p><p>行は2つの領域から成り、セミコロンで区切られます。領域は
版とサイトの完全ドメイン名です。版は系統プログラム (例えば「B」)
と版番号と版日付で識別するべきです。例えば、次の頭行を御覧下さい。</p><pre>   Relay-Version: version B 2.10 2/13/83; site cbosgd.UUCP</pre><p>This header should not be passed on to  additional  sites.
A  relay  program,  when  passing  an  article  on, should
include only its own Relay-Version, not the  Relay-Version
of  some other site.  (For upward compatibility with older
software, if a Relay-Version is found in a header which is
not the first line, it should be assumed to be moved by an
older version of news and deleted.)</p><p>この頭は次のサイトには渡すべきではありません。中継プログラムは
記事を中継するとき、自分の Relay-Version だけを含め、
他のサイトの Relay-Version は含めません。 (古いソフトウェアとの
上位互換性のため、 Relay-Version は頭の最初の行以外に
現れるかもしれませんが、古い版のニュースが移動したと考えて
削除するべきです。)</p></figure></section><section><h1><code>Posting-Version:</code></h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="50" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[50]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 850</anchor> 2.1.2  Posting-Version    </figcaption><blockquote><p>This   header   identifies   the
software  responsible  for  entering this message into the
network.  It has the same  format  as  Relay-Version.   It
will  normally  identify  the same site as the Message-ID,
unless the posting site is serving  as  a  gateway  for  a
message  that  already  contains a message ID generated by
mail.  (While it is permissible for a gateway  to  use  an
externally  generated message ID, the message ID should be
checked to ensure it conforms to this standard and to  RFC
822.)</p></blockquote><p>この頭はネットワークに当該メッセージを注入した元のソフトウェア
を識別するものです。書式は Relay-Version と同じです。
これは通常 Message-ID のと同じサイトを識別します。
但し投稿サイトが関門でありメイルにより既に生成されたメッセージ ID を
持ったメッセージである場合を除きます。 (関門が外部で生成された
メッセージ ID を使っても構いませんが、メッセージ ID が
この規格と RFC 822 に適合するかは確認しておくべきです。)</p></figure></section></section><section><h1>RFC 2821 / RFC 2822 時代</h1><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="46" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[46]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2821</anchor> 4.4 Trace Information 跡情報</figcaption><p>When an SMTP server receives a message for delivery or further
processing, it MUST insert trace (&quot;time stamp&quot; or &quot;Received&quot;)
information at the beginning of the message content, as discussed in
section 4.1.1.4.</p><p>SMTP サーバーがメッセイジを配送あるいは更なる処理のために
受け取った時には、跡 (「時間印」あるいは「受信した」) 情報を
メッセイジ内容のはじめに、第4.1.1.4節で説明したように
挿入<em>しなければなりません</em>。</p><p>This line MUST be structured as follows:</p><p>この行は次のように構成<em>しなければなりません</em>。</p><ul><li>The FROM field, which MUST be supplied in an SMTP environment, SHOULD contain both (1) the name of the source host as presented in the EHLO command and (2) an address literal containing the IP address of the source, determined from the TCP connection.</li><li>FROM 領域。これは SMTP 環境ではつけ<em>なければならず</em>、(1) EHLO 命令で知らされた原ホストの名前 (2) 原ホストの IP アドレスを含むアドレス・リテラルの両者を含める<em>べき</em>です。</li><li>The ID field MAY contain an &quot;@&quot; as suggested in RFC 822, but this is not required.</li><li>ID 領域は RFC 822 で提案されているように「@」から成っていても<em>よい</em>ですが、惟は必要ではありません。</li><li>The FOR field MAY contain a list of &lt;path&gt; entries when multiple RCPT commands have been given.  This may raise some security issues and is usually not desirable; see section 7.2.</li><li>FOR 領域は複数の RCPT 命令が与えられている時に &lt;path&gt; 項目の表から成っていても<em>よい</em>です。これは保安問題を起こしかねないし通常望ましくありません。第7.2節を参照。</li></ul><p>An Internet mail program MUST NOT change a Received: line that was
previously added to the message header.  SMTP servers MUST prepend
Received lines to messages; they MUST NOT change the order of
existing lines or insert Received lines in any other location.</p><p>Internet メイル・プログラムは前にメッセイジ・ヘッダーに追加された Received: 行
を変更しては<em>いけません</em>。 SMTP サーバーは Received 行を
メッセイジのはじめに加え<em>なければなりません</em>。
既存の行の順番を変えたり Received 行を他の場所に入れたりしては<em>いけません</em>。</p><p>As the Internet grows, comparability of Received fields is important
for detecting problems, especially slow relays.  SMTP servers that
create Received fields SHOULD use explicit offsets in the dates
(e.g., -0800), rather than time zone names of any type.  Local time
(with an offset) is preferred to UT when feasible.  This formulation
allows slightly more information about local circumstances to be
specified.  If UT is needed, the receiver need merely do some simple
arithmetic to convert the values.  Use of UT loses information about
the time zone-location of the server.  If it is desired to supply a
time zone name, it SHOULD be included in a comment.</p><p>Internet の成長に従って、 Received 領域の比較は問題、特に
配送遅延の特定に重要となりました。 Received 領域を作る SMTP サーバーは
いかなる種の時間帯名よりも日付の明示的な差 (例えば -0800) を使う<em>べき</em>です。
(差つき)現地時間は UT (協定世界時) より利用価値があります。
この方法なら指定される地域事情について幾分多くの情報を伝えられます。
UT が必要なら、受信者が単に値を直す計算をすればいいだけです。
UT を使うとサーバーの時間帯位置についての情報が失われます。
時間帯名を示すことが必要なら、注釈に入れる<em>べき</em>です。</p><p>(中(Return-Path:関連)略)</p><p>The time stamp line and the return path line are formally defined as
follows:</p><p>時間印行及び復帰経路行は正式には次のように定義します。</p><pre>  Return-path-line = &quot;Return-Path:&quot; FWS Reverse-path &lt;CRLF&gt;</pre><pre>  Time-stamp-line = &quot;Received:&quot; FWS Stamp &lt;CRLF&gt;</pre><pre>  Stamp = From-domain By-domain Opt-info &quot;;&quot;  FWS date-time</pre><pre>      ; where &quot;date-time&quot; is as defined in [32]
      ; but the &quot;obs-&quot; forms, especially two-digit
      ; years, are prohibited in SMTP and MUST NOT be used.</pre><p>; 「date-time」は<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC2822の日付形式</anchor>で定義されたものですが、
「obs-」形式、特に2桁年は SMTP では禁止し、使用しては<em>なりません</em>。</p><pre>  From-domain = &quot;FROM&quot; FWS Extended-Domain CFWS</pre><pre>  By-domain = &quot;BY&quot; FWS Extended-Domain CFWS</pre><pre>  Extended-Domain = Domain /
           ( Domain FWS &quot;(&quot; TCP-info &quot;)&quot; ) /
           ( Address-literal FWS &quot;(&quot; TCP-info &quot;)&quot; )</pre><pre>  TCP-info = Address-literal / ( Domain FWS Address-literal )
      ; Information derived by server from TCP connection
      ; not client EHLO.</pre><p>; サーバーが、クライアントの EHLO ではなく TCP 接続から得た情報</p><pre>  Opt-info = [Via] [With] [ID] [For]</pre><pre>  Via = &quot;VIA&quot; FWS Link CFWS</pre><pre>  With = &quot;WITH&quot; FWS Protocol CFWS</pre><pre>  ID = &quot;ID&quot; FWS String / msg-id CFWS</pre><pre>  For = &quot;FOR&quot; FWS 1*( Path / Mailbox ) CFWS</pre><pre>  Link = &quot;TCP&quot; / Addtl-Link
  Addtl-Link = Atom
      ; Additional standard names for links are registered with the
         ; Internet Assigned Numbers Authority (IANA).  &quot;Via&quot; is
         ; primarily of value with non-Internet transports.  SMTP
         ; servers SHOULD NOT use unregistered names.</pre><p>; 追加のリンクの標準名称は Internet 登録番号事務局 (IANA) で登録
されます。「Via」は主として非 Internet 配送路の値です。
SMTP サーバーは非登録名を使用<em>すべきでありません</em>。</p><p>訳注: 2002年3月現在、「UUCP」が登録されています。</p><pre>  Protocol = &quot;ESMTP&quot; / &quot;SMTP&quot; / Attdl-Protocol
  Attdl-Protocol = Atom
      ; Additional standard names for protocols are registered with the
         ; Internet Assigned Numbers Authority (IANA).  SMTP servers
         ; SHOULD NOT use unregistered names.</pre><p>; 追加のプロトコルの標準名は Internet 登録番号事務局 (IANA) で登録
されます。 SMTP サーバーは非登録名を使用<em>すべきでありません</em>。</p><p>訳注: 2002年3月現在、追加の登録はありません。</p></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="47" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[47]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2821</anchor> のそのほかの部分にある BNF</figcaption><pre>      address-literal = &quot;[&quot; IPv4-address-literal /
                            IPv6-address-literal /
                            General-address-literal &quot;]&quot;
            ; See section 4.1.3</pre><pre>      Atom = 1*atext</pre><pre>      String = Atom / Quoted-string</pre><pre>      IPv4-address-literal = Snum 3(&quot;.&quot; Snum)
      IPv6-address-literal = &quot;IPv6:&quot; IPv6-addr
      General-address-literal = Standardized-tag &quot;:&quot; 1*dcontent
      Standardized-tag = Ldh-str
            ; MUST be specified in a standards-track RFC
            ; and registered with IANA</pre><pre>      Snum = 1*3DIGIT  ; representing a decimal integer
            ; value in the range 0 through 255
      Let-dig = ALPHA / DIGIT
      Ldh-str = *( ALPHA / DIGIT / &quot;-&quot; ) Let-dig</pre><pre>      IPv6-addr = IPv6-full / IPv6-comp / IPv6v4-full / IPv6v4-comp
      IPv6-hex  = 1*4HEXDIG
      IPv6-full = IPv6-hex 7(&quot;:&quot; IPv6-hex)
      IPv6-comp = [IPv6-hex *5(&quot;:&quot; IPv6-hex)] &quot;::&quot; [IPv6-hex *5(&quot;:&quot;
                 IPv6-hex)]
            ; The &quot;::&quot; represents at least 2 16-bit groups of zeros
            ; No more than 6 groups in addition to the &quot;::&quot; may be
            ; present
      IPv6v4-full = IPv6-hex 5(&quot;:&quot; IPv6-hex) &quot;:&quot; IPv4-address-literal
      IPv6v4-comp = [IPv6-hex *3(&quot;:&quot; IPv6-hex)] &quot;::&quot;
                   [IPv6-hex *3(&quot;:&quot; IPv6-hex) &quot;:&quot;] IPv4-address-literal
            ; The &quot;::&quot; represents at least 2 16-bit groups of zeros
            ; No more than 4 groups in addition to the &quot;::&quot; and
            ; IPv4-address-literal may be present</pre><pre>      Path = &quot;&lt;&quot; [ A-d-l &quot;:&quot; ] Mailbox &quot;&gt;&quot;
      Mailbox = Local-part &quot;@&quot; Domain</pre></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="39" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[39]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2822</anchor> 3.6.7. Trace fields 追跡欄</figcaption><blockquote><p>The trace fields are a group of header fields consisting of an
optional &quot;Return-Path:&quot; field, and one or more &quot;Received:&quot; fields.
The &quot;Return-Path:&quot; header field contains a pair of angle brackets
that enclose an optional addr-spec.  The &quot;Received:&quot; field contains a
(possibly empty) list of name/value pairs followed by a semicolon and
a date-time specification.  The first item of the name/value pair is
defined by item-name, and the second item is either an addr-spec, an
atom, a domain, or a msg-id.  Further restrictions may be applied to
the syntax of the trace fields by standards that provide for their
use, such as [RFC2821].</p></blockquote><p>追跡欄は省略可能な &quot;Return-Path:&quot; 欄と1つ以上の &quot;Received:&quot;
欄からなる頭欄の集団です。 &quot;Return-Path:&quot; 頭欄は angle
括弧の組とそれに囲まれた省略可能な <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">addr-spec</anchor> で構成されます。
&quot;Received:&quot; 欄は (空かも知れない) 名前/値の組の表にセミコロンと
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">date-time</anchor> 記述が続くものです。名前/値組の最初の項目は
item-name で定義され、2番目の項目は addr-spec, <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">atom</anchor>,
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">domain</anchor>, または <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">msg-id</anchor> で定義されます。追跡欄の構文はこれを使う
RFC 2821 のような規格により更なる制限が加えられるかもしれません。</p><ul><li>trace           =       [return]                        1*received</li><li>return          =       &quot;Return-Path:&quot; path CRLF</li><li>path            =       ([CFWS] &quot;&lt;&quot; ([CFWS] / addr-spec) &quot;&gt;&quot; [CFWS]) /                        obs-path</li><li>received        =       &quot;Received:&quot; name-val-list &quot;;&quot; date-time CRLF</li><li>name-val-list   =       [CFWS] [name-val-pair *(CFWS name-val-pair)]</li><li>name-val-pair   =       item-name CFWS item-value</li><li>item-name       =       ALPHA *([&quot;-&quot;] (ALPHA / DIGIT))</li><li>item-value      =       addr-spec / atom / domain / msg-id</li></ul><blockquote><p>A full discussion of the Internet mail use of trace fields is
contained in [RFC2821].  For the purposes of this standard, the trace
fields are strictly informational, and any formal interpretation of
them is outside of the scope of this document.</p></blockquote><p>追跡欄の Internet メイルでの仕様についての完全な議論は
RFC 2821 に含まれています。この規格の目的では、追跡情報は完全に情報提供的なもので、これらの正式な解釈はこの文書の適用範囲外とします。</p></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="40" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[40]</anchor-end> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 2822</anchor> 4.5.7. Obsolete trace fields</figcaption><blockquote><p>The obs-return and obs-received are again given here as template
definitions, just as return and received are in section 3.  Their
full syntax is given in [RFC2821].</p></blockquote><ul><li>obs-return      =       &quot;Return-Path&quot; *WSP &quot;:&quot; path CRLF</li><li>obs-received    =       &quot;Received&quot; *WSP &quot;:&quot; name-val-list CRLF</li><li>obs-path        =       obs-route-addr</li></ul></figure></section><section><h1></h1><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="26" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[26]</anchor-end>
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 5335</anchor> は、 <code class="822" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">For</anchor></code> <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">欄</anchor>における <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">UTF-8</anchor>
を含む<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">電子メイル番地</anchor> (<code class="ABNF" xml:lang="en"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">utf8-addr-spec</anchor></code>) の使用を認めています。
<anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 5335</anchor> はこれを <anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">uFor</anchor> 構文と呼んでいます。</p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">RFC 5335</anchor> 4.5</comment-p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="28" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[28]</anchor-end> <cite>FGA: Some of what is said about &quot;qmail&quot; is wrong</cite> (<time>2004-12-08 10:45:51 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://homepages.tesco.net/J.deBoynePollard/FGA/qmail-myths-dispelled.html#MythAboutQQReceivedHeaders">http://homepages.tesco.net/J.deBoynePollard/FGA/qmail-myths-dispelled.html#MythAboutQQReceivedHeaders</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="27" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[27]</anchor-end> <cite xml:lang="ja">qmailのReceivedヘッダがRFC違反に? « 雑多なブログ</cite> (<time>2008-12-29 20:46:17 +09:00</time> 版) <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://tec.jpn.ph/wordpress/?p=883">http://tec.jpn.ph/wordpress/?p=883</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="30" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[30]</anchor-end> <cite xml:lang="en">RFC 6729 - Indicating Email Handling States in Trace Fields</cite>
( (<time>2012-09-08 08:24:48 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://tools.ietf.org/html/rfc6729">http://tools.ietf.org/html/rfc6729</anchor-external></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="32" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[32]</anchor-end> <pre class="822 example code">Received: from 291235132082.apps.googleusercontent.com
	named unknown
	by gmailapi.google.com
	with HTTPREST;
	Thu, 24 Jul 2014 20:14:57 -0700</pre></p><comment-p xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:10:"><anchor xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:">Gmail API</anchor> から送信したメール</comment-p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="8" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[8]</anchor-end> <pre class="822 code">Received: by filter-171.sjc1.sendgrid.net with SMTP id filter-171.16166.544FBEEA19
        2014-10-28 16:06:04.814281002 +0000 UTC</pre></p><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="33" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[33]</anchor-end> <cite xml:lang="ja">Received: format of various SMTP Mail Transfer Agents</cite>
( (<time>2012-01-30 18:26:40 +09:00</time> 版))
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="http://vega.sra-tohoku.co.jp/~kabe/vsd/mail/received.html">http://vega.sra-tohoku.co.jp/~kabe/vsd/mail/received.html</anchor-external></p><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="34" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[34]</anchor-end> <cite xml:lang="en">RFC 1428 - Transition of Internet Mail from Just-Send-8 to 8bit-SMTP/MIME</cite>
(<time>2015-07-26 14:25:37 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://tools.ietf.org/html/rfc1428">https://tools.ietf.org/html/rfc1428</anchor-external></figcaption><blockquote><p>Trace information should be added to the document with a convert</p><p>clause: &quot;rfc822-to-8bit&quot;, &quot;rfc822-to-base-64&quot; or &quot;rfc822-to-quoted-</p><p>printable&quot; e.g.,</p><p>Received: from dbc.mtview.ca.us by dbc.mtview.ca.us</p><p>convert rfc822-to-8bit; Tue, 01 Sep 1992 01:18:00 -0700</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="35" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[35]</anchor-end> <cite xml:lang="en">old-delphi-codes/headers.txt at master · maerlyn/old-delphi-codes</cite>
(<time>2016-01-15 19:33:13 +09:00</time> 版)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://github.com/maerlyn/old-delphi-codes/blob/master/POPper/GUI%20no2/headers.txt">https://github.com/maerlyn/old-delphi-codes/blob/master/POPper/GUI%20no2/headers.txt</anchor-external></figcaption><blockquote><p>Received: from dial-3-236.emitel.hu(194.149.57.236) by brutus via csmap (V6.0)</p><p>id srcAAAb2aGGy; Tue, 6 Apr 04 17:55:45 +0200</p></blockquote></figure><figure class="quote"><figcaption><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="41" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[41]</anchor-end> <cite>email - POP3 RETR Command Missing +OK Response - Stack Overflow</cite>
(<time>2020-11-27T02:42:25.000Z</time>)
<anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://stackoverflow.com/questions/27686554/pop3-retr-command-missing-ok-response">https://stackoverflow.com/questions/27686554/pop3-retr-command-missing-ok-response</anchor-external></figcaption><blockquote><p>Received: from x (<strong>[</strong>x.x.60.10<strong>]</strong>) by x.net with MailEnab</p><p>le ESMTP; Sun, 28 Dec 2014 11:30:16 +0200</p></blockquote></figure><p><anchor-end xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:anchor="42" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:">[42]</anchor-end> <cite xml:lang="en">Previously Unpublished Emails of Satoshi Nakamoto Present New Puzzle- CoinDesk</cite>, <time>2020-11-27T02:42:58.000Z</time> <anchor-external xmlns="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resScheme="URI" xmlns:a0="urn:x-suika-fam-cx:markup:suikawiki:0:9:" a0:resParameter="https://www.coindesk.com/satoshi-nakamoto-hal-finney-emails">https://www.coindesk.com/satoshi-nakamoto-hal-finney-emails</anchor-external></p></section></section></body></html>