[要約] RFC 2821は、電子メール転送の標準プロトコルであるSMTP(Simple Mail Transfer Protocol)の仕様を規定しています。メール転送のモデル、コマンド形式、応答コード、およびサーバー間の転送手順を詳細に説明し、RFC 821を置き換えました。インターネット上の異なるホスト間で、信頼性の高い電子メール転送を実現することを目的としています。
Network Working Group J. Klensin, Editor
Request for Comments: 2821 AT&T Laboratories
Obsoletes: 821, 974, 1869 April 2001
Updates: 1123
Category: Standards Track
Simple Mail Transfer Protocol
Simple Mail Transfer Protocol (SMTP)
Status of this Memo
本文書の状態
This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the "Internet Official Protocol Standards" (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.
このドキュメントは、インターネットコミュニティのインターネット標準トラックプロトコルを指定し、改善のための議論と提案を要求します。このプロトコルの標準化状態とステータスについては、「インターネット公式プロトコル標準」(STD 1)の現在のエディションを参照してください。このメモの配布は無制限です。
Copyright Notice
著作権表示
Copyright (C) The Internet Society (2001). All Rights Reserved.
Copyright(c)The Internet Society(2001)。無断転載を禁じます。
Abstract
概要
This document is a self-contained specification of the basic protocol for the Internet electronic mail transport. It consolidates, updates and clarifies, but doesn't add new or change existing functionality of the following:
このドキュメントは、インターネット電子メールトランスポートの基本プロトコルの自己完結型の仕様です。それは統合、更新、明確にしますが、以下の既存の機能を追加したり変更したりすることはありません。
- the original SMTP (Simple Mail Transfer Protocol) specification of RFC 821 [30],
- RFC 821 [30]の元のSMTP(Simple Mail転送プロトコル)仕様
- domain name system requirements and implications for mail transport from RFC 1035 [22] and RFC 974 [27],
- ドメイン名システム要件とRFC 1035 [22]およびRFC 974 [27]からのメール輸送への影響
- the clarifications and applicability statements in RFC 1123 [2], and
- RFC 1123 [2]の説明と適用の声明と
- material drawn from the SMTP Extension mechanisms [19].
- SMTP拡張メカニズムから引き出された材料[19]。
It obsoletes RFC 821, RFC 974, and updates RFC 1123 (replaces the mail transport materials of RFC 1123). However, RFC 821 specifies some features that were not in significant use in the Internet by the mid-1990s and (in appendices) some additional transport models. Those sections are omitted here in the interest of clarity and brevity; readers needing them should refer to RFC 821.
RFC 821、RFC 974、およびRFC 1123を更新します(RFC 1123のメール輸送材料を置き換えます)。ただし、RFC 821は、1990年代半ばまでにインターネットで大幅に使用されていないいくつかの機能を指定し、(付録で)追加の輸送モデルを指定しています。これらのセクションは、明確さと簡潔さのためにここで省略されています。それらを必要とする読者は、RFC 821を参照する必要があります。
It also includes some additional material from RFC 1123 that required amplification. This material has been identified in multiple ways, mostly by tracking flaming on various lists and newsgroups and problems of unusual readings or interpretations that have appeared as the SMTP extensions have been deployed. Where this specification moves beyond consolidation and actually differs from earlier documents, it supersedes them technically as well as textually.
また、増幅を必要とするRFC 1123からの追加の材料も含まれています。この資料は、主にさまざまなリストやニュースグループの炎を追跡し、SMTP拡張機能が展開されたときに登場した異常な測定値や解釈の問題を追跡することにより、複数の方法で特定されています。この仕様が統合を超えて移動し、実際に以前のドキュメントとは異なる場合、テキストでも技術的にもそれらに取って代わります。
Although SMTP was designed as a mail transport and delivery protocol, this specification also contains information that is important to its use as a 'mail submission' protocol, as recommended for POP [3, 26] and IMAP [6]. Additional submission issues are discussed in RFC 2476 [15].
SMTPはメールトランスポートおよび配信プロトコルとして設計されていますが、この仕様には、POP [3、26]およびIMAP [6]に推奨されるように、「メール提出」プロトコルとしての使用に重要な情報も含まれています。追加の提出の問題は、RFC 2476 [15]で議論されています。
Section 2.3 provides definitions of terms specific to this document. Except when the historical terminology is necessary for clarity, this document uses the current 'client' and 'server' terminology to identify the sending and receiving SMTP processes, respectively.
セクション2.3では、このドキュメントに固有の用語の定義を示します。歴史的な用語が明確にするために必要な場合を除き、このドキュメントでは、現在の「クライアント」と「サーバー」の用語を使用して、それぞれ送信および受信SMTPプロセスを識別します。
A companion document [32] discusses message headers, message bodies and formats and structures for them, and their relationship.
コンパニオンドキュメント[32]は、メッセージヘッダー、メッセージ本文、フォーマット、およびそれらの関係、およびそれらの関係について説明します。
Table of Contents
目次
1. Introduction .................................................. 4
2. The SMTP Model ................................................ 5
2.1 Basic Structure .............................................. 5
2.2 The Extension Model .......................................... 7
2.2.1 Background ................................................. 7
2.2.2 Definition and Registration of Extensions .................. 8
2.3 Terminology .................................................. 9
2.3.1 Mail Objects ............................................... 10
2.3.2 Senders and Receivers ...................................... 10
2.3.3 Mail Agents and Message Stores ............................. 10
2.3.4 Host ....................................................... 11
2.3.5 Domain ..................................................... 11
2.3.6 Buffer and State Table ..................................... 11
2.3.7 Lines ...................................................... 12
2.3.8 Originator, Delivery, Relay, and Gateway Systems ........... 12
2.3.9 Message Content and Mail Data .............................. 13
2.3.10 Mailbox and Address ....................................... 13
2.3.11 Reply ..................................................... 13
2.4 General Syntax Principles and Transaction Model .............. 13
3. The SMTP Procedures: An Overview .............................. 15
3.1 Session Initiation ........................................... 15
3.2 Client Initiation ............................................ 16
3.3 Mail Transactions ............................................ 16
3.4 Forwarding for Address Correction or Updating ................ 19
3.5 Commands for Debugging Addresses ............................. 20
3.5.1 Overview ................................................... 20
3.5.2 VRFY Normal Response ....................................... 22
3.5.3 Meaning of VRFY or EXPN Success Response ................... 22
3.5.4 Semantics and Applications of EXPN ......................... 23
3.6 Domains ...................................................... 23
3.7 Relaying ..................................................... 24
3.8 Mail Gatewaying .............................................. 25
3.8.1 Header Fields in Gatewaying ................................ 26
3.8.2 Received Lines in Gatewaying ............................... 26
3.8.3 Addresses in Gatewaying .................................... 26
3.8.4 Other Header Fields in Gatewaying .......................... 27
3.8.5 Envelopes in Gatewaying .................................... 27
3.9 Terminating Sessions and Connections ......................... 27
3.10 Mailing Lists and Aliases ................................... 28
3.10.1 Alias ..................................................... 28
3.10.2 List ...................................................... 28
4. The SMTP Specifications ....................................... 29
4.1 SMTP Commands ................................................ 29
4.1.1 Command Semantics and Syntax ............................... 29
4.1.1.1 Extended HELLO (EHLO) or HELLO (HELO) ................... 29
4.1.1.2 MAIL (MAIL) .............................................. 31
4.1.1.3 RECIPIENT (RCPT) ......................................... 31
4.1.1.4 DATA (DATA) .............................................. 33
4.1.1.5 RESET (RSET) ............................................. 34
4.1.1.6 VERIFY (VRFY) ............................................ 35
4.1.1.7 EXPAND (EXPN) ............................................ 35
4.1.1.8 HELP (HELP) .............................................. 35
4.1.1.9 NOOP (NOOP) .............................................. 35
4.1.1.10 QUIT (QUIT) ............................................. 36
4.1.2 Command Argument Syntax .................................... 36
4.1.3 Address Literals ........................................... 38
4.1.4 Order of Commands .......................................... 39
4.1.5 Private-use Commands ....................................... 40
4.2 SMTP Replies ................................................ 40
4.2.1 Reply Code Severities and Theory ........................... 42
4.2.2 Reply Codes by Function Groups ............................. 44
4.2.3 Reply Codes in Numeric Order .............................. 45
4.2.4 Reply Code 502 ............................................. 46
4.2.5 Reply Codes After DATA and the Subsequent <CRLF>.<CRLF> .... 46
4.3 Sequencing of Commands and Replies ........................... 47
4.3.1 Sequencing Overview ........................................ 47
4.3.2 Command-Reply Sequences .................................... 48
4.4 Trace Information ............................................ 49
4.5 Additional Implementation Issues ............................. 53
4.5.1 Minimum Implementation ..................................... 53
4.5.2 Transparency ............................................... 53
4.5.3 Sizes and Timeouts ......................................... 54
4.5.3.1 Size limits and minimums ................................. 54
4.5.3.2 Timeouts ................................................. 56
4.5.4 Retry Strategies ........................................... 57
4.5.4.1 Sending Strategy ......................................... 58
4.5.4.2 Receiving Strategy ....................................... 59
4.5.5 Messages with a null reverse-path .......................... 59
5. Address Resolution and Mail Handling .......................... 60
6. Problem Detection and Handling ................................ 62
6.1 Reliable Delivery and Replies by Email ....................... 62
6.2 Loop Detection ............................................... 63
6.3 Compensating for Irregularities .............................. 63
7. Security Considerations ....................................... 64
7.1 Mail Security and Spoofing ................................... 64
7.2 "Blind" Copies ............................................... 65
7.3 VRFY, EXPN, and Security ..................................... 65
7.4 Information Disclosure in Announcements ...................... 66
7.5 Information Disclosure in Trace Fields ....................... 66
7.6 Information Disclosure in Message Forwarding ................. 67
7.7 Scope of Operation of SMTP Servers ........................... 67
8. IANA Considerations ........................................... 67
9. References .................................................... 68
10. Editor's Address ............................................. 70
11. Acknowledgments .............................................. 70
Appendices ....................................................... 71
A. TCP Transport Service ......................................... 71
B. Generating SMTP Commands from RFC 822 Headers ................. 71
C. Source Routes ................................................. 72
D. Scenarios ..................................................... 73
E. Other Gateway Issues .......................................... 76
F. Deprecated Features of RFC 821 ................................ 76
Full Copyright Statement ......................................... 79
The objective of the Simple Mail Transfer Protocol (SMTP) is to transfer mail reliably and efficiently.
単純なメール転送プロトコル(SMTP)の目的は、メールを確実に効率的に転送することです。
SMTP is independent of the particular transmission subsystem and requires only a reliable ordered data stream channel. While this document specifically discusses transport over TCP, other transports are possible. Appendices to RFC 821 describe some of them.
SMTPは特定の送信サブシステムに依存しないため、信頼できる順序付けられたデータストリームチャネルのみが必要です。このドキュメントでは、TCPを介した輸送について具体的に説明していますが、他の輸送が可能です。RFC 821の付録については、それらのいくつかについて説明しています。
An important feature of SMTP is its capability to transport mail across networks, usually referred to as "SMTP mail relaying" (see section 3.8). A network consists of the mutually-TCP-accessible hosts on the public Internet, the mutually-TCP-accessible hosts on a firewall-isolated TCP/IP Intranet, or hosts in some other LAN or WAN environment utilizing a non-TCP transport-level protocol. Using SMTP, a process can transfer mail to another process on the same network or to some other network via a relay or gateway process accessible to both networks.
SMTPの重要な機能は、通常は「SMTPメールリレー」と呼ばれるネットワーク間でメールを輸送する機能です(セクション3.8を参照)。ネットワークは、パブリックインターネット上の相互にTCPアクセス可能なホスト、ファイアウォールに挿入されたTCP/IPイントラネットの相互にTCPアクセス可能なホスト、または非TCPトランスポートレベルを利用して他のLANまたはWAN環境のホストで構成されています。プロトコル。SMTPを使用すると、プロセスは、両方のネットワークにアクセスできるリレーまたはゲートウェイプロセスを介して、同じネットワーク上の別のプロセスまたは他のネットワークにメールを転送できます。
In this way, a mail message may pass through a number of intermediate relay or gateway hosts on its path from sender to ultimate recipient. The Mail eXchanger mechanisms of the domain name system [22, 27] (and section 5 of this document) are used to identify the appropriate next-hop destination for a message being transported.
このようにして、メールメッセージは、送信者から究極の受信者へのパス上の多くの中間リレーまたはゲートウェイホストを通過する場合があります。ドメイン名システム[22、27](このドキュメントのセクション5)のメール交換機メカニズムを使用して、輸送されるメッセージの適切な次のホップ宛先を識別します。
The SMTP design can be pictured as:
SMTPの設計は、次のように描くことができます。
+----------+ +----------+
+------+ | | | |
| User |<-->| | SMTP | |
+------+ | Client- |Commands/Replies| Server- |
+------+ | SMTP |<-------------->| SMTP | +------+
| File |<-->| | and Mail | |<-->| File |
|System| | | | | |System|
+------+ +----------+ +----------+ +------+
SMTP client SMTP server
When an SMTP client has a message to transmit, it establishes a two-way transmission channel to an SMTP server. The responsibility of an SMTP client is to transfer mail messages to one or more SMTP servers, or report its failure to do so.
SMTPクライアントに送信するメッセージがある場合、SMTPサーバーへの双方向伝送チャネルを確立します。SMTPクライアントの責任は、メールメッセージを1つ以上のSMTPサーバーに転送するか、その失敗を報告することです。
The means by which a mail message is presented to an SMTP client, and how that client determines the domain name(s) to which mail messages are to be transferred is a local matter, and is not addressed by this document. In some cases, the domain name(s) transferred to, or determined by, an SMTP client will identify the final destination(s) of the mail message. In other cases, common with SMTP clients associated with implementations of the POP [3, 26] or IMAP [6] protocols, or when the SMTP client is inside an isolated transport service environment, the domain name determined will identify an intermediate destination through which all mail messages are to be relayed. SMTP clients that transfer all traffic, regardless of the target domain names associated with the individual messages, or that do not maintain queues for retrying message transmissions that initially cannot be completed, may otherwise conform to this specification but are not considered fully-capable. Fully-capable SMTP implementations, including the relays used by these less capable ones, and their destinations, are expected to support all of the queuing, retrying, and alternate address functions discussed in this specification.
メールメッセージがSMTPクライアントに提示される手段、およびそのクライアントがメールメッセージを転送するドメイン名をどのように決定するかはローカルな問題であり、このドキュメントでは対処されていません。場合によっては、SMTPクライアントに転送または決定されたドメイン名は、メールメッセージの最終宛先を識別します。他のケースでは、POP [3、26]またはIMAP [6]プロトコルの実装に関連付けられているSMTPクライアントに共通している、またはSMTPクライアントが孤立した輸送サービス環境内にある場合、決定されたドメイン名は中間宛先を識別します。すべてのメールメッセージは中継されます。個々のメッセージに関連付けられているターゲットドメイン名に関係なく、すべてのトラフィックを転送する、または最初に完了できないメッセージ送信を再試行するためのキューを維持しないSMTPクライアントは、そうでなければこの仕様に準拠しているが、完全に対応できないとは見なされません。これらの能力の低いもので使用されるリレーとその目的地で使用されるリレーを含む、完全に対応のSMTP実装は、この仕様で説明したすべてのキューイング、再試行、および代替アドレス機能をサポートすることが期待されています。
The means by which an SMTP client, once it has determined a target domain name, determines the identity of an SMTP server to which a copy of a message is to be transferred, and then performs that transfer, is covered by this document. To effect a mail transfer to an SMTP server, an SMTP client establishes a two-way transmission channel to that SMTP server. An SMTP client determines the address of an appropriate host running an SMTP server by resolving a destination domain name to either an intermediate Mail eXchanger host or a final target host.
SMTPクライアントがターゲットドメイン名を決定すると、メッセージのコピーが転送されるSMTPサーバーのIDを決定し、その転送を実行する手段は、このドキュメントでカバーされます。SMTPサーバーへのメール転送を実施するために、SMTPクライアントはそのSMTPサーバーへの双方向伝送チャネルを確立します。SMTPクライアントは、宛先ドメイン名を中間メール交換機ホストまたは最終ターゲットホストのいずれかに解決することにより、SMTPサーバーを実行している適切なホストのアドレスを決定します。
An SMTP server may be either the ultimate destination or an intermediate "relay" (that is, it may assume the role of an SMTP client after receiving the message) or "gateway" (that is, it may transport the message further using some protocol other than SMTP). SMTP commands are generated by the SMTP client and sent to the SMTP server. SMTP replies are sent from the SMTP server to the SMTP client in response to the commands.
SMTPサーバーは、究極の宛先または中間の「リレー」(つまり、メッセージを受信した後のSMTPクライアントの役割を想定する場合があります)または「ゲートウェイ」(つまり、あるプロトコルを使用してメッセージをさらに輸送する場合があります。SMTP以外)。SMTPコマンドはSMTPクライアントによって生成され、SMTPサーバーに送信されます。SMTP応答は、コマンドに応じてSMTPサーバーからSMTPクライアントに送信されます。
In other words, message transfer can occur in a single connection between the original SMTP-sender and the final SMTP-recipient, or can occur in a series of hops through intermediary systems. In either case, a formal handoff of responsibility for the message occurs: the protocol requires that a server accept responsibility for either delivering a message or properly reporting the failure to do so.
言い換えれば、メッセージ転送は、元のSMTPセンダーと最終的なSMTPレシピエントの間の単一の接続で発生する可能性があります。また、中間システムを介した一連のホップで発生する可能性があります。どちらの場合でも、メッセージに対する責任の正式なハンドオフが発生します。プロトコルでは、サーバーがメッセージを配信するか、そうしなかったことを適切に報告する責任を受け入れる必要があります。
Once the transmission channel is established and initial handshaking completed, the SMTP client normally initiates a mail transaction. Such a transaction consists of a series of commands to specify the originator and destination of the mail and transmission of the message content (including any headers or other structure) itself. When the same message is sent to multiple recipients, this protocol encourages the transmission of only one copy of the data for all recipients at the same destination (or intermediate relay) host.
送信チャネルが確立され、最初のハンドシェイクが完了すると、SMTPクライアントは通常、メールトランザクションを開始します。このようなトランザクションは、メッセージコンテンツ(ヘッダーまたはその他の構造を含む)自体のメールのオリジネーターと宛先と送信を指定する一連のコマンドで構成されています。同じメッセージが複数の受信者に送信されると、このプロトコルは、同じ宛先(または中間リレー)ホストのすべての受信者のデータの1つのコピーのみを送信することを奨励します。
The server responds to each command with a reply; replies may indicate that the command was accepted, that additional commands are expected, or that a temporary or permanent error condition exists. Commands specifying the sender or recipients may include server-permitted SMTP service extension requests as discussed in section 2.2. The dialog is purposely lock-step, one-at-a-time, although this can be modified by mutually-agreed extension requests such as command pipelining [13].
サーバーは、各コマンドに返信します。返信は、コマンドが受け入れられたこと、追加のコマンドが予想されること、または一時的または永続的なエラー条件が存在することを示している場合があります。送信者または受信者を指定するコマンドには、セクション2.2で説明されているように、サーバーに容認されたSMTPサービス拡張リクエストが含まれる場合があります。ダイアログは意図的にロックステップです。
Once a given mail message has been transmitted, the client may either request that the connection be shut down or may initiate other mail transactions. In addition, an SMTP client may use a connection to an SMTP server for ancillary services such as verification of email addresses or retrieval of mailing list subscriber addresses.
特定のメールメッセージが送信されたら、クライアントは接続をシャットダウンするか、他のメールトランザクションを開始することを要求する場合があります。さらに、SMTPクライアントは、電子メールアドレスの検証やメーリングリストのサブスクライバーアドレスの取得などの補助サービスにSMTPサーバーへの接続を使用する場合があります。
As suggested above, this protocol provides mechanisms for the transmission of mail. This transmission normally occurs directly from the sending user's host to the receiving user's host when the two hosts are connected to the same transport service. When they are not connected to the same transport service, transmission occurs via one or more relay SMTP servers. An intermediate host that acts as either an SMTP relay or as a gateway into some other transmission environment is usually selected through the use of the domain name service (DNS) Mail eXchanger mechanism.
上記のように、このプロトコルは、メールの送信のメカニズムを提供します。この送信は通常、2人のホストが同じ輸送サービスに接続されているときに、送信ユーザーのホストから受信ユーザーのホストに直接発生します。それらが同じ輸送サービスに接続されていない場合、1つ以上のリレーSMTPサーバーを介して送信が発生します。SMTPリレーとして、または他のいくつかの伝送環境へのゲートウェイとして機能する中間ホストは、通常、ドメイン名サービス(DNS)メール交換機メカニズムを使用して選択されます。
Usually, intermediate hosts are determined via the DNS MX record, not by explicit "source" routing (see section 5 and appendices C and F.2).
通常、中間ホストは、明示的な「ソース」ルーティングではなく、DNS MXレコードを介して決定されます(セクション5および付録CおよびF.2を参照)。
In an effort that started in 1990, approximately a decade after RFC 821 was completed, the protocol was modified with a "service extensions" model that permits the client and server to agree to utilize shared functionality beyond the original SMTP requirements. The SMTP extension mechanism defines a means whereby an extended SMTP client and server may recognize each other, and the server can inform the client as to the service extensions that it supports.
RFC 821が完了してから約10年後に1990年に始まった努力で、プロトコルは、クライアントとサーバーが元のSMTP要件を超えて共有機能を利用することに同意する「サービス拡張」モデルで変更されました。SMTP拡張メカニズムは、拡張されたSMTPクライアントとサーバーが互いに認識できる手段を定義し、サーバーがサポートするサービス拡張機能についてクライアントに通知できることを定義します。
Contemporary SMTP implementations MUST support the basic extension mechanisms. For instance, servers MUST support the EHLO command even if they do not implement any specific extensions and clients SHOULD preferentially utilize EHLO rather than HELO. (However, for compatibility with older conforming implementations, SMTP clients and servers MUST support the original HELO mechanisms as a fallback.) Unless the different characteristics of HELO must be identified for interoperability purposes, this document discusses only EHLO.
現代のSMTP実装は、基本的な拡張メカニズムをサポートしなければなりません (MUST)。例えば、サーバーは特定の拡張機能を実装していない場合であってもEHLOコマンドをサポートしなければならず (MUST)、クライアントはHELOよりもEHLOを優先的に利用すべきです (SHOULD)。(ただし、古い準拠実装との互換性のために、SMTPクライアントおよびサーバーはフォールバックとして元のHELOメカニズムをサポートしなければなりません (MUST)。)相互運用性の目的でHELOの異なる特性を特定する必要がない限り、本文書ではEHLOのみについて論じます。
SMTP is widely deployed and high-quality implementations have proven to be very robust. However, the Internet community now considers some services to be important that were not anticipated when the protocol was first designed. If support for those services is to be added, it must be done in a way that permits older implementations to continue working acceptably. The extension framework consists of:
SMTPは広く展開されており、高品質の実装が非常に堅牢であることが証明されています。ただし、インターネットコミュニティは、プロトコルが最初に設計されたときに予想されていなかったいくつかのサービスが重要であると考えています。これらのサービスのサポートが追加される場合、古い実装が許容できるように継続できるようにする方法で行う必要があります。拡張フレームワークは次のとおりです。
- The SMTP command EHLO, superseding the earlier HELO,
- SMTPコマンドEHLO、以前のHELOに取って代わる、
- a registry of SMTP service extensions,
- SMTPサービス拡張機能のレジストリ、
- additional parameters to the SMTP MAIL and RCPT commands, and
- SMTPメールおよびRCPTコマンドへの追加のパラメーター、および
- optional replacements for commands defined in this protocol, such as for DATA in non-ASCII transmissions [33].
- 非ASCII送信のデータなど、このプロトコルで定義されたコマンドのオプションの交換[33]。
SMTP's strength comes primarily from its simplicity. Experience with many protocols has shown that protocols with few options tend towards ubiquity, whereas protocols with many options tend towards obscurity.
SMTPの強さは、主にそのシンプルさから生まれます。多くのプロトコルの経験により、オプションがほとんどないプロトコルは遍在性に向かう傾向がありますが、多くのオプションを持つプロトコルは不明瞭になる傾向があります。
Each and every extension, regardless of its benefits, must be carefully scrutinized with respect to its implementation, deployment, and interoperability costs. In many cases, the cost of extending the SMTP service will likely outweigh the benefit.
その利点に関係なく、すべての拡張機能は、その実装、展開、および相互運用性コストに関して慎重に精査される必要があります。多くの場合、SMTPサービスを延長するコストは、利益を上回る可能性があります。
The IANA maintains a registry of SMTP service extensions. A corresponding EHLO keyword value is associated with each extension. Each service extension registered with the IANA must be defined in a formal standards-track or IESG-approved experimental protocol document. The definition must include:
IANAは、SMTPサービス拡張機能のレジストリを維持しています。対応するEHLOキーワード値は、各拡張機能に関連付けられています。IANAに登録されている各サービス拡張機能は、正式な標準トラックまたはIESGが承認した実験プロトコルドキュメントで定義する必要があります。定義には以下を含める必要があります。
- the textual name of the SMTP service extension;
- SMTPサービス拡張機能のテキスト名。
- the EHLO keyword value associated with the extension;
- 拡張機能に関連付けられたEhloキーワード値。
- the syntax and possible values of parameters associated with the EHLO keyword value;
- EHLOキーワード値に関連付けられたパラメーターの構文と可能な値。
- any additional SMTP verbs associated with the extension (additional verbs will usually be, but are not required to be, the same as the EHLO keyword value);
- 拡張に関連付けられた追加のSMTP動詞は、通常、Ehloキーワード値と同じであるが必要ではありませんが、必要ではありません)。
- any new parameters the extension associates with the MAIL or RCPT verbs;
- 拡張機能がメールまたはRCPT動詞に関連付けられている新しいパラメーター。
- a description of how support for the extension affects the behavior of a server and client SMTP; and,
- 拡張機能のサポートがサーバーとクライアントSMTPの動作にどのように影響するかの説明。そして、
- the increment by which the extension is increasing the maximum length of the commands MAIL and/or RCPT, over that specified in this standard.
- この標準で指定されているコマンドメールおよび/またはRCPTの拡張機能が最大長を増加させる増分。
In addition, any EHLO keyword value starting with an upper or lower case "X" refers to a local SMTP service extension used exclusively through bilateral agreement. Keywords beginning with "X" MUST NOT be used in a registered service extension. Conversely, keyword values presented in the EHLO response that do not begin with "X" MUST correspond to a standard, standards-track, or IESG-approved experimental SMTP service extension registered with IANA. A conforming server MUST NOT offer non-"X"-prefixed keyword values that are not described in a registered extension.
さらに、大文字または小文字の「X」で始まるEHLOキーワード値は、二者間合意を通じてのみ使用されるローカルSMTPサービス拡張を指します。「X」で始まるキーワードを登録されたサービス拡張で使用してはなりません (MUST NOT)。逆に、EHLO応答で提示される「X」で始まらないキーワード値は、IANAに登録された標準、標準化過程、またはIESG承認の実験的SMTPサービス拡張に対応しなければなりません (MUST)。準拠サーバーは、登録された拡張に記載されていない非「X」プレフィックスのキーワード値を提供してはなりません (MUST NOT)。
Additional verbs and parameter names are bound by the same rules as EHLO keywords; specifically, verbs beginning with "X" are local extensions that may not be registered or standardized. Conversely, verbs not beginning with "X" must always be registered.
追加の動詞とパラメーター名は、Ehloキーワードと同じルールにバインドされています。具体的には、「x」で始まる動詞は、登録または標準化されていないローカル拡張機能です。逆に、「x」で始まっていない動詞は常に登録する必要があります。
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described below.
このドキュメントのキーワード「MUST」、「MUST NOT」、「REQUIRED」、「SHALL」、「SHALL NOT」、「SHOULD」、「SHOULD NOT」、「RECOMMENDED」、「MAY」、「OPTIONAL」は、RFC 2119 または関連する仕様で説明されているように解釈されるものとします。
1. MUST This word, or the terms "REQUIRED" or "SHALL", mean that the definition is an absolute requirement of the specification.
1. MUST この単語、または用語「REQUIRED」もしくは「SHALL」は、定義が仕様の絶対的な要件であることを意味します。
2. MUST NOT This phrase, or the phrase "SHALL NOT", mean that the definition is an absolute prohibition of the specification.
2. MUST NOT このフレーズ、またはフレーズ「SHALL NOT」は、定義が仕様の絶対的な禁止であることを意味します。
3. SHOULD This word, or the adjective "RECOMMENDED", mean that there may exist valid reasons in particular circumstances to ignore a particular item, but the full implications must be understood and carefully weighed before choosing a different course.
3. SHOULD この単語、または形容詞「RECOMMENDED」は、特定の状況において特定の項目を無視する正当な理由が存在する可能性があるものの、別の手段を選択する前に完全な影響を理解し慎重に検討しなければならないことを意味します。
4. SHOULD NOT This phrase, or the phrase "NOT RECOMMENDED" mean that there may exist valid reasons in particular circumstances when the particular behavior is acceptable or even useful, but the full implications should be understood and the case carefully weighed before implementing any behavior described with this label.
4. SHOULD NOT このフレーズ、またはフレーズ「NOT RECOMMENDED」は、特定の動作が許容されるか有用でさえある正当な理由が特定の状況において存在する可能性があるものの、このラベルで記述された動作を実装する前に完全な影響を理解し慎重に検討すべきであることを意味します。
5. MAY This word, or the adjective "OPTIONAL", mean that an item is truly optional. One vendor may choose to include the item because a particular marketplace requires it or because the vendor feels that it enhances the product while another vendor may omit the same item. An implementation which does not include a particular option MUST be prepared to interoperate with another implementation which does include the option, though perhaps with reduced functionality. In the same vein an implementation which does include a particular option MUST be prepared to interoperate with another implementation which does not include the option (except, of course, for the feature the option provides.)
5. MAY この単語、または形容詞「OPTIONAL」は、項目が真に任意であることを意味します。あるベンダーは、特定の市場がそれを必要としているため、あるいは製品を強化すると感じているためにその項目を含めることを選択するかもしれませんが、別のベンダーは同じ項目を省略するかもしれません。特定のオプションを含まない実装は、おそらく機能が低下するものの、そのオプションを含む別の実装と相互運用する準備ができていなければなりません (MUST)。同様に、特定のオプションを含む実装は、そのオプションを含まない別の実装と相互運用する準備ができていなければなりません (MUST)(もちろん、そのオプションが提供する機能自体を除きます)。
SMTP transports a mail object. A mail object contains an envelope and content.
SMTPはメールオブジェクトを輸送します。メールオブジェクトには、封筒とコンテンツが含まれています。
The SMTP envelope is sent as a series of SMTP protocol units (described in section 3). It consists of an originator address (to which error reports should be directed); one or more recipient addresses; and optional protocol extension material. Historically, variations on the recipient address specification command (RCPT TO) could be used to specify alternate delivery modes, such as immediate display; those variations have now been deprecated (see appendix F, section F.6).
SMTPエンベロープは、一連のSMTPプロトコル単位として送信されます(セクション3で説明)。オリジネーターアドレス(エラーレポートを指示する必要がある)で構成されています。1つ以上の受信者アドレス。およびオプションのプロトコル拡張材料。歴史的に、受信者アドレス仕様コマンド(RCPT to)のバリエーションを使用して、即時ディスプレイなどの代替配信モードを指定できます。これらのバリエーションは現在廃止されています(付録F、セクションF.6を参照)。
The SMTP content is sent in the SMTP DATA protocol unit and has two parts: the headers and the body. If the content conforms to other contemporary standards, the headers form a collection of field/value pairs structured as in the message format specification [32]; the body, if structured, is defined according to MIME [12]. The content is textual in nature, expressed using the US-ASCII repertoire [1]. Although SMTP extensions (such as "8BITMIME" [20]) may relax this restriction for the content body, the content headers are always encoded using the US-ASCII repertoire. A MIME extension [23] defines an algorithm for representing header values outside the US-ASCII repertoire, while still encoding them using the US-ASCII repertoire.
SMTPコンテンツはSMTPデータプロトコルユニットで送信され、ヘッダーとボディの2つの部分があります。コンテンツが他の現代の基準に準拠している場合、ヘッダーはメッセージ形式仕様[32]のように構成されたフィールド/バリューペアのコレクションを形成します。体は、構造化されている場合、mime [12]に従って定義されます。コンテンツは本質的にテキストであり、US-ASCIIレパートリー[1]を使用して表現されています。SMTP拡張機能(「8bitmime」[20]など)は、コンテンツ本体のこの制限を緩和する可能性がありますが、コンテンツヘッダーは常にUS-ASCIIレパートリーを使用してエンコードされます。MIME拡張[23]は、US-ASCIIレパートリーを使用してそれらをエンコードしながら、US-ASCIIレパートリーの外側のヘッダー値を表すアルゴリズムを定義します。
In RFC 821, the two hosts participating in an SMTP transaction were described as the "SMTP-sender" and "SMTP-receiver". This document has been changed to reflect current industry terminology and hence refers to them as the "SMTP client" (or sometimes just "the client") and "SMTP server" (or just "the server"), respectively. Since a given host may act both as server and client in a relay situation, "receiver" and "sender" terminology is still used where needed for clarity.
RFC 821では、SMTPトランザクションに参加する2人のホストが「SMTPセンダー」および「SMTP-Receiver」と説明されました。このドキュメントは、現在の業界の用語を反映するように変更されているため、それを「SMTPクライアント」(または「クライアント」だけ)および「SMTPサーバー」(または単なる「サーバー」)と呼びます。特定のホストは、リレーの状況でサーバーとクライアントの両方として機能する可能性があるため、「レシーバー」と「送信者」の用語は、明確にするために必要な場合でも使用されています。
Additional mail system terminology became common after RFC 821 was published and, where convenient, is used in this specification. In particular, SMTP servers and clients provide a mail transport service and therefore act as "Mail Transfer Agents" (MTAs). "Mail User Agents" (MUAs or UAs) are normally thought of as the sources and targets of mail. At the source, an MUA might collect mail to be transmitted from a user and hand it off to an MTA; the final ("delivery") MTA would be thought of as handing the mail off to an MUA (or at least transferring responsibility to it, e.g., by depositing the message in a "message store"). However, while these terms are used with at least the appearance of great precision in other environments, the implied boundaries between MUAs and MTAs often do not accurately match common, and conforming, practices with Internet mail. Hence, the reader should be cautious about inferring the strong relationships and responsibilities that might be implied if these terms were used elsewhere.
RFC 821が公開された後、追加のメールシステム用語が一般的になり、便利な場合、この仕様で使用されます。特に、SMTPサーバーとクライアントはメール輸送サービスを提供するため、「メール転送エージェント」(MTAS)として機能します。「メールユーザーエージェント」(MUASまたはUAS)は、通常、メールのソースとターゲットと考えられています。ソースでは、MUAがユーザーから送信されてMTAに送信するためにメールを収集する場合があります。最終的な(「配信」)MTAは、MUAにメールを渡す(または少なくとも責任を「メッセージストア」に預けることによって責任を譲渡する)と考えられるでしょう。ただし、これらの用語は、少なくとも他の環境では非常に正確な外観で使用されますが、MUAとMTAの間の暗黙の境界は、多くの場合、インターネットメールで一般的な慣行と順応の正確な境界を正確に一致させません。したがって、読者は、これらの用語が他の場所で使用された場合に暗示される可能性のある強力な関係と責任を推測することに注意する必要があります。
For the purposes of this specification, a host is a computer system attached to the Internet (or, in some cases, to a private TCP/IP network) and supporting the SMTP protocol. Hosts are known by names (see "domain"); identifying them by numerical address is discouraged.
この仕様の目的のために、ホストはインターネットに接続されたコンピューターシステム(または場合によってはプライベートTCP/IPネットワーク)であり、SMTPプロトコルをサポートしています。ホストは名前で知られています(「ドメイン」を参照);数値アドレスでそれらを識別することは落胆します。
A domain (or domain name) consists of one or more dot-separated components. These components ("labels" in DNS terminology [22]) are restricted for SMTP purposes to consist of a sequence of letters, digits, and hyphens drawn from the ASCII character set [1]. Domain names are used as names of hosts and of other entities in the domain name hierarchy. For example, a domain may refer to an alias (label of a CNAME RR) or the label of Mail eXchanger records to be used to deliver mail instead of representing a host name. See [22] and section 5 of this specification.
ドメイン(またはドメイン名)は、1つ以上のドット分離コンポーネントで構成されています。これらのコンポーネント(DNS用語[22]の「ラベル」)は、SMTPの目的で、ASCII文字セット[1]から描かれた一連の文字、数字、およびハイフンで構成されることを制限されています。ドメイン名は、ホストの名前およびドメイン名階層内の他のエンティティの名前として使用されます。たとえば、ドメインは、ホスト名を表す代わりにメールを配信するために使用されるメール交換者レコードのエイリアス(CNAME RRのラベル)またはメールのラベルを指す場合があります。この仕様の[22]とセクション5を参照してください。
The domain name, as described in this document and in [22], is the entire, fully-qualified name (often referred to as an "FQDN"). A domain name that is not in FQDN form is no more than a local alias. Local aliases MUST NOT appear in any SMTP transaction.
本文書および[22]で説明されているドメイン名は、完全修飾名全体(しばしば「FQDN」と呼ばれます)です。FQDN形式でないドメイン名は、ローカルエイリアスにすぎません。ローカルエイリアスはいかなるSMTPトランザクションにも現れてはなりません (MUST NOT)。
SMTP sessions are stateful, with both parties carefully maintaining a common view of the current state. In this document we model this state by a virtual "buffer" and a "state table" on the server which may be used by the client to, for example, "clear the buffer" or "reset the state table," causing the information in the buffer to be discarded and the state to be returned to some previous state.
SMTPセッションはステートフルであり、両当事者は現在の状態の共通の見解を慎重に維持しています。このドキュメントでは、この状態をサーバー上の仮想「バッファ」と「状態テーブル」でモデル化します。クライアントは、たとえば「バッファーをクリアする」または「状態テーブルをリセットする」ために使用して情報を原因にします。廃棄されるバッファーと、以前の状態に戻される状態。
SMTP commands and, unless altered by a service extension, message data, are transmitted in "lines". Lines consist of zero or more data characters terminated by the sequence ASCII character "CR" (hex value 0D) followed immediately by ASCII character "LF" (hex value 0A). This termination sequence is denoted as <CRLF> in this document. Conforming implementations MUST NOT recognize or generate any other character or character sequence as a line terminator. Limits MAY be imposed on line lengths by servers (see section 4.5.3).
SMTPコマンドおよび、サービス拡張によって変更されない限りメッセージデータは、「行(line)」単位で伝送されます。行は、ASCII文字「CR」(16進数値0D)の直後にASCII文字「LF」(16進数値0A)が続くシーケンスで終了する0文字以上のデータ文字で構成されます。本文書ではこの終端シーケンスを<CRLF>と表記します。準拠実装は、他の文字または文字シーケンスを行終端記号として認識または生成してはなりません (MUST NOT)。サーバーによって行の長さに制限が課されても構いません (MAY)(セクション4.5.3を参照)。
In addition, the appearance of "bare" "CR" or "LF" characters in text (i.e., either without the other) has a long history of causing problems in mail implementations and applications that use the mail system as a tool. SMTP client implementations MUST NOT transmit these characters except when they are intended as line terminators and then MUST, as indicated above, transmit them only as a <CRLF> sequence.
さらに、テキスト内に「孤立した」CR文字またはLF文字(すなわち、他方を伴わない一方のみ)が現れることは、メール実装やメールシステムをツールとして使用するアプリケーションにおいて問題を引き起こしてきた長い歴史があります。SMTPクライアント実装は、行終端記号として意図されている場合を除いてこれらの文字を送信してはならず (MUST NOT)、その場合は上記で示したように<CRLF>シーケンスとしてのみ送信しなければなりません (MUST)。
This specification makes a distinction among four types of SMTP systems, based on the role those systems play in transmitting electronic mail. An "originating" system (sometimes called an SMTP originator) introduces mail into the Internet or, more generally, into a transport service environment. A "delivery" SMTP system is one that receives mail from a transport service environment and passes it to a mail user agent or deposits it in a message store which a mail user agent is expected to subsequently access. A "relay" SMTP system (usually referred to just as a "relay") receives mail from an SMTP client and transmits it, without modification to the message data other than adding trace information, to another SMTP server for further relaying or for delivery.
この仕様は、電子メールの送信でこれらのシステムが果たす役割に基づいて、4種類のSMTPシステムを区別します。「SMTP Originatorと呼ばれることもある」システム(SMTP Originatorと呼ばれることもあります)は、インターネットまたはより一般的には輸送サービス環境にメールを導入します。「配信」SMTPシステムは、輸送サービス環境からメールを受信し、メールユーザーエージェントに渡すか、メールユーザーエージェントがその後アクセスすると予想されるメッセージストアに預け入れるシステムです。「リレー」SMTPシステム(通常は「リレー」と呼ばれる)は、SMTPクライアントからメールを受信し、トレース情報以外のメッセージデータに変更せずに、さらにリレーまたは配信のために別のSMTPサーバーに変更します。
A "gateway" SMTP system (usually referred to just as a "gateway") receives mail from a client system in one transport environment and transmits it to a server system in another transport environment. Differences in protocols or message semantics between the transport environments on either side of a gateway may require that the gateway system perform transformations to the message that are not permitted to SMTP relay systems. For the purposes of this specification, firewalls that rewrite addresses should be considered as gateways, even if SMTP is used on both sides of them (see [11]).
「ゲートウェイ」SMTPシステム(通常は「ゲートウェイ」と呼ばれる)は、ある輸送環境のクライアントシステムからメールを受信し、別の輸送環境のサーバーシステムに送信します。ゲートウェイの両側にある輸送環境間のプロトコルまたはメッセージセマンティクスの違いにより、ゲートウェイシステムがSMTPリレーシステムに許可されていないメッセージへの変換を実行する必要があります。この仕様の目的のために、アドレスを書き直すファイアウォールは、SMTPがそれらの両側で使用されていても、ゲートウェイと見なされるべきです([11]を参照)。
The terms "message content" and "mail data" are used interchangeably in this document to describe the material transmitted after the DATA command is accepted and before the end of data indication is transmitted. Message content includes message headers and the possibly-structured message body. The MIME specification [12] provides the standard mechanisms for structured message bodies.
このドキュメントでは、「メッセージコンテンツ」と「メールデータ」という用語は、データコマンドが受け入れられた後、データ指標が終了する前に送信された後に送信された資料を説明するために、交換可能に使用されます。メッセージコンテンツには、メッセージヘッダーと構造化されている可能性のあるメッセージ本文が含まれます。MIME仕様[12]は、構造化されたメッセージ本文の標準メカニズムを提供します。
As used in this specification, an "address" is a character string that identifies a user to whom mail will be sent or a location into which mail will be deposited. The term "mailbox" refers to that depository. The two terms are typically used interchangeably unless the distinction between the location in which mail is placed (the mailbox) and a reference to it (the address) is important. An address normally consists of user and domain specifications. The standard mailbox naming convention is defined to be "local-part@domain": contemporary usage permits a much broader set of applications than simple "user names". Consequently, and due to a long history of problems when intermediate hosts have attempted to optimize transport by modifying them, the local-part MUST be interpreted and assigned semantics only by the host specified in the domain part of the address.
本仕様で使用される「アドレス」は、メールの送信先となるユーザーまたはメールが預け入れられる場所を識別する文字列です。「メールボックス」という用語はその預託場所を指します。メールが配置される場所(メールボックス)とそれを参照するもの(アドレス)の区別が重要でない限り、通常これら2つの用語は互換的に使用されます。アドレスは通常、ユーザー指定とドメイン指定で構成されます。標準のメールボックス命名規則は「local-part@domain」と定義されています。現代の用法では、単純な「ユーザー名」よりもはるかに広範なアプリケーションが許可されています。結果として、また中継ホストがそれらを変更して転送を最適化しようとした際に発生した長い問題の歴史のために、local-partはアドレスのdomainパートで指定されたホストによってのみ解釈され、意味論を割り当てられなければなりません (MUST)。
An SMTP reply is an acknowledgment (positive or negative) sent from receiver to sender via the transmission channel in response to a command. The general form of a reply is a numeric completion code (indicating failure or success) usually followed by a text string. The codes are for use by programs and the text is usually intended for human users. Recent work [34] has specified further structuring of the reply strings, including the use of supplemental and more specific completion codes.
SMTP返信は、コマンドに応じて送信チャネルを介して受信機から送信者に送信される確認(正または負)です。返信の一般的な形式は、通常テキスト文字列が続く数値完了コード(失敗または成功を示す)です。コードはプログラムで使用するためであり、テキストは通常、人間のユーザー向けです。最近の研究[34]は、補足的およびより具体的な完了コードの使用を含む、応答文字列のさらなる構造化を指定しています。
SMTP commands and replies have a rigid syntax. All commands begin with a command verb. All Replies begin with a three digit numeric code. In some commands and replies, arguments MUST follow the verb or reply code. Some commands do not accept arguments (after the verb), and some reply codes are followed, sometimes optionally, by free form text. In both cases, where text appears, it is separated from the verb or reply code by a space character. Complete definitions of commands and replies appear in section 4.
SMTPコマンドと応答には厳格な構文があります。すべてのコマンドはコマンド動詞で始まります。すべての返信は3桁の数値コードで始まります。一部のコマンドおよび返信では、引数は動詞または応答コードの後に続かなければなりません (MUST)。一部のコマンドは引数を受け入れず(動詞の後)、一部の応答コードには、時には任意で自由形式のテキストが続きます。どちらの場合も、テキストが現れる場所では、スペース文字によって動詞または応答コードから区切られます。コマンドと返信の完全な定義はセクション4に記載されています。
Verbs and argument values (e.g., "TO:" or "to:" in the RCPT command and extension name keywords) are not case sensitive, with the sole exception in this specification of a mailbox local-part (SMTP Extensions may explicitly specify case-sensitive elements). That is, a command verb, an argument value other than a mailbox local-part, and free form text MAY be encoded in upper case, lower case, or any mixture of upper and lower case with no impact on its meaning. This is NOT true of a mailbox local-part. The local-part of a mailbox MUST BE treated as case sensitive. Therefore, SMTP implementations MUST take care to preserve the case of mailbox local-parts. Mailbox domains are not case sensitive. In particular, for some hosts the user "smith" is different from the user "Smith". However, exploiting the case sensitivity of mailbox local-parts impedes interoperability and is discouraged.
動詞および引数の値(例えばRCPTコマンドにおける「TO:」や「to:」、および拡張名キーワード)は、本文書における唯一の例外であるメールボックスのlocal-partを除き、大文字と小文字を区別しません(SMTP拡張では大文字小文字を区別する要素を明示的に指定する場合があります)。すなわち、コマンド動詞、メールボックスのlocal-part以外の引数値、および自由形式のテキストは、その意味に影響を与えることなく大文字、小文字、または大文字と小文字の任意の組み合わせでエンコードされてもよい (MAY)。これはメールボックスのlocal-partには当てはまりません。メールボックスのlocal-partは大文字と小文字を区別して扱われなければなりません (MUST)。したがって、SMTP実装はメールボックスのlocal-partの大文字小文字を保持するよう注意を払わなければなりません (MUST)。メールボックスのドメインは大文字と小文字を区別しません。特に一部のホストでは、ユーザー「smith」はユーザー「Smith」とは異なります。しかし、メールボックスのlocal-partの大文字小文字の区別を利用することは相互運用性を妨げるため、推奨されません。
A few SMTP servers, in violation of this specification (and RFC 821) require that command verbs be encoded by clients in upper case. Implementations MAY wish to employ this encoding to accommodate those servers.
ごく一部のSMTPサーバーは、本仕様(およびRFC 821)に違反して、クライアントがコマンド動詞を大文字でエンコードすることを要求します。実装は、それらのサーバーに対応するためにこのエンコードを採用してもよい (MAY)。
The argument field consists of a variable length character string ending with the end of the line, i.e., with the character sequence <CRLF>. The receiver will take no action until this sequence is received.
引数フィールドは、行の終わり、つまり文字シーケンス<CRLF>で終了する可変長さの文字列で構成されています。このシーケンスが受信されるまで、受信機は措置を講じません。
The syntax for each command is shown with the discussion of that command. Common elements and parameters are shown in section 4.1.2.
各コマンドの構文は、そのコマンドの議論とともに表示されます。一般的な要素とパラメーターは、セクション4.1.2に示されています。
Commands and replies are composed of characters from the ASCII character set [1]. When the transport service provides an 8-bit byte (octet) transmission channel, each 7-bit character is transmitted right justified in an octet with the high order bit cleared to zero. More specifically, the unextended SMTP service provides seven bit transport only. An originating SMTP client which has not successfully negotiated an appropriate extension with a particular server MUST NOT transmit messages with information in the high-order bit of octets. If such messages are transmitted in violation of this rule, receiving SMTP servers MAY clear the high-order bit or reject the message as invalid. In general, a relay SMTP SHOULD assume that the message content it has received is valid and, assuming that the envelope permits doing so, relay it without inspecting that content. Of course, if the content is mislabeled and the data path cannot accept the actual content, this may result in ultimate delivery of a severely garbled message to the recipient. Delivery SMTP systems MAY reject ("bounce") such messages rather than deliver them. No sending SMTP system is permitted to send envelope commands in any character set other than US-ASCII; receiving systems SHOULD reject such commands, normally using "500 syntax error - invalid character" replies.
コマンドおよび応答は、ASCII文字セット [1] の文字で構成されます。トランスポートサービスが8ビットバイト(オクテット)伝送チャネルを提供する場合、各7ビット文字は上位ビットをゼロにクリアした状態でオクテット内に右詰めで送信されます。より具体的には、拡張されていないSMTPサービスは7ビット伝送のみを提供します。特定のサーバーと適切な拡張を正常にネゴシエートしていない送信元SMTPクライアントは、オクテットの上位ビットに情報を含むメッセージを送信してはなりません (MUST NOT)。そのようなメッセージがこの規則に違反して送信された場合、受信SMTPサーバーは上位ビットをクリアしても、あるいはメッセージを無効として拒否してもよい (MAY)。一般に、中継SMTPは受信したメッセージコンテンツが有効であると想定すべきであり (SHOULD)、エンベロープがそれを許可していると仮定して、そのコンテンツを検査することなく中継すべきです。もちろん、コンテンツに誤ったラベルが付けられており、データパスが実際のコンテンツを受け入れることができない場合、受信者にひどく文字化けしたメッセージが最終的に配信される結果になる可能性があります。配信SMTPシステムは、そのようなメッセージを配信するのではなく拒否(「バウンス」)してもよい (MAY)。送信SMTPシステムは、US-ASCII以外の文字セットでエンベロープコマンドを送信することは許可されていません。受信システムは、通常「500 syntax error - invalid character」応答を使用して、そのようなコマンドを拒否すべきです (SHOULD)。
Eight-bit message content transmission MAY be requested of the server by a client using extended SMTP facilities, notably the "8BITMIME" extension [20]. 8BITMIME SHOULD be supported by SMTP servers. However, it MUST not be construed as authorization to transmit unrestricted eight bit material. 8BITMIME MUST NOT be requested by senders for material with the high bit on that is not in MIME format with an appropriate content-transfer encoding; servers MAY reject such messages.
拡張されたSMTP機能、特に「8BITMIME」拡張[20]を使用して、クライアントがサーバーに8ビットのメッセージコンテンツを送信することを要求する場合があります。SMTPサーバーは8BITMIMEをサポートすべきです (SHOULD) が、無制限の8ビットデータの送信を許可するものと解釈してはなりません (MUST NOT)。適切なContent-Transfer-Encodingを持つMIME形式ではない8BITMIMEデータは、送信者から要求されてはならず、サーバーはそのようなメッセージを拒否しても構いません (MAY)。また、クライアントはサーバーが8BITMIMEをサポートすることを宣伝した場合にのみ8ビットデータを送信してもよく (MAY)、そうでない場合は7ビット形式で送信しなければなりません (MUST)。
The metalinguistic notation used in this document corresponds to the "Augmented BNF" used in other Internet mail system documents. The reader who is not familiar with that syntax should consult the ABNF specification [8]. Metalanguage terms used in running text are surrounded by pointed brackets (e.g., <CRLF>) for clarity.
このドキュメントで使用されているメタリングの表記は、他のインターネットメールシステムドキュメントで使用されている「拡張BNF」に対応しています。その構文に慣れていない読者は、ABNF仕様[8]を参照する必要があります。ランニングテキストで使用されるMetalanangage用語は、明確にするために、先の尖ったブラケット(例:<CRLF>)に囲まれています。
This section contains descriptions of the procedures used in SMTP: session initiation, the mail transaction, forwarding mail, verifying mailbox names and expanding mailing lists, and the opening and closing exchanges. Comments on relaying, a note on mail domains, and a discussion of changing roles are included at the end of this section. Several complete scenarios are presented in appendix D.
このセクションには、SMTPで使用される手順の説明:セッション開始、メールトランザクション、メールの転送、メールボックス名の確認、メーリングリストの拡張、および開閉交換が含まれています。このセクションの最後に、中継、メールドメインに関するメモ、および変更の変更に関する議論に関するコメントが含まれています。いくつかの完全なシナリオは、付録Dに示されています。
An SMTP session is initiated when a client opens a connection to a server and the server responds with an opening message.
クライアントがサーバーへの接続を開き、サーバーが開くメッセージで応答すると、SMTPセッションが開始されます。
SMTP server implementations MAY include identification of their software and version information in the connection greeting reply after the 220 code, a practice that permits more efficient isolation and repair of any problems. Implementations MAY make provision for SMTP servers to disable the software and version announcement where it causes security concerns. While some systems also identify their contact point for mail problems, this is not a substitute for maintaining the required "postmaster" address (see section 4.5.1).
SMTPサーバー実装は、220コードの後の接続挨拶返信にソフトウェアおよびバージョン情報の識別を含めてもよく (MAY)、この方法は問題のより効率的な切り分けと修復を可能にします。実装は、セキュリティ上の懸念を引き起こす場合にソフトウェアおよびバージョンのアナウンスを無効にするための規定をSMTPサーバーに設けても構いません (MAY)。一部のシステムはメールの問題に対する連絡窓口も特定しますが、これは要求される「postmaster」アドレスを維持することの代用にはなりません(セクション4.5.1を参照)。
The SMTP protocol allows a server to formally reject a transaction while still allowing the initial connection as follows: a 554 response MAY be given in the initial connection opening message instead of the 220. A server taking this approach MUST still wait for the client to send a QUIT (see section 4.1.1.10) before closing the connection and SHOULD respond to any intervening commands with
SMTPプロトコルでは、サーバーが初期接続を許可しながらトランザクションを正式に拒否することが次のように可能です: 220の代わりに、初期接続開始メッセージで554応答を提供してもよい (MAY)。このアプローチをとるサーバーは、接続を閉じる前にクライアントがQUIT(セクション4.1.1.10を参照)を送信するのを待たなければならず (MUST)、途中のいかなるコマンドに対しても「503 bad sequence of commands」で応答すべきです (SHOULD)。
"503 bad sequence of commands". Since an attempt to make an SMTP connection to such a system is probably in error, a server returning a 554 response on connection opening SHOULD provide enough information in the reply text to facilitate debugging of the sending system.
「503 bad sequence of commands」。そのようなシステムへのSMTP接続の試行はおそらくエラーであるため、接続開始時に554応答を返すサーバーは、送信システムのデバッグを容易にするために応答テキストに十分な情報を提供するべきです (SHOULD)。
Once the server has sent the welcoming message and the client has received it, the client normally sends the EHLO command to the server, indicating the client's identity. In addition to opening the session, use of EHLO indicates that the client is able to process service extensions and requests that the server provide a list of the extensions it supports. Older SMTP systems which are unable to support service extensions and contemporary clients which do not require service extensions in the mail session being initiated, MAY use HELO instead of EHLO. Servers MUST NOT return the extended EHLO-style response to a HELO command. For a particular connection attempt, if the server returns a "command not recognized" response to EHLO, the client SHOULD be able to fall back and send HELO.
サーバーが歓迎メッセージを送信し、クライアントがそれを受信すると、クライアントは通常、クライアントのIDを示すEHLOコマンドをサーバーに送信します。セッションを開くことに加えて、EHLOの使用はクライアントがサービス拡張を処理できることを示し、サーバーがサポートする拡張のリストを提供するよう要求します。サービス拡張をサポートできない古いSMTPシステム、および開始されるメールセッションでサービス拡張を必要としない現代のクライアントは、EHLOの代わりにHELOを使用してもよい (MAY)。サーバーはHELOコマンドに対して拡張されたEHLOスタイルの応答を返してはなりません (MUST NOT)。特定の接続試行において、サーバーがEHLOに対して「認識されないコマンド」応答を返した場合、クライアントはフォールバックしてHELOを送信できるべきです (SHOULD)。
In the EHLO command the host sending the command identifies itself; the command may be interpreted as saying "Hello, I am <domain>" (and, in the case of EHLO, "and I support service extension requests").
EHLOコマンドでは、コマンドを送信するホストがそれ自体を識別します。コマンドは、「こんにちは、私は<domain>」と言っていると解釈される場合があります(そして、ehloの場合、私はサービス拡張リクエストをサポートしています」)。
There are three steps to SMTP mail transactions. The transaction starts with a MAIL command which gives the sender identification. (In general, the MAIL command may be sent only when no mail transaction is in progress; see section 4.1.4.) A series of one or more RCPT commands follows giving the receiver information. Then a DATA command initiates transfer of the mail data and is terminated by the "end of mail" data indicator, which also confirms the transaction.
SMTPメールトランザクションには3つのステップがあります。トランザクションは、送信者に識別を与えるメールコマンドから始まります。(一般に、メールコマンドは、メールトランザクションが進行中の場合にのみ送信される場合があります。セクション4.1.4を参照してください。)1つ以上のRCPTコマンドのシリーズは、受信者情報を提供します。次に、データコマンドはメールデータの転送を開始し、「メールの終了」データインジケーターによって終了し、これもトランザクションを確認します。
The first step in the procedure is the MAIL command.
手順の最初のステップは、メールコマンドです。
MAIL FROM:<reverse-path> [SP <mail-parameters> ] <CRLF>
This command tells the SMTP-receiver that a new mail transaction is starting and to reset all its state tables and buffers, including any recipients or mail data. The <reverse-path> portion of the first or only argument contains the source mailbox (between "<" and ">" brackets), which can be used to report errors (see section 4.2 for a discussion of error reporting). If accepted, the SMTP server returns a 250 OK reply. If the mailbox specification is not acceptable for some reason, the server MUST return a reply indicating whether the failure is permanent (i.e., will occur again if the client tries to send the same address again) or temporary (i.e., the address might be accepted if the client tries again later). Despite the apparent scope of this requirement, there are circumstances in which the acceptability of the reverse-path may not be determined until one or more forward-paths (in RCPT commands) can be examined. In those cases, the server MAY reasonably accept the reverse-path (with a 250 reply) and then report problems after the forward-paths are received and examined. Normally, failures produce 550 or 553 replies.
このコマンドは、新しいメールトランザクションが開始されること、および受信者やメールデータを含むすべての状態テーブルとバッファをリセットすることをSMTPレシーバーに伝えます。最初または唯一の引数の<reverse-path>部分には、エラーを報告するために使用できる(エラー報告の説明についてはセクション4.2を参照)送信元メールボックス(「<」と「>」の角括弧の間)が含まれます。受け入れられた場合、SMTPサーバーは250 OK返信を返します。何らかの理由でメールボックスの指定が受け入れられない場合、サーバーは障害が永続的であるか(すなわち、クライアントが同じアドレスを再度送信しようとしても再び発生するか)、一時的であるか(すなわち、クライアントが後で再試行すればアドレスが受け入れられる可能性があるか)を示す返信を返さなければなりません (MUST)。この要件の見かけの範囲にもかかわらず、1つ以上のforward-path(RCPTコマンド内)を検査できるようになるまでreverse-pathの受容性を判断できない状況が存在します。そのような場合、サーバーはreverse-pathを合理的に受け入れ(250返信で)、forward-pathを受信して検査した後に問題を報告してもよい (MAY)。通常、障害は550または553の返信を生成します。
Historically, the <reverse-path> can contain more than just a mailbox, however, contemporary systems SHOULD NOT use source routing (see appendix C).
歴史的に、<reverse-path>には単なるメールボックス以上のものを含めることができましたが、現代のシステムはソースルーティングを使用すべきではありません (SHOULD NOT)(付録Cを参照)。
The optional <mail-parameters> are associated with negotiated SMTP service extensions (see section 2.2).
オプション<Mail-Parameters>は、ネゴシエートされたSMTPサービス拡張機能に関連付けられています(セクション2.2を参照)。
The second step in the procedure is the RCPT command.
手順の2番目のステップは、RCPTコマンドです。
RCPT TO:<forward-path> [ SP <rcpt-parameters> ] <CRLF>
The first or only argument to this command includes a forward-path (normally a mailbox and domain, always surrounded by "<" and ">" brackets) identifying one recipient. If accepted, the SMTP server returns a 250 OK reply and stores the forward-path. If the recipient is known not to be a deliverable address, the SMTP server returns a 550 reply, typically with a string such as "no such user - " and the mailbox name (other circumstances and reply codes are possible). This step of the procedure can be repeated any number of times.
このコマンドの最初のまたは唯一の引数には、1人の受信者を識別するフォワードパス(通常はメールボックスとドメインが常に「<」と「>」ブラケットに囲まれています)が含まれます。受け入れられた場合、SMTPサーバーは250 OK返信を返し、フォワードパスを保存します。受信者が成果物のアドレスでないことがわかっている場合、SMTPサーバーは550の返信を返します。通常は「そのようなユーザーなし」などの文字列とメールボックス名(その他の状況と返信コードが可能です)。手順のこのステップは、何度も繰り返すことができます。
The <forward-path> can contain more than just a mailbox. Historically, the <forward-path> can be a source routing list of hosts and the destination mailbox, however, contemporary SMTP clients SHOULD NOT utilize source routes (see appendix C). Servers MUST be prepared to encounter a list of source routes in the forward path, but SHOULD ignore the routes or MAY decline to support the relaying they imply. Similarly, servers MAY decline to accept mail that is destined for other hosts or systems. These restrictions make a server useless as a relay for clients that do not support full SMTP functionality. Consequently, restricted-capability clients MUST NOT assume that any SMTP server on the Internet can be used as their mail processing (relaying) site. If a RCPT command appears without a previous MAIL command, the server MUST return a 503 "Bad sequence of commands" response. The optional <rcpt-parameters> are associated with negotiated SMTP service extensions (see section 2.2).
<forward-path>には単なるメールボックス以上のものを含めることができます。歴史的に、<forward-path>はホストのソースルーティングリストと宛先メールボックスにすることができましたが、現代のSMTPクライアントはソースルートを利用すべきではありません (SHOULD NOT)(付録Cを参照)。サーバーはforward-pathにおけるソースルートのリストに遭遇する準備ができていなければなりませんが (MUST)、そのルートを無視すべきであり (SHOULD)、あるいはそれらが暗示する中継のサポートを拒否しても構いません (MAY)。同様に、サーバーは他のホストまたはシステムに向けられたメールの受け入れを拒否してもよい (MAY)。これらの制限により、完全なSMTP機能をサポートしていないクライアントの中継としてサーバーを使用できなくなります。したがって、機能が制限されたクライアントは、インターネット上の任意のSMTPサーバーをメール処理(中継)サイトとして使用できると仮定してはなりません (MUST NOT)。以前のMAILコマンドなしでRCPTコマンドが現れた場合、サーバーは503「Bad sequence of commands」応答を返さなければなりません (MUST)。オプションの<rcpt-parameters>は、ネゴシエートされたSMTPサービス拡張に関連付けられています(セクション2.2を参照)。
The third step in the procedure is the DATA command (or some alternative specified in a service extension).
手順の3番目のステップは、データコマンド(またはサービス拡張機能で指定された代替案)です。
DATA <CRLF>
データ<CRLF>
If accepted, the SMTP server returns a 354 Intermediate reply and considers all succeeding lines up to but not including the end of mail data indicator to be the message text. When the end of text is successfully received and stored the SMTP-receiver sends a 250 OK reply.
受け入れられた場合、SMTPサーバーは354中間の応答を返し、メールデータインジケーターの終わりをメッセージテキストにすることはありませんが、すべての成功したラインを考慮します。テキストの終了が正常に受信され、保存されると、SMTP-Receiverは250 OK返信を送信します。
Since the mail data is sent on the transmission channel, the end of mail data must be indicated so that the command and reply dialog can be resumed. SMTP indicates the end of the mail data by sending a line containing only a "." (period or full stop). A transparency procedure is used to prevent this from interfering with the user's text (see section 4.5.2).
メールデータは送信チャネルに送信されるため、コマンドと返信ダイアログを再開できるように、メールデータの終了を示す必要があります。SMTPは、「。」のみを含む行を送信することにより、メールデータの終了を示します。(期間またはフルストップ)。これがユーザーのテキストを妨害するのを防ぐために、透明性手順を使用します(セクション4.5.2を参照)。
The end of mail data indicator also confirms the mail transaction and tells the SMTP server to now process the stored recipients and mail data. If accepted, the SMTP server returns a 250 OK reply. The DATA command can fail at only two points in the protocol exchange:
メールデータインジケーターの終了は、メールトランザクションも確認し、SMTPサーバーに保存された受信者とメールデータを処理するように指示します。受け入れられた場合、SMTPサーバーは250 OK返信を返します。データコマンドは、プロトコル交換の2ポイントのみで失敗する可能性があります。
- If there was no MAIL, or no RCPT, command, or all such commands were rejected, the server MAY return a "command out of sequence" (503) or "no valid recipients" (554) reply in response to the DATA command. If one of those replies (or any other 5yz reply) is received, the client MUST NOT send the message data; more generally, message data MUST NOT be sent unless a 354 reply is received.
- MAILコマンドもRCPTコマンドもなかった場合、またはそのようなすべてのコマンドが拒否された場合、サーバーはDATAコマンドへの応答として「command out of sequence」(503) または「no valid recipients」(554) 返信を返してもよい (MAY)。これらの返信のいずれか(または他の任意の5yz返信)を受信した場合、クライアントはメッセージデータを送信してはなりません (MUST NOT)。より一般的には、354返信を受信しない限り、メッセージデータを送信してはなりません (MUST NOT)。
- If the verb is initially accepted and the 354 reply issued, the DATA command should fail only if the mail transaction was incomplete (for example, no recipients), or if resources were unavailable (including, of course, the server unexpectedly becoming unavailable), or if the server determines that the message should be rejected for policy or other reasons.
- 動詞が最初に受け入れられ、354の返信が発行された場合、データコマンドは、メールトランザクションが不完全である場合(たとえば、受信者)、またはリソースが利用できない場合にのみ失敗する必要があります(もちろん、サーバーが予期せずに利用できなくなる)または、サーバーが、ポリシーまたはその他の理由でメッセージを拒否する必要があると判断した場合。
However, in practice, some servers do not perform recipient verification until after the message text is received. These servers SHOULD treat a failure for one or more recipients as a "subsequent failure" and return a mail message as discussed in section 6. Using a "550 mailbox not found" (or equivalent) reply code after the data are accepted makes it difficult or impossible for the client to determine which recipients failed.
しかし実際には、一部のサーバーはメッセージテキストを受信するまで受信者検証を実行しません。これらのサーバーは、1人以上の受信者に対する失敗を「後続の失敗」として扱い、セクション6で説明されているようにメールメッセージを返送すべきです (SHOULD)。データが受け入れられた後に「550 mailbox not found」(または同等の)応答コードを使用すると、クライアントがどの受信者が失敗したかを特定することが困難または不可能になります。
When RFC 822 format [7, 32] is being used, the mail data include the memo header items such as Date, Subject, To, Cc, From. Server SMTP systems SHOULD NOT reject messages based on perceived defects in the RFC 822 or MIME [12] message header or message body. In particular, they MUST NOT reject messages in which the numbers of Resent-fields do not match or Resent-to appears without Resent-from and/or Resent-date.
RFC 822形式[7, 32]が使用されている場合、メールデータにはDate、Subject、To、Cc、Fromなどのメモヘッダー項目が含まれます。サーバーSMTPシステムは、RFC 822またはMIME [12]のメッセージヘッダーまたはメッセージ本文において認識された欠陥に基づいてメッセージを拒否すべきではありません (SHOULD NOT)。特に、Resent-フィールドの数が一致しないメッセージや、Resent-fromおよび/またはResent-dateを伴わずにResent-toが現れるメッセージを拒否してはなりません (MUST NOT)。
Mail transaction commands MUST be used in the order discussed above.
メールトランザクションコマンドは、上記で説明した順序で使用しなければなりません (MUST)。
Forwarding support is most often required to consolidate and simplify addresses within, or relative to, some enterprise and less frequently to establish addresses to link a person's prior address with current one. Silent forwarding of messages (without server notification to the sender), for security or non-disclosure purposes, is common in the contemporary Internet.
転送サポートは、一部の企業内、または一部のエンタープライズを統合および簡素化するために、ほとんどの場合、個人の先行住所を現在の住所とリンクする住所を確立するためには、ほとんどの場合必要です。セキュリティまたは非開示の目的で、メッセージのサイレント転送(送信者へのサーバー通知なし)は、現代のインターネットで一般的です。
In both the enterprise and the "new address" cases, information hiding (and sometimes security) considerations argue against exposure of the "final" address through the SMTP protocol as a side-effect of the forwarding activity. This may be especially important when the final address may not even be reachable by the sender. Consequently, the "forwarding" mechanisms described in section 3.2 of RFC 821, and especially the 251 (corrected destination) and 551 reply codes from RCPT must be evaluated carefully by implementers and, when they are available, by those configuring systems.
企業と「新しいアドレス」の場合の両方で、情報を隠す(そして時にはセキュリティ)考慮事項は、転送活動の副作用としてのSMTPプロトコルを介した「最終」アドレスの暴露に反対しています。これは、最終アドレスに送信者が到達できない場合が特に重要です。その結果、RFC 821のセクション3.2で説明されている「転送」メカニズム、特にRCPTからの251(修正された目的地)および551の返信コードは、実装者、およびそれらが利用可能な場合、それらの構成システムによって慎重に評価される必要があります。
In particular:
特に:
* Servers MAY forward messages when they are aware of an address change. When they do so, they MAY either provide address-updating information with a 251 code, or may forward "silently" and return a 250 code. But, if a 251 code is used, they MUST NOT assume that the client will actually update address information or even return that information to the user.
* サーバーは、アドレスの変更を認識している場合にメッセージを転送してもよい (MAY)。そうする場合、251コードを使用してアドレス更新情報を提供しても、あるいは「暗黙的に」転送して250コードを返してもよい (MAY)。ただし、251コードが使用される場合、サーバーはクライアントが実際にアドレス情報を更新すること、あるいはその情報をユーザーに返送することさえ想定してはなりません (MUST NOT)。
Alternately,
代わりに、
* Servers MAY reject or bounce messages when they are not deliverable when addressed. When they do so, they MAY either provide address-updating information with a 551 code, or may reject the message as undeliverable with a 550 code and no address-specific information. But, if a 551 code is used, they MUST NOT assume that the client will actually update address information or even return that information to the user.
* サーバーは、宛先のアドレスに配信できない場合にメッセージを拒否またはバウンスしてもよい (MAY)。そうする場合、551コードを使用してアドレス更新情報を提供しても、あるいは550コードおよびアドレス固有の情報なしでメッセージを配信不能として拒否してもよい (MAY)。ただし、551コードが使用される場合、サーバーはクライアントが実際にアドレス情報を更新すること、あるいはその情報をユーザーに返送することさえ想定してはなりません (MUST NOT)。
SMTP server implementations that support the 251 and/or 551 reply codes are strongly encouraged to provide configuration mechanisms so that sites which conclude that they would undesirably disclose information can disable or restrict their use.
251および/または551の返信コードをサポートするSMTPサーバーの実装は、情報を望ましく開示すると結論付けるサイトが使用を無効または制限できると結論付けるように、構成メカニズムを提供することを強くお勧めします。
SMTP provides commands to verify a user name or obtain the content of a mailing list. This is done with the VRFY and EXPN commands, which have character string arguments. Implementations SHOULD support VRFY and EXPN (however, see section 3.5.2 and 7.3).
SMTPは、ユーザー名を検証したり、メーリングリストの内容を取得したりするコマンドを提供します。これは、文字列の引数を持つVRFYおよびEXPNコマンドによって行われます。実装はVRFYおよびEXPNをサポートすべきです (SHOULD)(ただし、セクション3.5.2および7.3を参照)。
For the VRFY command, the string is a user name or a user name and domain (see below). If a normal (i.e., 250) response is returned, the response MAY include the full name of the user and MUST include the mailbox of the user. It MUST be in either of the following forms:
VRFYコマンドの場合、文字列はユーザー名、またはユーザー名とドメインです(以下を参照)。通常(すなわち250)の応答が返される場合、応答にはユーザーの氏名が含まれてもよく (MAY)、ユーザーのメールボックスを含めなければなりません (MUST)。これは以下のいずれかの形式でなければなりません (MUST):
User Name <local-part@domain>
local-part@domain
When a name that is the argument to VRFY could identify more than one mailbox, the server MAY either note the ambiguity or identify the alternatives. In other words, any of the following are legitimate response to VRFY:
VRFYの引数である名前が複数のメールボックスを識別し得る場合、サーバーは曖昧さを指摘しても、代替候補を特定しても構いません (MAY)。言い換えれば、以下のいずれもVRFYに対する正当な応答です:
553 User ambiguous
553ユーザー曖昧
or
または又はそれとも若しくは乃至或るいは
553- Ambiguous; Possibilities are
553-Joe Smith <jsmith@foo.com>
553-Harry Smith <hsmith@foo.com>
553 Melvin Smith <dweep@foo.com>
or
または又はそれとも若しくは乃至或るいは
553-Ambiguous; Possibilities
553- <jsmith@foo.com>
553- <hsmith@foo.com>
553 <dweep@foo.com>
Under normal circumstances, a client receiving a 553 reply would be expected to expose the result to the user. Use of exactly the forms given, and the "user ambiguous" or "ambiguous" keywords, possibly supplemented by extended reply codes such as those described in [34], will facilitate automated translation into other languages as needed. Of course, a client that was highly automated or that was operating in another language than English, might choose to try to translate the response, to return some other indication to the user than the literal text of the reply, or to take some automated action such as consulting a directory service for additional information before reporting to the user.
通常の状況では、553回の返信を受けたクライアントは、結果をユーザーに公開することが期待されます。与えられたフォームの正確な使用、および[34]で説明されているような拡張された返信コードによって補足される可能性のある「ユーザーの曖昧な」または「曖昧な」キーワードの使用は、必要に応じて他の言語への自動翻訳を容易にします。もちろん、高度に自動化された、または英語よりも別の言語で動作していたクライアントは、応答の文字通りのテキストよりも、応答を翻訳したり、他の表示をユーザーに返すことを選択することもできます。ユーザーに報告する前に、追加情報についてはディレクトリサービスに相談するなど。
For the EXPN command, the string identifies a mailing list, and the successful (i.e., 250) multiline response MAY include the full name of the users and MUST give the mailboxes on the mailing list.
EXPNコマンドの場合、文字列はメーリングリストを識別し、成功した(すなわち250)複数行の応答にはユーザーの氏名が含まれてもよく (MAY)、メーリングリスト上のメールボックスを提供しなければなりません (MUST)。
In some hosts the distinction between a mailing list and an alias for a single mailbox is a bit fuzzy, since a common data structure may hold both types of entries, and it is possible to have mailing lists containing only one mailbox. If a request is made to apply VRFY to a mailing list, a positive response MAY be given if a message so addressed would be delivered to everyone on the list, otherwise an error SHOULD be reported (e.g., "550 That is a mailing list, not a user" or "252 Unable to verify members of mailing list"). If a request is made to expand a user name, the server MAY return a positive response consisting of a list containing one name, or an error MAY be reported (e.g., "550 That is a user name, not a mailing list").
一部のホストでは、共通のデータ構造が両方のタイプのエントリを保持する可能性があり、1つのメールボックスのみを含むメーリングリストを持つことも可能であるため、メーリングリストと単一メールボックスのエイリアスとの区別が少し曖昧です。VRFYをメーリングリストに適用する要求が行われた場合、そのように宛てられたメッセージがリスト上の全員に配信されるのであれば肯定的な応答を返してもよく (MAY)、そうでなければエラーを報告すべきです (SHOULD)(例: 「550 That is a mailing list, not a user」または「252 Unable to verify members of mailing list」)。ユーザー名を展開する要求が行われた場合、サーバーは1つの名前を含むリストからなる肯定的な応答を返してもよく (MAY)、あるいはエラーが報告されてもよい (MAY)(例: 「550 That is a user name, not a mailing list」)。
In the case of a successful multiline reply (normal for EXPN) exactly one mailbox is to be specified on each line of the reply. The case of an ambiguous request is discussed above.
成功したマルチライン返信の場合(EXPNの場合は通常)、応答の各行で1つのメールボックスを指定する必要があります。あいまいな要求の場合については、上記で説明します。
"User name" is a fuzzy term and has been used deliberately. An implementation of the VRFY or EXPN commands MUST include at least recognition of local mailboxes as "user names". However, since current Internet practice often results in a single host handling mail for multiple domains, hosts, especially hosts that provide this functionality, SHOULD accept the "local-part@domain" form as a "user name"; hosts MAY also choose to recognize other strings as "user names".
「ユーザー名」は曖昧な用語であり、意図的に使用されています。VRFYまたはEXPNコマンドの実装は、少なくともローカルメールボックスを「ユーザー名」として認識することを含まなければなりません (MUST)。ただし、現在のインターネットの実務では単一のホストが複数のドメインのメールを処理することが多いため、ホスト(特にこの機能を提供するホスト)は「local-part@domain」形式を「ユーザー名」として受け入れるべきです (SHOULD)。ホストは他の文字列を「ユーザー名」として認識することを選択しても構いません (MAY)。
The case of expanding a mailbox list requires a multiline reply, such as:
メールボックスリストを拡張する場合には、次のような複数の返信が必要です。
C: EXPN Example-People
S: 250-Jon Postel <Postel@isi.edu>
S: 250-Fred Fonebone <Fonebone@physics.foo-u.edu>
S: 250 Sam Q. Smith <SQSmith@specific.generic.com>
or
または又はそれとも若しくは乃至或るいは
C: EXPN Executive-Washroom-List
S: 550 Access Denied to You.
The character string arguments of the VRFY and EXPN commands cannot be further restricted due to the variety of implementations of the user name and mailbox list concepts. On some systems it may be appropriate for the argument of the EXPN command to be a file name for a file containing a mailing list, but again there are a variety of file naming conventions in the Internet. Similarly, historical variations in what is returned by these commands are such that the response SHOULD be interpreted very carefully, if at all, and SHOULD generally only be used for diagnostic purposes.
ユーザー名およびメールボックスリストの概念の実装が多種多様であるため、VRFYおよびEXPNコマンドの文字列引数をこれ以上制限することはできません。一部のシステムでは、EXPNコマンドの引数がメーリングリストを含むファイルのファイル名であることが適切な場合もありますが、インターネット上には多種多様なファイル命名規則が存在します。同様に、これらのコマンドによって返される内容の歴史的な差異により、応答を解釈する場合は非常に慎重に行うべきであり (SHOULD)、一般には診断目的のみに使用されるべきです (SHOULD)。
When normal (2yz or 551) responses are returned from a VRFY or EXPN request, the reply normally includes the mailbox name, i.e., "<local-part@domain>", where "domain" is a fully qualified domain name, MUST appear in the syntax. In circumstances exceptional enough to justify violating the intent of this specification, free-form text MAY be returned. In order to facilitate parsing by both computers and people, addresses SHOULD appear in pointed brackets. When addresses, rather than free-form debugging information, are returned, EXPN and VRFY MUST return only valid domain addresses that are usable in SMTP RCPT commands. Consequently, if an address implies delivery to a program or other system, the mailbox name used to reach that target MUST be given. Paths (explicit source routes) MUST NOT be returned by VRFY or EXPN.
通常(2yzまたは551)の応答がVRFYまたはEXPN要求から返される場合、返信には通常、構文的に完全修飾ドメイン名である「domain」を持つメールボックス名、すなわち「<local-part@domain>」が現れなければなりません (MUST)。本仕様の意図への違反を正当化するのに十分な例外的な状況では、自由形式のテキストが返されてもよい (MAY)。コンピューターと人間の両方による解析を容易にするために、アドレスは山括弧で表示すべきです (SHOULD)。自由形式のデバッグ情報ではなくアドレスが返される場合、EXPNおよびVRFYはSMTPのRCPTコマンドで使用可能な有効なドメインアドレスのみを返さなければなりません (MUST)。その結果、アドレスがプログラムまたは他のシステムへの配信を意味する場合、そのターゲットに到達するために使用されるメールボックス名を指定しなければなりません (MUST)。パス(明示的なソースルート)をVRFYまたはEXPNによって返してはなりません (MUST NOT)。
Server implementations SHOULD support both VRFY and EXPN. For security reasons, implementations MAY provide local installations a way to disable either or both of these commands through configuration options or the equivalent. When these commands are supported, they are not required to work across relays when relaying is supported. Since they were both optional in RFC 821, they MUST be listed as service extensions in an EHLO response, if they are supported.
サーバー実装はVRFYとEXPNの両方をサポートすべきです (SHOULD)。セキュリティ上の理由から、実装は設定オプションまたは同等のものを介してこれらのコマンドの一方または両方を無効にする手段をローカル環境に提供してもよい (MAY)。これらのコマンドは、サポートされている場合、RFC 821では両方ともオプションであったため、EHLO応答でサービス拡張としてリストされなければなりません (MUST)。
A server MUST NOT return a 250 code in response to a VRFY or EXPN command unless it has actually verified the address. In particular, a server MUST NOT return 250 if all it has done is to verify that the syntax given is valid. In that case, 502 (Command not implemented) or 500 (Syntax error, command unrecognized) SHOULD be returned. As stated elsewhere, implementation (in the sense of actually validating addresses and returning information) of VRFY and EXPN are strongly recommended. Hence, implementations that return 500 or 502 for VRFY are not in full compliance with this specification.
サーバーは、実際にアドレスを検証していない限り、VRFYまたはEXPNコマンドに応答して250コードを返してはなりません (MUST NOT)。特に、与えられた構文が有効であることを確認しただけの場合、サーバーは250を返してはなりません (MUST NOT)。その場合、502 (Command not implemented) または500 (Syntax error, command unrecognized) を返すべきです (SHOULD)。他で述べられているように、VRFYおよびEXPNの実装(実際にアドレスを検証して情報を返すという意味で)が強く推奨されます。したがって、VRFYに対して500または502を返す実装は、本仕様に完全に準拠していません。
There may be circumstances where an address appears to be valid but cannot reasonably be verified in real time, particularly when a server is acting as a mail exchanger for another server or domain. "Apparent validity" in this case would normally involve at least syntax checking and might involve verification that any domains specified were ones to which the host expected to be able to relay mail. In these situations, reply code 252 SHOULD be returned. These cases parallel the discussion of RCPT verification discussed in section 2.1. Similarly, the discussion in section 3.4 applies to the use of reply codes 251 and 551 with VRFY (and EXPN) to indicate addresses that are recognized but that would be forwarded or bounced were mail received for them. Implementations generally SHOULD be more aggressive about address verification in the case of VRFY than in the case of RCPT, even if it takes a little longer to do so.
特にサーバーが別のサーバーまたはドメインのメーラー(Mail Exchanger)として機能している場合など、アドレスが有効に見えるもののリアルタイムで合理的に検証できない状況が存在する可能性があります。この場合の「見かけの有効性」には通常、少なくとも構文チェックが含まれ、指定されたドメインがホストがメールを中継できると期待するドメインであることの検証が含まれる場合があります。このような状況では、応答コード252を返すべきです (SHOULD)。これらのケースは、セクション2.1で議論されたRCPT検証の議論と並行しています。同様に、セクション3.4の議論は、認識されているもののメールを受信した場合には転送またはバウンスされるアドレスを示すための、VRFY(およびEXPN)での応答コード251および551の使用に適用されます。実装は一般に、RCPTの場合よりもVRFYの場合のアドレス検証について、たとえ少し時間がかかるとしても、より積極的に行うべきです (SHOULD)。
EXPN is often very useful in debugging and understanding problems with mailing lists and multiple-target-address aliases. Some systems have attempted to use source expansion of mailing lists as a means of eliminating duplicates. The propagation of aliasing systems with mail on the Internet, for hosts (typically with MX and CNAME DNS records), for mailboxes (various types of local host aliases), and in various proxying arrangements, has made it nearly impossible for these strategies to work consistently, and mail systems SHOULD NOT attempt them.
EXPNは、メーリングリストや複数の宛先アドレスを持つエイリアスの問題をデバッグおよび理解する上で非常に有用であることがよくあります。一部のシステムでは、重複を排除する手段としてメーリングリストの送信元展開を使用することを試みてきました。インターネット上のメールにおけるエイリアシングシステム(ホスト用、通常はMXおよびCNAME DNSレコード、メールボックス用、様々なタイプのローカルホストエイリアス)の普及、および様々なプロキシ設定により、これらの戦略が一貫して機能することはほぼ不可能になっており、メールシステムはそれらを試みるべきではありません (SHOULD NOT)。
Only resolvable, fully-qualified, domain names (FQDNs) are permitted when domain names are used in SMTP. In other words, names that can be resolved to MX RRs or A RRs (as discussed in section 5) are permitted, as are CNAME RRs whose targets can be resolved, in turn, to MX or A RRs. Local nicknames or unqualified names MUST NOT be used. There are two exceptions to the rule requiring FQDNs:
SMTPでドメイン名が使用される場合、解決可能な完全修飾ドメイン名(FQDN)のみが許可されます。言い換えれば、MX RRまたはA RR(セクション5で説明)に解決できる名前、およびそのターゲットが順次MXまたはA RRに解決できるCNAME RRが許可されます。ローカルのニックネームや修飾されていない名前を使用してはなりません (MUST NOT)。FQDNを必要とする規則には2つの例外があります:
- The domain name given in the EHLO command MUST BE either a primary host name (a domain name that resolves to an A RR) or, if the host has no name, an address literal as described in section 4.1.1.1.
- EHLOコマンドで指定されるドメイン名は、プライマリホスト名(A RRに解決されるドメイン名)、またはホストに名前がない場合はセクション4.1.1.1で説明されているアドレスリテラルのいずれかでなければなりません (MUST)。
- The reserved mailbox name "postmaster" may be used in a RCPT command without domain qualification (see section 4.1.1.3) and MUST be accepted if so used.
- 予約されたメールボックス名「postmaster」は、ドメイン修飾なしでRCPTコマンドで使用される場合があり(セクション4.1.1.3を参照)、そのように使用された場合は受け入れられなければなりません (MUST)。
In general, the availability of Mail eXchanger records in the domain name system [22, 27] makes the use of explicit source routes in the Internet mail system unnecessary. Many historical problems with their interpretation have made their use undesirable. SMTP clients SHOULD NOT generate explicit source routes except under unusual circumstances. SMTP servers MAY decline to act as mail relays or to accept addresses that specify source routes. When route information is encountered, SMTP servers are also permitted to ignore the route information and simply send to the final destination specified as the last element in the route and SHOULD do so. There has been an invalid practice of using names that do not appear in the DNS as destination names, with the senders counting on the intermediate hosts specified in source routing to resolve any problems. If source routes are stripped, this practice will cause failures. This is one of several reasons why SMTP clients MUST NOT generate invalid source routes or depend on serial resolution of names.
一般に、ドメインネームシステム[22, 27]におけるMail Exchangerレコードの可用性により、インターネットメールシステムで明示的なソースルートを使用する必要はなくなりました。それらの解釈に関する歴史的な多くの問題により、その使用は望ましくないものとなっています。SMTPクライアントは、異常な状況下を除き、明示的なソースルートを生成すべきではありません (SHOULD NOT)。SMTPサーバーは、メールリレーとして機能すること、またはソースルートを指定するアドレスを受け入れることを拒否してもよい (MAY)。ルート情報に遭遇した場合、SMTPサーバーはルート情報を無視し、ルートの最後の要素として指定された最終宛先に単に送信することも許可されており、そうすべきです (SHOULD)。DNSに現れない名前を宛先名として使用し、送信者が問題を解決するためにソースルーティングで指定された中継ホストをあてにするという不正な慣行が存在してきました。ソースルートが除去されると、この慣行は失敗を引き起こします。これが、SMTPクライアントが無効なソースルートを生成したり、名前の逐次解決に依存したりしてはならない (MUST NOT) いくつかの理由の1つです。
When source routes are not used, the process described in RFC 821 for constructing a reverse-path from the forward-path is not applicable and the reverse-path at the time of delivery will simply be the address that appeared in the MAIL command.
ソースルートを使用しない場合、フォワードパスから逆パスを構築するためのRFC 821で説明されているプロセスは適用できず、配達時のリバースパスは単にメールコマンドに表示されたアドレスです。
A relay SMTP server is usually the target of a DNS MX record that designates it, rather than the final delivery system. The relay server may accept or reject the task of relaying the mail in the same way it accepts or rejects mail for a local user. If it accepts the task, it then becomes an SMTP client, establishes a transmission channel to the next SMTP server specified in the DNS (according to the rules in section 5), and sends it the mail. If it declines to relay mail to a particular address for policy reasons, a 550 response SHOULD be returned.
リレーSMTPサーバーは通常、最終配信システムではなく、それを指定するDNS MXレコードのターゲットです。リレーサーバーは、ローカルユーザー宛てのメールを受け入れるか拒否するのと同じ方法で、メールを中継するタスクを受け入れるか拒否することができます。タスクを受け入れた場合、SMTPクライアントとなり、DNSで指定された次のSMTPサーバーへの伝送チャネルを確立し(セクション5の規則に従って)、メールを送信します。ポリシー上の理由から特定のアドレスへのメール中継を拒否する場合、550応答を返すべきです (SHOULD)。
Many mail-sending clients exist, especially in conjunction with facilities that receive mail via POP3 or IMAP, that have limited capability to support some of the requirements of this specification, such as the ability to queue messages for subsequent delivery attempts. For these clients, it is common practice to make private arrangements to send all messages to a single server for processing and subsequent distribution. SMTP, as specified here, is not ideally suited for this role, and work is underway on standardized mail submission protocols that might eventually supercede the current practices. In any event, because these arrangements are private and fall outside the scope of this specification, they are not described here.
多くのメールを送るクライアントは、特にPOP3またはIMAPを介してメールを受け取る施設と併せて存在します。これは、その後の配信の試みに対してメッセージをキューする機能など、この仕様の要件の一部をサポートする機能が限られています。これらのクライアントにとって、処理とその後の配布のためにすべてのメッセージを単一のサーバーに送信するためのプライベートアレンジメントを行うことは一般的な慣行です。SMTPは、ここで指定されているように、この役割に理想的なものではなく、最終的に現在のプラクティスに優れている可能性のある標準化されたメール提出プロトコルで作業が進行中です。いずれにせよ、これらの取り決めはプライベートであり、この仕様の範囲外にあるため、ここでは説明されていません。
It is important to note that MX records can point to SMTP servers which act as gateways into other environments, not just SMTP relays and final delivery systems; see sections 3.8 and 5.
MXレコードは、SMTPリレーや最終配信システムだけでなく、他の環境へのゲートウェイとして機能するSMTPサーバーを指すことができることに注意することが重要です。セクション3.8および5を参照してください。
If an SMTP server has accepted the task of relaying the mail and later finds that the destination is incorrect or that the mail cannot be delivered for some other reason, then it MUST construct an "undeliverable mail" notification message and send it to the originator of the undeliverable mail (as indicated by the reverse-path). Formats specified for non-delivery reports by other standards (see, for example, [24, 25]) SHOULD be used if possible.
SMTPサーバーがメールの中継タスクを受け入れた後、宛先が正しくないか、または他の何らかの理由でメールを配信できないと判明した場合、「undeliverable mail(配信不能メール)」通知メッセージを作成し、配信不能メールの発信元(reverse-pathによって示される)に送信しなければなりません (MUST)。可能であれば、他の標準によって不達レポート用に指定された形式(例えば[24, 25]を参照)を使用すべきです (SHOULD)。
This notification message must be from the SMTP server at the relay host or the host that first determines that delivery cannot be accomplished. Of course, SMTP servers MUST NOT send notification messages about problems transporting notification messages. One way to prevent loops in error reporting is to specify a null reverse-path in the MAIL command of a notification message. When such a message is transmitted the reverse-path MUST be set to null (see section 4.5.5 for additional discussion). A MAIL command with a null reverse-path appears as follows:
この通知メッセージは、リレーホストまたは配信が達成できないと最初に判断したホストのSMTPサーバーからのものでなければなりません。当然ながら、SMTPサーバーは通知メッセージの転送に関する問題についての通知メッセージを送信してはなりません (MUST NOT)。エラー報告におけるループを防止する1つの方法は、通知メッセージのMAILコマンドでnullのreverse-pathを指定することです。そのようなメッセージが送信される場合、reverse-pathはnullに設定されなければなりません (MUST)(詳細な議論についてはセクション4.5.5を参照)。nullのreverse-pathを持つMAILコマンドは次のように表されます:
MAIL FROM:<>
As discussed in section 2.4.1, a relay SMTP has no need to inspect or act upon the headers or body of the message data and MUST NOT do so except to add its own "Received:" header (section 4.4) and, optionally, to attempt to detect looping in the mail system (see section 6.2).
セクション2.4.1で説明したように、中継SMTPはメッセージデータのヘッダーまたは本文を検査したりそれに基づいて行動したりする必要はなく、自身の「Received:」ヘッダーを追加すること(セクション4.4)、およびオプションとしてメールシステムでのループの検出を試みること(セクション6.2を参照)を除き、そうしてはなりません (MUST NOT)。
While the relay function discussed above operates within the Internet SMTP transport service environment, MX records or various forms of explicit routing may require that an intermediate SMTP server perform a translation function between one transport service and another. As discussed in section 2.3.8, when such a system is at the boundary between two transport service environments, we refer to it as a "gateway" or "gateway SMTP".
上記のリレー関数はインターネットSMTP輸送サービス環境内で動作しますが、MXレコードまたはさまざまな形式の明示的なルーティングでは、中間SMTPサーバーがある輸送サービスと別の輸送サービス間で翻訳関数を実行する必要がある場合があります。セクション2.3.8で説明したように、そのようなシステムが2つの輸送サービス環境間の境界にある場合、それを「ゲートウェイ」または「ゲートウェイSMTP」と呼びます。
Gatewaying mail between different mail environments, such as different mail formats and protocols, is complex and does not easily yield to standardization. However, some general requirements may be given for a gateway between the Internet and another mail environment.
さまざまなメール形式やプロトコルなど、さまざまなメール環境間でメールをゲートウェイすることは複雑であり、標準化に簡単に譲ることはできません。ただし、インターネットと別のメール環境との間のゲートウェイには、いくつかの一般的な要件が与えられる場合があります。
Header fields MAY be rewritten when necessary as messages are gatewayed across mail environment boundaries. This may involve inspecting the message body or interpreting the local-part of the destination address in spite of the prohibitions in section 2.4.1.
メッセージがメール環境の境界を越えてゲートウェイされる際、必要に応じてヘッダーフィールドを書き換えても構いません (MAY)。これには、セクション2.4.1の禁止事項にもかかわらず、メッセージ本文の検査や宛先アドレスのlocal-partの解釈が含まれる場合があります。
Other mail systems gatewayed to the Internet often use a subset of RFC 822 headers or provide similar functionality with a different syntax, but some of these mail systems do not have an equivalent to the SMTP envelope. Therefore, when a message leaves the Internet environment, it may be necessary to fold the SMTP envelope information into the message header. A possible solution would be to create new header fields to carry the envelope information (e.g., "X-SMTP-MAIL:" and "X-SMTP-RCPT:"); however, this would require changes in mail programs in foreign environments and might risk disclosure of private information (see section 7.2).
インターネットにゲートウェイされた他のメールシステムは、多くの場合、RFC 822ヘッダーのサブセットを使用するか、異なる構文で同様の機能を提供しますが、これらのメールシステムの一部はSMTPエンベロープと同等ではありません。したがって、メッセージがインターネット環境を離れる場合、SMTPエンベロープ情報をメッセージヘッダーに折り畳む必要がある場合があります。可能な解決策は、新しいヘッダーフィールドを作成してエンベロープ情報を携帯することです(例: "x-smtp-mail:"および "x-smtp-rcpt:");ただし、これには、外国環境でのメールプログラムの変更が必要であり、個人情報の開示を危険にさらす可能性があります(セクション7.2を参照)。
When forwarding a message into or out of the Internet environment, a gateway MUST prepend a Received: line, but it MUST NOT alter in any way a Received: line that is already in the header.
インターネット環境の内外にメッセージを転送する際、ゲートウェイはReceived:行を先頭に追加しなければなりません (MUST) が、既にヘッダー内にあるReceived:行をいかなる方法でも変更してはなりません (MUST NOT)。
"Received:" fields of messages originating from other environments may not conform exactly to this specification. However, the most important use of Received: lines is for debugging mail faults, and this debugging can be severely hampered by well-meaning gateways that try to "fix" a Received: line. As another consequence of trace fields arising in non-SMTP environments, receiving systems MUST NOT reject mail based on the format of a trace field and SHOULD be extremely robust in the light of unexpected information or formats in those fields.
他の環境を発信元とするメッセージの「Received:」フィールドは、本仕様に正確に適合していない場合があります。しかし、Received:行の最も重要な用途はメール障害のデバッグであり、Received:行を「修正」しようとする善意のゲートウェイによってこのデバッグが深刻に妨げられる可能性があります。非SMTP環境で発生するトレースフィールドの別の結果として、受信システムはトレースフィールドの形式に基づいてメールを拒否してはならず (MUST NOT)、それらのフィールドにおける予期しない情報や形式に対して極めて堅牢であるべきです (SHOULD)。
The gateway SHOULD indicate the environment and protocol in the "via" clauses of Received field(s) that it supplies.
ゲートウェイは、自身が提供するReceivedフィールドの「via」句において環境およびプロトコルを示すべきです (SHOULD)。
From the Internet side, the gateway SHOULD accept all valid address formats in SMTP commands and in RFC 822 headers, and all valid RFC 822 messages. Addresses and headers generated by gateways MUST conform to applicable Internet standards (including this one and RFC 822). Gateways are, of course, subject to the same rules for handling source routes as those described for other SMTP systems in section 3.3.
インターネット側から、ゲートウェイはSMTPコマンドおよびRFC 822ヘッダー内のすべての有効なアドレス形式、ならびにすべての有効なRFC 822メッセージを受け入れるべきです (SHOULD)。ゲートウェイによって生成されるアドレスおよびヘッダーは、該当するインターネット標準(本文書およびRFC 822を含む)に準拠しなければなりません (MUST)。ゲートウェイは、当然ながら、セクション3.3で他のSMTPシステムについて説明されているソースルートを処理するための規則と同じ規則に従います。
The gateway MUST ensure that all header fields of a message that it forwards into the Internet mail environment meet the requirements for Internet mail. In particular, all addresses in "From:", "To:", "Cc:", etc., fields MUST be transformed (if necessary) to satisfy RFC 822 syntax, MUST reference only fully-qualified domain names, and MUST be effective and useful for sending replies. The translation algorithm used to convert mail from the Internet protocols to another environment's protocol SHOULD ensure that error messages from the foreign mail environment are delivered to the return path from the SMTP envelope, not to the sender listed in the "From:" field (or other fields) of the RFC 822 message.
ゲートウェイは、インターネットメール環境に転送するメッセージのすべてのヘッダーフィールドがインターネットメールの要件を満たすことを保証しなければなりません (MUST)。特に、「From:」、「To:」、「Cc:」などのフィールド内のすべてのアドレスは、(必要に応じて)RFC 822構文を満たすように変換されなければならず (MUST)、完全修飾ドメイン名のみを参照しなければならず (MUST)、返信を送信するのに有効かつ有用でなければなりません (MUST)。インターネットプロトコルから別の環境のプロトコルにメールを変換するために使用される変換アルゴリズムは、異種メール環境からのエラーメッセージが、RFC 822メッセージの「From:」フィールド(または他のフィールド)に記載された送信者ではなく、SMTPエンベロープからのリターンパスに配信されることを保証すべきです (SHOULD)。
Similarly, when forwarding a message from another environment into the Internet, the gateway SHOULD set the envelope return path in accordance with an error message return address, if supplied by the foreign environment. If the foreign environment has no equivalent concept, the gateway must select and use a best approximation, with the message originator's address as the default of last resort.
同様に、別の環境からインターネットにメッセージを転送する際、異種環境から提供されている場合は、ゲートウェイはエラーメッセージの返送先アドレスに従ってエンベロープリターンパスを設定すべきです (SHOULD)。異種環境に同等の概念がない場合、ゲートウェイは最良の近似を選択して使用しなければならず、最終手段としてのデフォルトはメッセージ発信元のアドレスとします。
An SMTP connection is terminated when the client sends a QUIT command. The server responds with a positive reply code, after which it closes the connection.
クライアントがQUITコマンドを送信すると、SMTP接続が終了します。サーバーは肯定的な返信コードで応答し、その後接続を閉じます。
An SMTP server MUST NOT intentionally close the connection except:
SMTPサーバーは、以下の場合を除いて意図的に接続を閉じてはなりません (MUST NOT):
- After receiving a QUIT command and responding with a 221 reply.
- QUITコマンドを受信し、221回の返信で応答した後。
- After detecting the need to shut down the SMTP service and returning a 421 response code. This response code can be issued after the server receives any command or, if necessary, asynchronously from command receipt (on the assumption that the client will receive it after the next command is issued).
- SMTPサービスをシャットダウンする必要性を検出し、421の応答コードを返した後。この応答コードは、サーバーがコマンドを受信した後、または必要に応じてコマンドレシートから非同期に発行できます(クライアントが次のコマンドが発行された後にクライアントが受信すると仮定して)。
In particular, a server that closes connections in response to commands that are not understood is in violation of this specification. Servers are expected to be tolerant of unknown commands, issuing a 500 reply and awaiting further instructions from the client.
特に、理解されていないコマンドに応じて接続を閉じるサーバーは、この仕様に違反しています。サーバーは、未知のコマンドに寛容であり、500回の返信を発行し、クライアントからのさらなる指示を待っていると予想されます。
An SMTP server which is forcibly shut down via external means SHOULD attempt to send a line containing a 421 response code to the SMTP client before exiting. The SMTP client will normally read the 421 response code after sending its next command.
外部手段によって強制的にシャットダウンされるSMTPサーバーは、終了する前に421応答コードを含む行をSMTPクライアントに送信することを試みるべきです (SHOULD)。SMTPクライアントは通常、次のコマンドを送信した後に421応答コードを読み取ります。
SMTP clients that experience a connection close, reset, or other communications failure due to circumstances not under their control (in violation of the intent of this specification but sometimes unavoidable) SHOULD, to maintain the robustness of the mail system, treat the mail transaction as if a 451 response had been received and act accordingly.
自身の制御下にない状況(本仕様の意図に反しますが時には避けられない状況)により接続の切断、リセット、またはその他の通信障害を経験したSMTPクライアントは、メールシステムの堅牢性を維持するために、451応答を受信したかのようにメールトランザクションを扱い、それに応じて行動すべきです (SHOULD)。
An SMTP-capable host SHOULD support both the alias and the list models of address expansion for multiple delivery. When a message is delivered or forwarded to each address of an expanded list form, the return address in the envelope ("MAIL FROM:") MUST be changed to be the address of a person or other entity who administers the list. However, in this case, the message header [32] MUST be left unchanged; in particular, the "From" field of the message header is unaffected.
SMTP対応ホストは、複数配信のためのアドレス展開において、エイリアスモデルとリストモデルの両方をサポートすべきです (SHOULD)。展開されたリスト形式の各アドレスにメッセージが配信または転送される際、エンベロープ内の返送先アドレス(「MAIL FROM:」)は、リストを管理する個人またはその他のエンティティのアドレスに変更されなければなりません (MUST)。ただし、この場合、メッセージヘッダー[32]は変更されずに残されなければならず (MUST)、特にメッセージヘッダーの「From」フィールドは影響を受けません。
An important mail facility is a mechanism for multi-destination delivery of a single message, by transforming (or "expanding" or "exploding") a pseudo-mailbox address into a list of destination mailbox addresses. When a message is sent to such a pseudo-mailbox (sometimes called an "exploder"), copies are forwarded or redistributed to each mailbox in the expanded list. Servers SHOULD simply utilize the addresses on the list; application of heuristics or other matching rules to eliminate some addresses, such as that of the originator, is strongly discouraged. We classify such a pseudo-mailbox as an "alias" or a "list", depending upon the expansion rules.
重要なメール機能は、擬似メールボックスアドレスを宛先メールボックスアドレスのリストに変換(または「展開」もしくは「爆発」)することによる、単一メッセージの複数宛先配信のためのメカニズムです。メッセージがそのような擬似メールボックス(「エクスプローダー」と呼ばれることもあります)に送信されると、展開されたリスト内の各メールボックスにコピーが転送または再配布されます。サーバーは単にリスト上のアドレスを利用すべきであり (SHOULD)、発信元のアドレスなどの一部のアドレスを排除するためのヒューリスティクスやその他の照合規則の適用は強く非推奨とされます。展開規則に応じて、このような擬似メールボックスを「エイリアス」または「リスト」として分類します。
To expand an alias, the recipient mailer simply replaces the pseudo-mailbox address in the envelope with each of the expanded addresses in turn; the rest of the envelope and the message body are left unchanged. The message is then delivered or forwarded to each expanded address.
エイリアスを拡張するために、受信者のメーラーは、封筒の擬似メイルボックスアドレスを拡張された各アドレスに順番に置き換えるだけです。エンベロープとメッセージ本文の残りの部分は変更されません。メッセージは、拡張された各アドレスに配信または転送されます。
A mailing list may be said to operate by "redistribution" rather than by "forwarding". To expand a list, the recipient mailer replaces the pseudo-mailbox address in the envelope with all of the expanded addresses. The return address in the envelope is changed so that all error messages generated by the final deliveries will be returned to a list administrator, not to the message originator, who generally has no control over the contents of the list and will typically find error messages annoying.
メーリングリストは、「転送」ではなく「再配布」によって動作すると言えるかもしれません。リストを展開するために、受信者メーラーは、封筒の擬似メイルボックスアドレスをすべての拡張アドレスに置き換えます。エンベロープ内の返品アドレスが変更され、最終配信によって生成されたすべてのエラーメッセージがリスト管理者に返されるように変更されます。メッセージオリジネーターではなく、一般的にリストの内容を制御できず、通常はエラーメッセージが迷惑になります。。
The SMTP commands define the mail transfer or the mail system function requested by the user. SMTP commands are character strings terminated by <CRLF>. The commands themselves are alphabetic characters terminated by <SP> if parameters follow and <CRLF> otherwise. (In the interest of improved interoperability, SMTP receivers are encouraged to tolerate trailing white space before the terminating <CRLF>.) The syntax of the local part of a mailbox must conform to receiver site conventions and the syntax specified in section 4.1.2. The SMTP commands are discussed below. The SMTP replies are discussed in section 4.2.
SMTPコマンドは、ユーザーが要求したメール転送またはメールシステム機能を定義します。SMTPコマンドは、<CRLF>で終了した文字文字列です。コマンド自体は、パラメーターが続く場合は<sp>で終了するアルファベット文字です。(相互運用性の向上のために、SMTPレシーバーは、終了<CRLF>の前に、後続の空白に耐えることをお勧めします。)メールボックスのローカル部分の構文は、セクション4.1.2で指定されたレシーバーサイト規則と構文に準拠する必要があります。SMTPコマンドについては、以下で説明します。SMTP応答については、セクション4.2で説明します。
A mail transaction involves several data objects which are communicated as arguments to different commands. The reverse-path is the argument of the MAIL command, the forward-path is the argument of the RCPT command, and the mail data is the argument of the DATA command. These arguments or data objects must be transmitted and held pending the confirmation communicated by the end of mail data indication which finalizes the transaction. The model for this is that distinct buffers are provided to hold the types of data objects, that is, there is a reverse-path buffer, a forward-path buffer, and a mail data buffer. Specific commands cause information to be appended to a specific buffer, or cause one or more buffers to be cleared.
メールトランザクションには、異なるコマンドの引数として伝えられるいくつかのデータオブジェクトが含まれます。逆パスはメールコマンドの引数であり、フォワードパスはRCPTコマンドの引数であり、メールデータはデータコマンドの引数です。これらの引数またはデータオブジェクトは、トランザクションを確定するメールデータの終了によって伝えられた確認を保留して送信し、保持する必要があります。このモデルは、データオブジェクトの種類を保持するために異なるバッファーが提供されていることです。つまり、逆パスバッファー、フォワードパスバッファー、メールデータバッファーがあります。特定のコマンドにより、情報が特定のバッファーに追加されるか、1つ以上のバッファーがクリアされます。
Several commands (RSET, DATA, QUIT) are specified as not permitting parameters. In the absence of specific extensions offered by the server and accepted by the client, clients MUST NOT send such parameters and servers SHOULD reject commands containing them as having invalid syntax.
いくつかのコマンド(RSET、DATA、QUIT)はパラメータを許可しないものとして指定されています。サーバーによって提供され、クライアントによって受け入れられた特定の拡張が存在しない場合、クライアントはそのようなパラメータを送信してはならず (MUST NOT)、サーバーはそれらを含むコマンドを無効な構文を持つものとして拒否すべきです (SHOULD)。
These commands are used to identify the SMTP client to the SMTP server. The argument field contains the fully-qualified domain name of the SMTP client if one is available. In situations in which the SMTP client system does not have a meaningful domain name (e.g., when its address is dynamically allocated and no reverse mapping record is available), the client SHOULD send an address literal (see section 4.1.3), optionally followed by information that will help to identify the client system. y The SMTP server identifies itself to the SMTP client in the connection greeting reply and in the response to this command.
これらのコマンドは、SMTPクライアントをSMTPサーバーに対して識別するために使用されます。引数フィールドには、利用可能であればSMTPクライアントの完全修飾ドメイン名が含まれます。SMTPクライアントシステムが意味のあるドメイン名を持たない状況(例えば、そのアドレスが動的に割り当てられ、逆引きマッピングレコードが利用できない場合など)では、クライアントはアドレスリテラルを送信すべきであり (SHOULD)(セクション4.1.3を参照)、オプションでクライアントシステムの識別に役立つ情報を続けても構いません。SMTPサーバーは、接続挨拶返信およびこのコマンドに対する応答において、SMTPクライアントに対して自身を識別します。
A client SMTP SHOULD start an SMTP session by issuing the EHLO command. If the SMTP server supports the SMTP service extensions it will give a successful response, a failure response, or an error response. If the SMTP server, in violation of this specification, does not support any SMTP service extensions it will generate an error response. Older client SMTP systems MAY, as discussed above, use HELO (as specified in RFC 821) instead of EHLO, and servers MUST support the HELO command and reply properly to it. In any event, a client MUST issue HELO or EHLO before starting a mail transaction.
クライアントSMTPは、EHLOコマンドを発行してSMTPセッションを開始すべきです (SHOULD)。SMTPサーバーがSMTPサービス拡張をサポートしている場合、成功応答、失敗応答、またはエラー応答を返します。SMTPサーバーが、本仕様に違反してSMTPサービス拡張をまったくサポートしていない場合、エラー応答を生成します。古いクライアントSMTPシステムは、前述のようにEHLOの代わりにHELO(RFC 821で指定)を使用してもよく (MAY)、サーバーはHELOコマンドをサポートし適切に返答しなければなりません (MUST)。いかなる場合も、クライアントはメールトランザクションを開始する前にHELOまたはEHLOを発行しなければなりません (MUST)。
These commands, and a "250 OK" reply to one of them, confirm that both the SMTP client and the SMTP server are in the initial state, that is, there is no transaction in progress and all state tables and buffers are cleared.
これらのコマンド、およびそのうちの1つへの「250 OK」の返信は、SMTPクライアントとSMTPサーバーの両方が初期状態にあることを確認します。つまり、進行中のトランザクションがなく、すべての状態テーブルとバッファーがクリアされていることを確認します。
Syntax:
構文:
ehlo = "EHLO" SP Domain CRLF
helo = "HELO" SP Domain CRLF
Normally, the response to EHLO will be a multiline reply. Each line of the response contains a keyword and, optionally, one or more parameters. Following the normal syntax for multiline replies, these keyworks follow the code (250) and a hyphen for all but the last line, and the code and a space for the last line. The syntax for a positive response, using the ABNF notation and terminal symbols of [8], is:
通常、EHLOへの応答はマルチラインの返信になります。応答の各行には、キーワードと、オプションで1つ以上のパラメーターが含まれています。マルチライン応答の通常の構文に従って、これらのキーワークは、最後の行を除くすべてのコード(250)とハイフン、および最後の行のコードとスペースに従います。[8]のABNF表記と端子記号を使用した正の応答の構文は次のとおりです。
ehlo-ok-rsp = ( "250" domain [ SP ehlo-greet ] CRLF )
/ ( "250-" domain [ SP ehlo-greet ] CRLF
*( "250-" ehlo-line CRLF )
"250" SP ehlo-line CRLF )
ehlo-greet = 1*(%d0-9 / %d11-12 / %d14-127)
; string of any characters other than CR or LF
ehlo-line = ehlo-keyword *( SP ehlo-param )
ehlo-keyword = (ALPHA / DIGIT) *(ALPHA / DIGIT / "-")
; additional syntax of ehlo-params depends on
; ehlo-keyword
ehlo-param = 1*(%d33-127)
; any CHAR excluding <SP> and all
; control characters (US-ASCII 0-31 inclusive)
Although EHLO keywords may be specified in upper, lower, or mixed case, they MUST always be recognized and processed in a case-insensitive manner. This is simply an extension of practices specified in RFC 821 and section 2.4.1.
EHLOキーワードは大文字、小文字、または混合文字で指定される場合がありますが、常に大文字小文字を区別しない方法で認識および処理されなければなりません (MUST)。これは、RFC 821およびセクション2.4.1で指定されている慣行の単なる拡張です。
This command is used to initiate a mail transaction in which the mail data is delivered to an SMTP server which may, in turn, deliver it to one or more mailboxes or pass it on to another system (possibly using SMTP). The argument field contains a reverse-path and may contain optional parameters. In general, the MAIL command may be sent only when no mail transaction is in progress, see section 4.1.4.
このコマンドは、メールデータがSMTPサーバーに配信されるメールトランザクションを開始するために使用されます。このサーバーは、1つ以上のメールボックスに配信するか、別のシステム(SMTPを使用して)に渡すことができます。引数フィールドには逆パスが含まれており、オプションのパラメーターが含まれる場合があります。一般に、メールコマンドは、メールトランザクションが進行中の場合にのみ送信できます。セクション4.1.4を参照してください。
The reverse-path consists of the sender mailbox. Historically, that mailbox might optionally have been preceded by a list of hosts, but that behavior is now deprecated (see appendix C). In some types of reporting messages for which a reply is likely to cause a mail loop (for example, mail delivery and nondelivery notifications), the reverse-path may be null (see section 3.7).
リバースパスは、送信者メールボックスで構成されています。歴史的に、そのメールボックスにはオプションでホストのリストが先行している可能性がありますが、その動作は現在廃止されています(付録Cを参照)。返信がメールループを引き起こす可能性が高いいくつかのタイプのレポートメッセージ(たとえば、メール配信や非配信通知など)では、逆パスはヌルである場合があります(セクション3.7を参照)。
This command clears the reverse-path buffer, the forward-path buffer, and the mail data buffer; and inserts the reverse-path information from this command into the reverse-path buffer.
このコマンドは、リバースパスバッファー、フォワードパスバッファー、およびメールデータバッファーをクリアします。このコマンドから逆パス情報をリバースパスバッファーに挿入します。
If service extensions were negotiated, the MAIL command may also carry parameters associated with a particular service extension.
サービス拡張機能が交渉された場合、メールコマンドは特定のサービス拡張機能に関連付けられたパラメーターを搭載する場合があります。
Syntax:
構文:
"MAIL FROM:" ("<>" / Reverse-Path)
[SP Mail-parameters] CRLF
This command is used to identify an individual recipient of the mail data; multiple recipients are specified by multiple use of this command. The argument field contains a forward-path and may contain optional parameters.
このコマンドは、メールデータの個々の受信者を識別するために使用されます。複数の受信者は、このコマンドの複数の使用によって指定されます。引数フィールドにはフォワードパスが含まれており、オプションのパラメーターが含まれる場合があります。
The forward-path normally consists of the required destination mailbox. Sending systems SHOULD not generate the optional list of hosts known as a source route. Receiving systems MUST recognize source route syntax but SHOULD strip off the source route specification and utilize the domain name associated with the mailbox as if the source route had not been provided.
forward-pathは通常、要求される宛先メールボックスで構成されます。送信システムは、ソースルートとして知られるホストのオプションリストを生成しないようにすべきです (SHOULD)。受信システムはソースルート構文を認識しなければなりませんが (MUST)、ソースルート指定を取り除き、ソースルートが提供されなかったかのようにメールボックスに関連付けられたドメイン名を利用すべきです (SHOULD)。
Similarly, relay hosts SHOULD strip or ignore source routes, and names MUST NOT be copied into the reverse-path. When mail reaches its ultimate destination (the forward-path contains only a destination mailbox), the SMTP server inserts it into the destination mailbox in accordance with its host mail conventions.
同様に、中継ホストはソースルートを除去または無視すべきであり (SHOULD)、名前をreverse-pathにコピーしてはなりません (MUST NOT)。メールが最終宛先に到達すると(forward-pathには宛先メールボックスのみが含まれます)、SMTPサーバーはそのホストメールの慣例に従って宛先メールボックスにそれを挿入します。
For example, mail received at relay host xyz.com with envelope commands
たとえば、envelopeコマンドを備えたリレーホストxyz.comで受信したメール
MAIL FROM:<userx@y.foo.org>
RCPT TO:<@hosta.int,@jkl.org:userc@d.bar.org>
will normally be sent directly on to host d.bar.org with envelope commands
通常、Envelopeコマンドを使用してD.Bar.orgをホストに直接送信します
MAIL FROM:<userx@y.foo.org>
RCPT TO:<userc@d.bar.org>
As provided in appendix C, xyz.com MAY also choose to relay the message to hosta.int, using the envelope commands
付録Cに規定されているように、xyz.comはエンベロープコマンドを使用して、メッセージをhosta.intに中継することを選択してもよい (MAY)。
MAIL FROM:<userx@y.foo.org>
RCPT TO:<@hosta.int,@jkl.org:userc@d.bar.org>
or to jkl.org, using the envelope commands
または、envelopeコマンドを使用してjkl.orgに
MAIL FROM:<userx@y.foo.org>
RCPT TO:<@jkl.org:userc@d.bar.org>
Of course, since hosts are not required to relay mail at all, xyz.com may also reject the message entirely when the RCPT command is received, using a 550 code (since this is a "policy reason").
もちろん、ホストはメールをまったくリレーする必要がないため、XYZ.comは、550コードを使用してRCPTコマンドを受信したときにメッセージを完全に拒否する場合があります(これは「ポリシー理由」であるため)。
If service extensions were negotiated, the RCPT command may also carry parameters associated with a particular service extension offered by the server. The client MUST NOT transmit parameters other than those associated with a service extension offered by the server in its EHLO response.
サービス拡張がネゴシエートされた場合、RCPTコマンドはサーバーが提供する特定のサービス拡張に関連付けられたパラメータを伝送することもできます。クライアントは、EHLO応答でサーバーが提供したサービス拡張に関連付けられたパラメータ以外のパラメータを送信してはなりません (MUST NOT)。
Syntax:
"RCPT TO:" ("<Postmaster@" domain ">" / "<Postmaster>" / Forward-Path)
[SP Rcpt-parameters] CRLF
The receiver normally sends a 354 response to DATA, and then treats the lines (strings ending in <CRLF> sequences, as described in section 2.3.7) following the command as mail data from the sender. This command causes the mail data to be appended to the mail data buffer. The mail data may contain any of the 128 ASCII character codes, although experience has indicated that use of control characters other than SP, HT, CR, and LF may cause problems and SHOULD be avoided when possible.
受信側は通常、DATAに対して354応答を送信し、その後コマンドに続く行(セクション2.3.7で説明されているように、<CRLF>シーケンスで終わる文字列)を送信者からのメールデータとして扱います。このコマンドにより、メールデータはメールデータバッファに追加されます。メールデータには128個のASCII文字コードのいずれが含まれても構いませんが、経験上、SP、HT、CR、およびLF以外の制御文字の使用は問題を引き起こす可能性があるため、可能な限り避けるべきです (SHOULD)。
The mail data is terminated by a line containing only a period, that is, the character sequence "<CRLF>.<CRLF>" (see section 4.5.2). This is the end of mail data indication. Note that the first <CRLF> of this terminating sequence is also the <CRLF> that ends the final line of the data (message text) or, if there was no data, ends the DATA command itself. An extra <CRLF> MUST NOT be added, as that would cause an empty line to be added to the message. The only exception to this rule would arise if the message body were passed to the originating SMTP-sender with a final "line" that did not end in <CRLF>; in that case, the originating SMTP system MUST either reject the message as invalid or add <CRLF> in order to have the receiving SMTP server recognize the "end of data" condition.
メールデータは、ピリオドのみを含む行、すなわち文字シーケンス「<CRLF>.<CRLF>」(セクション4.5.2を参照)によって終了します。これがメールデータ終了の指示です。この終端シーケンスの最初の<CRLF>は、データ(メッセージテキスト)の最終行を終了する<CRLF>でもあるか、データがなかった場合はDATAコマンド自体を終了する<CRLF>であることに注意してください。余分な<CRLF>を追加してはなりません (MUST NOT)。メッセージに空行が追加されてしまうためです。この規則の唯一の例外は、メッセージ本文が<CRLF>で終わらない最終的な「行」を伴って発信元SMTPセンダーに渡された場合に発生します。その場合、受信SMTPサーバーに「データ終了」状態を認識させるために、発信元SMTPシステムはメッセージを無効として拒否するか、<CRLF>を追加しなければなりません (MUST)。
The custom of accepting lines ending only in <LF>, as a concession to non-conforming behavior on the part of some UNIX systems, has proven to cause more interoperability problems than it solves, and SMTP server systems MUST NOT do this, even in the name of improved robustness. In particular, the sequence "<LF>.<LF>" (bare line feeds, without carriage returns) MUST NOT be treated as equivalent to <CRLF>.<CRLF> as the end of mail data indication.
一部のUNIXシステム側の非準拠な動作への譲歩として、<LF>のみで終わる行を受け入れる慣行は、解決するよりも多くの相互運用性の問題を引き起こすことが判明しており、SMTPサーバーシステムは堅牢性の向上の名の下であってもこれを行ってはなりません (MUST NOT)。特に、シーケンス「<LF>.<LF>」(キャリッジリターンを伴わない素のラインフィード)は、メールデータ終了の指示として<CRLF>.<CRLF>と同等として扱ってはなりません (MUST NOT)。
Receipt of the end of mail data indication requires the server to process the stored mail transaction information. This processing consumes the information in the reverse-path buffer, the forward-path buffer, and the mail data buffer, and on the completion of this command these buffers are cleared. If the processing is successful, the receiver MUST send an OK reply. If the processing fails the receiver MUST send a failure reply. The SMTP model does not allow for partial failures at this point: either the message is accepted by the server for delivery and a positive response is returned or it is not accepted and a failure reply is returned. In sending a positive completion reply to the end of data indication, the receiver takes full responsibility for the message (see section 6.1). Errors that are diagnosed subsequently MUST be reported in a mail message, as discussed in section 4.4.
メールデータ終了指示の受信により、サーバーは保存されたメールトランザクション情報を処理することが要求されます。この処理はreverse-pathバッファ、forward-pathバッファ、およびメールデータバッファ内の情報を消費し、このコマンドの完了時にこれらのバッファはクリアされます。処理が成功した場合、受信側はOK応答を送信しなければなりません (MUST)。処理が失敗した場合、受信側は失敗応答を送信しなければなりません (MUST)。この時点でのSMTPモデルは部分的な失敗を許容しません: サーバーによって配信のためにメッセージが受け入れられて肯定応答が返されるか、受け入れられずに失敗応答が返されるかのいずれかです。データ終了指示に対して肯定的な完了応答を送信することで、受信側はメッセージに対する完全な責任を負います(セクション6.1を参照)。その後診断されたエラーは、セクション4.4で議論されているようにメールメッセージで報告されなければなりません (MUST)。
When the SMTP server accepts a message either for relaying or for final delivery, it inserts a trace record (also referred to interchangeably as a "time stamp line" or "Received" line) at the top of the mail data. This trace record indicates the identity of the host that sent the message, 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. Details for formation of these lines, including their syntax, is specified in section 4.4.
SMTPサーバーが中継または最終配信のメッセージを受け入れると、メールデータの上部にトレースレコード(「タイムスタンプライン」または「受信」と同じように「タイムスタンプライン」または「受信」と呼ばれます)を挿入します。このトレースレコードは、メッセージを送信したホストの身元、メッセージを受け取ったホストの身元(およびこのタイムスタンプを挿入している)、およびメッセージが受信された日時を示します。中継メッセージには複数のタイムスタンプラインがあります。構文を含むこれらの線の形成の詳細は、セクション4.4で指定されています。
Additional discussion about the operation of the DATA command appears in section 3.3.
データコマンドの操作に関する追加の議論は、セクション3.3に表示されます。
Syntax: "DATA" CRLF
構文:「データ」CRLF
This command specifies that the current mail transaction will be aborted. Any stored sender, recipients, and mail data MUST be discarded, and all buffers and state tables cleared. The receiver MUST send a "250 OK" reply to a RSET command with no arguments. A reset command may be issued by the client at any time. It is effectively equivalent to a NOOP (i.e., if has no effect) if issued immediately after EHLO, before EHLO is issued in the session, after an end-of-data indicator has been sent and acknowledged, or immediately before a QUIT. An SMTP server MUST NOT close the connection as the result of receiving a RSET; that action is reserved for QUIT (see section 4.1.1.10).
このコマンドは、現在のメールトランザクションが中止されることを指定します。保存されている送信者、受信者、およびメールデータはすべて破棄されなければならず (MUST)、すべてのバッファおよび状態テーブルがクリアされます。受信側は、引数のないRSETコマンドに対して「250 OK」応答を送信しなければなりません (MUST)。リセットコマンドは、クライアントによっていつでも発行できます。EHLOの直後、セッションでEHLOが発行される前、データ終了指示が送信され確認された後、またはQUITの直前に発行された場合、実質的にNOOPと同等です(すなわち効果がありません)。SMTPサーバーは、RSETを受信した結果として接続を閉じてはならず (MUST NOT)、そのアクションはQUITのために予約されています(セクション4.1.1.10を参照)。
Since EHLO implies some additional processing and response by the server, RSET will normally be more efficient than reissuing that command, even though the formal semantics are the same.
Ehloはサーバーによる追加の処理と応答を暗示するため、正式なセマンティクスが同じにもかかわらず、RSETは通常そのコマンドを再発行するよりも効率的です。
There are circumstances, contrary to the intent of this specification, in which an SMTP server may receive an indication that the underlying TCP connection has been closed or reset. To preserve the robustness of the mail system, SMTP servers SHOULD be prepared for this condition and SHOULD treat it as if a QUIT had been received before the connection disappeared.
本仕様の意図に反して、下位のTCP接続が切断またはリセットされたという指示をSMTPサーバーが受信する状況が存在します。メールシステムの堅牢性を維持するために、SMTPサーバーはこの状態に備えるべきであり (SHOULD)、接続が消失する前にQUITを受信したかのように扱うべきです (SHOULD)。
Syntax: "RSET" CRLF
構文: "rset" crlf
This command asks the receiver to confirm that the argument identifies a user or mailbox. If it is a user name, information is returned as specified in section 3.5.
このコマンドは、引数がユーザーまたはメールボックスを識別することを確認するように受信者に依頼します。ユーザー名の場合、セクション3.5で指定されているように情報が返されます。
This command has no effect on the reverse-path buffer, the forward-path buffer, or the mail data buffer.
このコマンドは、リバースパスバッファー、フォワードパスバッファー、またはメールデータバッファーに影響を与えません。
Syntax: "VRFY" SP String CRLF
構文: "vrfy" sp string crlf
This command asks the receiver to confirm that the argument identifies a mailing list, and if so, to return the membership of that list. If the command is successful, a reply is returned containing information as described in section 3.5. This reply will have multiple lines except in the trivial case of a one-member list.
このコマンドは、引数がメーリングリストを特定し、もしそうなら、そのリストのメンバーシップを返すことを確認するように受信者に求めます。コマンドが成功した場合、セクション3.5で説明されているように、情報を含む返信が返されます。この返信には、1人のリストの些細な場合を除き、複数の行があります。
This command has no effect on the reverse-path buffer, the forward-path buffer, or the mail data buffer and may be issued at any time.
このコマンドは、リバースパスバッファー、フォワードパスバッファー、またはメールデータバッファーに影響を与えず、いつでも発行される場合があります。
Syntax: "EXPN" SP String CRLF
構文: "Expn" SP String CRLF
This command causes the server to send helpful information to the client. The command MAY take an argument (e.g., any command name) and return more specific information as a response.
このコマンドは、サーバーに有用な情報をクライアントに送信させます。コマンドは引数(例えば任意のコマンド名)を取ってもよく (MAY)、応答としてより具体的な情報を返します。
This command has no effect on the reverse-path buffer, the forward-path buffer, or the mail data buffer and may be issued at any time.
このコマンドは、リバースパスバッファー、フォワードパスバッファー、またはメールデータバッファーに影響を与えず、いつでも発行される場合があります。
SMTP servers SHOULD support HELP without arguments and MAY support it with arguments.
SMTPサーバーは引数なしのHELPをサポートすべきであり (SHOULD)、引数を伴うHELPをサポートしても構いません (MAY)。
Syntax: "HELP" [ SP String ] CRLF
構文:「ヘルプ」[SP String] CRLF
This command does not affect any parameters or previously entered commands. It specifies no action other than that the receiver send an OK reply.
このコマンドは、パラメーターまたは以前に入力されたコマンドには影響しません。受信者がOK返信を送信すること以外のアクションは指定していません。
This command has no effect on the reverse-path buffer, the forward-path buffer, or the mail data buffer and may be issued at any time. If a parameter string is specified, servers SHOULD ignore it.
このコマンドは、reverse-pathバッファ、forward-pathバッファ、またはメールデータバッファに何ら影響を与えず、いつでも発行できます。パラメータ文字列が指定されている場合、サーバーはそれを無視すべきです (SHOULD)。
Syntax: "NOOP" [ SP String ] CRLF
構文: "NOOP" [SP String] CRLF
This command specifies that the receiver MUST send an OK reply, and then close the transmission channel.
このコマンドは、受信側がOK応答を送信し、その後伝送チャネルを閉じなければならないこと (MUST) を指定します。
The receiver MUST NOT intentionally close the transmission channel until it receives and replies to a QUIT command (even if there was an error). The sender MUST NOT intentionally close the transmission channel until it sends a QUIT command and SHOULD wait until it receives the reply (even if there was an error response to a previous command). If the connection is closed prematurely due to violations of the above or system or network failure, the server MUST cancel any pending transaction, but not undo any previously completed transaction, and generally MUST act as if the command or transaction in progress had received a temporary error (i.e., a 4yz response).
受信側は、QUITコマンドを受信して応答するまで、伝送チャネルを意図的に閉じてはなりません (MUST NOT)(エラーがあった場合であっても)。送信側は、QUITコマンドを送信するまで伝送チャネルを意図的に閉じてはならず (MUST NOT)、応答を受信するまで待機すべきです (SHOULD)(直前のコマンドに対するエラー応答があった場合であっても)。上記への違反、またはシステムもしくはネットワークの障害によって接続が早期に閉じられた場合、サーバーは保留中のトランザクションをキャンセルしなければなりませんが (MUST)、以前に完了したトランザクションを元に戻してはならず、一般に進行中のコマンドまたはトランザクションが一時的エラー(すなわち4yz応答)を受信したかのように動作しなければなりません (MUST)。
The QUIT command may be issued at any time.
QUITコマンドはいつでも発行される場合があります。
Syntax: "QUIT" CRLF
構文: "quit" crlf
The syntax of the argument fields of the above commands (using the syntax specified in [8] where applicable) is given below. Some of the productions given below are used only in conjunction with source routes as described in appendix C. Terminals not defined in this document, such as ALPHA, DIGIT, SP, CR, LF, CRLF, are as defined in the "core" syntax [8 (section 6)] or in the message format syntax [32].
上記のコマンドの引数フィールドの構文(該当する場合は[8]で指定された構文を使用)を以下に示します。以下のプロダクションの一部は、Alpha、Digit、SP、CR、LF、CRLFなど、このドキュメントで定義されていない付録Cに記載されている端子に記載されているソースルートと併せてのみ使用されます。[8(セクション6)]またはメッセージ形式の構文[32]。
Reverse-path = Path
Forward-path = Path
Path = "<" [ A-d-l ":" ] Mailbox ">"
A-d-l = At-domain *( "," A-d-l )
; Note that this form, the so-called "source route",
; MUST BE accepted, SHOULD NOT be generated, and SHOULD be
; ignored.
At-domain = "@" domain
Mail-parameters = esmtp-param *(SP esmtp-param)
Rcpt-parameters = esmtp-param *(SP esmtp-param)
esmtp-param = esmtp-keyword ["=" esmtp-value]
esmtp-keyword = (ALPHA / DIGIT) *(ALPHA / DIGIT / "-")
esmtp-value = 1*(%d33-60 / %d62-127)
; any CHAR excluding "=", SP, and control characters
Keyword = Ldh-str
Argument = Atom
Domain = (sub-domain 1*("." sub-domain)) / address-literal
sub-domain = Let-dig [Ldh-str]
address-literal = "[" IPv4-address-literal /
IPv6-address-literal /
General-address-literal "]"
; See section 4.1.3
Mailbox = Local-part "@" Domain
Local-part = Dot-string / Quoted-string ; MAY be case-sensitive
Local-part = Dot-string / Quoted-string ; 大文字小文字を区別してもよい (MAY)
Dot-string = Atom *("." Atom)
Atom = 1*atext
Quoted-string = DQUOTE *qcontent DQUOTE
String = Atom / Quoted-string
While the above definition for Local-part is relatively permissive, for maximum interoperability, a host that expects to receive mail SHOULD avoid defining mailboxes where the Local-part requires (or uses) the Quoted-string form or where the Local-part is case-sensitive. For any purposes that require generating or comparing Local-parts (e.g., to specific mailbox names), all quoted forms MUST be treated as equivalent and the sending system SHOULD transmit the form that uses the minimum quoting possible.
Local-partに関する上記の定義は比較的寛容ですが、最大限の相互運用性のために、メールの受信を期待するホストは、Local-partがQuoted-string形式を必要とする(または使用する)メールボックスや、Local-partが大文字と小文字を区別するメールボックスを定義することを避けるべきです (SHOULD)。Local-partの生成または比較を必要とするあらゆる目的(例えば特定のメールボックス名との比較)において、引用符で囲まれたすべての形式は同等として扱われなければならず (MUST)、送信システムは可能な限り最小限の引用符を使用する形式を送信すべきです (SHOULD)。
Systems MUST NOT define mailboxes in such a way as to require the use in SMTP of non-ASCII characters (octets with the high order bit set to one) or ASCII "control characters" (decimal value 0-31 and 127). These characters MUST NOT be used in MAIL or RCPT commands or other commands that require mailbox names.
システムは、SMTPにおいて非ASCII文字(最上位ビットが1に設定されたオクテット)またはASCII「制御文字」(10進数値0〜31および127)の使用を必要とするような方法でメールボックスを定義してはなりません (MUST NOT)。これらの文字をMAILまたはRCPTコマンド、あるいはメールボックス名を必要とするその他のコマンドで使用してはなりません (MUST NOT)。
Note that the backslash, "\", is a quote character, which is used to indicate that the next character is to be used literally (instead of its normal interpretation). For example, "Joe\,Smith" indicates a single nine character user field with the comma being the fourth character of the field.
バックスラッシュ「\」は引用文字であり、次のキャラクターが(通常の解釈の代わりに)文字通り使用されることを示すために使用されることに注意してください。たとえば、「Joe \、Smith」は、コンマがフィールドの4番目のキャラクターである1つの9文字ユーザーフィールドを示します。
To promote interoperability and consistent with long-standing guidance about conservative use of the DNS in naming and applications (e.g., see section 2.3.1 of the base DNS document, RFC1035 [22]), characters outside the set of alphas, digits, and hyphen MUST NOT appear in domain name labels for SMTP clients or servers. In particular, the underscore character is not permitted. SMTP servers that receive a command in which invalid character codes have been employed, and for which there are no other reasons for rejection, MUST reject that command with a 501 response.
相互運用性を促進し、名前付けおよびアプリケーションにおけるDNSの控えめな使用に関する長年のガイダンス(例えば、基本DNS文書であるRFC 1035 [22]のセクション2.3.1を参照)と一致させるために、英字、数字、およびハイフンの集合以外の文字がSMTPクライアントまたはサーバーのドメイン名ラベルに現れてはなりません (MUST NOT)。特に、アンダースコア文字は許可されません。無効な文字コードが使用され、拒否の他の理由がないコマンドを受信したSMTPサーバーは、501応答でそのコマンドを拒否しなければなりません (MUST)。
Sometimes a host is not known to the domain name system and communication (and, in particular, communication to report and repair the error) is blocked. To bypass this barrier a special literal form of the address is allowed as an alternative to a domain name. For IPv4 addresses, this form uses four small decimal integers separated by dots and enclosed by brackets such as [123.255.37.2], which indicates an (IPv4) Internet Address in sequence-of-octets form. For IPv6 and other forms of addressing that might eventually be standardized, the form consists of a standardized "tag" that identifies the address syntax, a colon, and the address itself, in a format specified as part of the IPv6 standards [17].
ドメイン名システムと通信(特にエラーを報告および修復するための通信)にホストが知られていない場合があります。この障壁をバイパスするには、ドメイン名に代わるものとして、特別な文字通りのアドレス形式が許可されます。IPv4アドレスの場合、このフォームは、ドットで区切られ、[123.255.37.2]などのブラケットで囲まれた4つの小さな小数整数を使用します。最終的に標準化される可能性のあるIPv6およびその他のアドレス指定の場合、フォームは、IPv6標準の一部として指定された形式で、アドレス構文、コロン、およびアドレス自体を識別する標準化された「タグ」で構成されています[17]。
Specifically:
具体的には:
IPv4-address-literal = Snum 3("." Snum)
IPv6-address-literal = "IPv6:" IPv6-addr
General-address-literal = Standardized-tag ":" 1*dcontent
Standardized-tag = Ldh-str
; MUST be specified in a standards-track RFC
; and registered with IANA
Snum = 1*3DIGIT ; representing a decimal integer
; value in the range 0 through 255
Let-dig = ALPHA / DIGIT
Ldh-str = *( ALPHA / DIGIT / "-" ) Let-dig
IPv6-addr = IPv6-full / IPv6-comp / IPv6v4-full / IPv6v4-comp
IPv6-hex = 1*4HEXDIG
IPv6-full = IPv6-hex 7(":" IPv6-hex)
IPv6-comp = [IPv6-hex *5(":" IPv6-hex)] "::" [IPv6-hex *5(":"
IPv6-hex)]
; The "::" represents at least 2 16-bit groups of zeros
; No more than 6 groups in addition to the "::" may be
; present
IPv6v4-full = IPv6-hex 5(":" IPv6-hex) ":" IPv4-address-literal
IPv6v4-comp = [IPv6-hex *3(":" IPv6-hex)] "::"
[IPv6-hex *3(":" IPv6-hex) ":"] IPv4-address-literal
; The "::" represents at least 2 16-bit groups of zeros
; No more than 4 groups in addition to the "::" and
; IPv4-address-literal may be present
There are restrictions on the order in which these commands may be used.
これらのコマンドを使用する順序には制限があります。
A session that will contain mail transactions MUST first be initialized by the use of the EHLO command. An SMTP server SHOULD accept commands for non-mail transactions (e.g., VRFY or EXPN) without this initialization.
メールトランザクションを含むセッションは、まずEHLOコマンドを使用して初期化されなければなりません (MUST)。SMTPサーバーは、この初期化なしでも非メールトランザクション用コマンド(例: VRFYまたはEXPN)を受け入れるべきです (SHOULD)。
An EHLO command MAY be issued by a client later in the session. If it is issued after the session begins, the SMTP server MUST clear all buffers and reset the state exactly as if a RSET command had been issued. In other words, the sequence of RSET followed immediately by EHLO is redundant, but not harmful other than in the performance cost of executing unnecessary commands.
EHLOコマンドは、セッションの後半でクライアントによって発行されても構いません (MAY)。セッション開始後に発行された場合、SMTPサーバーはすべてのバッファをクリアし、RSETコマンドが発行された場合とまったく同様に状態をリセットしなければなりません (MUST)。言い換えれば、RSETの直後にEHLOが続くシーケンスは冗長ですが、不要なコマンドを実行するパフォーマンスコスト以外には有害ではありません。
If the EHLO command is not acceptable to the SMTP server, 501, 500, or 502 failure replies MUST be returned as appropriate. The SMTP server MUST stay in the same state after transmitting these replies that it was in before the EHLO was received.
EHLOコマンドがSMTPサーバーに受け入れられない場合、適切に応じて501、500、または502の失敗応答を返さなければなりません (MUST)。SMTPサーバーは、これらの応答を送信した後も、EHLOを受信する前と同じ状態にとどまらなければなりません (MUST)。
The SMTP client MUST, if possible, ensure that the domain parameter to the EHLO command is a valid principal host name (not a CNAME or MX name) for its host. If this is not possible (e.g., when the client's address is dynamically assigned and the client does not have an obvious name), an address literal SHOULD be substituted for the domain name and supplemental information provided that will assist in identifying the client.
SMTPクライアントは、可能であれば、EHLOコマンドのドメインパラメータがそのホストの有効な主要ホスト名(CNAMEまたはMX名ではない)であることを保証しなければなりません (MUST)。これが不可能な場合(例えば、クライアントのアドレスが動的に割り当てられ、クライアントが明らかな名前を持たない場合)、ドメイン名の代わりにアドレスリテラルを使用すべきであり (SHOULD)、クライアントの識別に役立つ補足情報が提供されるべきです。
An SMTP server MAY verify that the domain name parameter in the EHLO command actually corresponds to the IP address of the client. However, the server MUST NOT refuse to accept a message for this reason if the verification fails: the information about verification failure is for logging and tracing only.
SMTPサーバーは、EHLOコマンドのドメイン名パラメータがクライアントのIPアドレスに実際に対応していることを検証してもよい (MAY)。ただし、検証に失敗した場合でも、サーバーはこの理由でメッセージの受け入れを拒否してはなりません (MUST NOT)。検証失敗に関する情報はロギングおよび追跡のみを目的としています。
The NOOP, HELP, EXPN, VRFY, and RSET commands can be used at any time during a session, or without previously initializing a session. SMTP servers SHOULD process these normally (that is, not return a 503 code) even if no EHLO command has yet been received; clients SHOULD open a session with EHLO before sending these commands.
NOOP、HELP、EXPN、VRFY、およびRSETコマンドは、セッション中いつでも、またはセッションを事前に初期化することなく使用できます。SMTPサーバーは、EHLOコマンドがまだ受信されていない場合でもこれらを通常どおり処理すべきであり (SHOULD)(すなわち503コードを返さない)、クライアントはこれらのコマンドを送信する前にEHLOでセッションを開くべきです (SHOULD)。
If these rules are followed, the example in RFC 821 that shows "550 access denied to you" in response to an EXPN command is incorrect unless an EHLO command precedes the EXPN or the denial of access is based on the client's IP address or other authentication or authorization-determining mechanisms.
これらのルールに従っている場合、EHLOコマンドがExpnの先行またはアクセスの拒否がクライアントのIPアドレスまたはその他の認証に基づいている場合を除き、expnコマンドに応じて「550アクセス拒否」を示すRFC 821の例は正しくありませんまたは認証決定メカニズム。
The MAIL command (or the obsolete SEND, SOML, or SAML commands) begins a mail transaction. Once started, a mail transaction consists of a transaction beginning command, one or more RCPT commands, and a DATA command, in that order. A mail transaction may be aborted by the RSET (or a new EHLO) command. There may be zero or more transactions in a session. MAIL (or SEND, SOML, or SAML) MUST NOT be sent if a mail transaction is already open, i.e., it should be sent only if no mail transaction had been started in the session, or it the previous one successfully concluded with a successful DATA command, or if the previous one was aborted with a RSET.
MAILコマンド(または廃止されたSEND、SOML、SAMLコマンド)は、メールトランザクションを開始します。一度開始されると、メールトランザクションはトランザクション開始コマンド、1つ以上のRCPTコマンド、およびDATAコマンドの順序で構成されます。メールトランザクションは、RSET(または新しいEHLO)コマンドによって中止される場合があります。セッションには0個以上のトランザクションが存在し得ます。メールトランザクションが既に開いている場合、MAIL(またはSEND、SOML、SAML)を送信してはなりません (MUST NOT)。すなわち、セッション内でまだメールトランザクションが開始されていない場合、または前のトランザクションがDATAコマンドの成功により正常に終了した場合、あるいは前のトランザクションがRSETで中止された場合にのみ送信されるべきです。
If the transaction beginning command argument is not acceptable, a 501 failure reply MUST be returned and the SMTP server MUST stay in the same state. If the commands in a transaction are out of order to the degree that they cannot be processed by the server, a 503 failure reply MUST be returned and the SMTP server MUST stay in the same state.
トランザクション開始コマンドの引数が受け入れられない場合、501失敗応答を返さなければならず (MUST)、SMTPサーバーは同じ状態にとどまらなければなりません (MUST)。トランザクション内のコマンドの順序がサーバーで処理できないほど狂っている場合、503失敗応答を返さなければならず (MUST)、SMTPサーバーは同じ状態にとどまらなければなりません (MUST)。
The last command in a session MUST be the QUIT command. The QUIT command cannot be used at any other time in a session, but SHOULD be used by the client SMTP to request connection closure, even when no session opening command was sent and accepted.
セッションの最後のコマンドはQUITコマンドでなければなりません (MUST)。QUITコマンドはセッションの他の時点で使用することはできませんが、セッション開始コマンドが送信および受け入れられていない場合であっても、クライアントSMTPは接続の終了を要求するためにQUITを使用すべきです (SHOULD)。
As specified in section 2.2.2, commands starting in "X" may be used by bilateral agreement between the client (sending) and server (receiving) SMTP agents. An SMTP server that does not recognize such a command is expected to reply with "500 Command not recognized". An extended SMTP server MAY list the feature names associated with these private commands in the response to the EHLO command.
セクション2.2.2で指定されているように、「X」で始まるコマンドは、クライアント(送信)とサーバー(受信)SMTPエージェント間の二者間合意によって使用できます。そのようなコマンドを認識しないSMTPサーバーは、「500 Command not recognized」で返答することが期待されます。拡張SMTPサーバーは、EHLOコマンドに対する応答において、これらのプライベートコマンドに関連付けられた機能名を一覧表示してもよい (MAY)。
Commands sent or accepted by SMTP systems that do not start with "X" MUST conform to the requirements of section 2.2.2.
「X」で始まらない、SMTPシステムによって送信または受け入れられるコマンドは、セクション2.2.2の要件に準拠しなければなりません (MUST)。
Replies to SMTP commands serve to ensure the synchronization of requests and actions in the process of mail transfer and to guarantee that the SMTP client always knows the state of the SMTP server. Every command MUST generate exactly one reply.
SMTPコマンドに対する応答は、メール転送のプロセスにおける要求とアクションの同期を確保し、SMTPクライアントが常にSMTPサーバーの状態を把握していることを保証する役割を果たします。すべてのコマンドは正確に1つの応答を生成しなければなりません (MUST)。
The details of the command-reply sequence are described in section 4.3.
コマンドレプリーシーケンスの詳細については、セクション4.3で説明します。
An SMTP reply consists of a three digit number (transmitted as three numeric characters) followed by some text unless specified otherwise in this document. The number is for use by automata to determine what state to enter next; the text is for the human user. The three digits contain enough encoded information that the SMTP client need not examine the text and may either discard it or pass it on to the user, as appropriate. Exceptions are as noted elsewhere in this document. In particular, the 220, 221, 251, 421, and 551 reply codes are associated with message text that must be parsed and interpreted by machines. In the general case, the text may be receiver dependent and context dependent, so there are likely to be varying texts for each reply code. A discussion of the theory of reply codes is given in section 4.2.1. Formally, a reply is defined to be the sequence: a three-digit code, <SP>, one line of text, and <CRLF>, or a multiline reply (as defined in section 4.2.1). Since, in violation of this specification, the text is sometimes not sent, clients which do not receive it SHOULD be prepared to process the code alone (with or without a trailing space character). Only the EHLO, EXPN, and HELP commands are expected to result in multiline replies in normal circumstances, however, multiline replies are allowed for any command.
本文書で別途指定されない限り、SMTP応答は3桁の数字(3文字の数字として送信される)とそれに続く何らかのテキストで構成されます。数字はオートマトンが次にどの状態に入るかを決定するために使用され、テキストは人間のユーザー向けです。この3桁には十分なエンコード情報が含まれているため、SMTPクライアントはテキストを調べる必要がなく、適切に応じて破棄するかユーザーに渡すことができます。例外は本文書の他の箇所で述べられているとおりです。特に、220、221、251、421、および551応答コードは、機械によって解析および解釈されなければならないメッセージテキストに関連付けられています。一般的なケースでは、テキストは受信側に依存し文脈に依存するため、応答コードごとに異なるテキストが存在する可能性があります。応答コードの理論に関する議論はセクション4.2.1で提供されています。形式的には、応答は、3桁のコード、<SP>、1行のテキスト、および<CRLF>というシーケンス、または複数行の応答(セクション4.2.1で定義)として定義されます。本仕様に違反してテキストが送信されないことがあるため、それを受信しないクライアントはコード単独(末尾のスペース文字の有無にかかわらず)を処理する準備ができているべきです (SHOULD)。通常の状況ではEHLO、EXPN、およびHELPコマンドのみが複数行応答を返すことが期待されますが、任意のコマンドに対して複数行応答が許可されます。
In ABNF, server responses are:
ABNFでは、サーバーの応答は次のとおりです。
Greeting = "220 " Domain [ SP text ] CRLF
Reply-line = Reply-code [ SP text ] CRLF
where "Greeting" appears only in the 220 response that announces that the server is opening its part of the connection.
「グリーティング」は、サーバーが接続の一部を開いていることを発表する220の応答でのみ表示されます。
An SMTP server SHOULD send only the reply codes listed in this document. An SMTP server SHOULD use the text shown in the examples whenever appropriate.
SMTPサーバーは本文書に記載されている応答コードのみを送信すべきです (SHOULD)。SMTPサーバーは、適切な場合はいつでも例に示されているテキストを使用すべきです (SHOULD)。
An SMTP client MUST determine its actions only by the reply code, not by the text (except for the "change of address" 251 and 551 and, if necessary, 220, 221, and 421 replies); in the general case, any text, including no text at all (although senders SHOULD NOT send bare codes), MUST be acceptable. The space (blank) following the reply code is considered part of the text. Whenever possible, a receiver-SMTP SHOULD test the first digit (severity indication) of the reply code.
SMTPクライアントは、テキストではなく応答コードのみによって自身の動作を決定しなければならず (MUST)(「アドレス変更」の251および551、ならびに必要に応じて220、221、および421応答を除く)、一般的なケースでは、まったくテキストがない場合を含め(送信者はコード単独を送信すべきではありませんが (SHOULD NOT))、いかなるテキストも許容されなければなりません (MUST)。応答コードに続くスペース(空白)はテキストの一部とみなされます。可能な限り、受信側SMTPは応答コードの最初の数字(深刻度の指示)をテストすべきです (SHOULD)。
The list of codes that appears below MUST NOT be construed as permanent. While the addition of new codes should be a rare and significant activity, with supplemental information in the textual part of the response being preferred, new codes may be added as the result of new Standards or Standards-track specifications. Consequently, a sender-SMTP MUST be prepared to handle codes not specified in this document and MUST do so by interpreting the first digit only.
以下に現れるコードのリストは、恒久的なものと解釈してはなりません (MUST NOT)。新しいコードの追加は稀で重大な行為であるべきであり、応答のテキスト部分における補足情報が好まれますが、新しい標準または標準化過程の仕様の結果として新しいコードが追加される場合があります。したがって、送信側SMTPは本文書で指定されていないコードを処理する準備ができていなければならず (MUST)、最初の数字のみを解釈することによってそうしなければなりません (MUST)。
The three digits of the reply each have a special significance. The first digit denotes whether the response is good, bad or incomplete. An unsophisticated SMTP client, or one that receives an unexpected code, will be able to determine its next action (proceed as planned, redo, retrench, etc.) by examining this first digit. An SMTP client that wants to know approximately what kind of error occurred (e.g., mail system error, command syntax error) may examine the second digit. The third digit and any supplemental information that may be present is reserved for the finest gradation of information.
応答の3桁にはそれぞれ特別な意味があります。最初の数字は、応答が良いか悪いか、不完全かを示します。洗練されていないSMTPクライアント、または予期しないコードを受信するクライアントは、この最初の数字を調べることにより、次のアクション(計画どおり、Redo、Retrenchなど)を決定することができます。どのような種類のエラーが発生したかを知りたいSMTPクライアント(たとえば、メールシステムエラー、コマンド構文エラー)が2番目の数字を調べることができます。3桁目と存在する可能性のある補足情報は、情報の最高の段階のために予約されています。
There are five values for the first digit of the reply code:
返信コードの最初の数字には5つの値があります。
1yz Positive Preliminary reply The command has been accepted, but the requested action is being held in abeyance, pending confirmation of the information in this reply. The SMTP client should send another command specifying whether to continue or abort the action. Note: unextended SMTP does not have any commands that allow this type of reply, and so does not have continue or abort commands.
1YZ肯定的な予備返信コマンドは受け入れられましたが、要求された訴訟は、この返信の情報の確認が保留されているため、不安定に保持されています。SMTPクライアントは、アクションを継続するか中止するかを指定する別のコマンドを送信する必要があります。注:Unextended SMTPには、このタイプの返信を許可するコマンドがないため、コマンドを継続または中止しません。
2yz Positive Completion reply The requested action has been successfully completed. A new request may be initiated.
2YZ肯定的な完了応答要求されたアクションが正常に完了しました。新しいリクエストが開始される場合があります。
3yz Positive Intermediate reply The command has been accepted, but the requested action is being held in abeyance, pending receipt of further information. The SMTP client should send another command specifying this information. This reply is used in command sequence groups (i.e., in DATA).
3YZ肯定的な中間応答コマンドは受け入れられましたが、要求された訴訟は、さらなる情報の受領を待っています。SMTPクライアントは、この情報を指定する別のコマンドを送信する必要があります。この返信は、コマンドシーケンスグループ(つまり、データ)で使用されます。
4yz Transient Negative Completion reply The command was not accepted, and the requested action did not occur. However, the error condition is temporary and the action may be requested again. The sender should return to the beginning of the command sequence (if any). It is difficult to assign a meaning to "transient" when two different sites (receiver- and sender-SMTP agents) must agree on the interpretation. Each reply in this category might have a different time value, but the SMTP client is encouraged to try again. A rule of thumb to determine whether a reply fits into the 4yz or the 5yz category (see below) is that replies are 4yz if they can be successful if repeated without any change in command form or in properties of the sender or receiver (that is, the command is repeated identically and the receiver does not put up a new implementation.)
4yz過渡的否定的完了応答コマンドは受け入れられず、要求されたアクションは発生しませんでした。ただし、エラー条件は一時的なものであり、アクションが再度要求される場合があります。送信者は、コマンドシーケンスの先頭に戻る必要があります(ある場合)。2つの異なるサイト(受信者と送信者SMTPエージェント)が解釈に同意しなければならない場合、「一時的」に意味を割り当てることは困難です。このカテゴリの各返信には異なる時間値があるかもしれませんが、SMTPクライアントは再試行することをお勧めします。返信が4YZカテゴリまたは5YZカテゴリに適合するかどうかを判断するための経験則(以下を参照)は、コマンドフォームまたは送信者またはレシーバーのプロパティに変更せずに繰り返されると成功する場合、返信が4YZであるということです(つまり、、コマンドは同じように繰り返され、受信者は新しい実装を掲載しません。)
5yz Permanent Negative Completion reply The command was not accepted and the requested action did not occur. The SMTP client is discouraged from repeating the exact request (in the same sequence). Even some "permanent" error conditions can be corrected, so the human user may want to direct the SMTP client to reinitiate the command sequence by direct action at some point in the future (e.g., after the spelling has been changed, or the user has altered the account status).
5YZ永久否定的完了応答コマンドは受け入れられず、要求されたアクションは発生しませんでした。SMTPクライアントは、正確な要求を繰り返すことを思いとどまらせます(同じシーケンスで)。いくつかの「永続的な」エラー条件でさえ修正できるため、人間のユーザーは、将来のある時点で直接アクションによってSMTPクライアントにコマンドシーケンスを再現するように指示することをお勧めします(たとえば、スペルが変更された後、またはユーザーが持っていますアカウントのステータスを変更しました)。
The second digit encodes responses in specific categories:
2番目の数字は、特定のカテゴリの応答をエンコードします。
x0z Syntax: These replies refer to syntax errors, syntactically correct commands that do not fit any functional category, and unimplemented or superfluous commands.
X0Z Syntax:これらの応答は、構文エラー、機能的なカテゴリに適合しない構文的に正しいコマンド、および不均一または不必要なコマンドを指します。
x1z Information: These are replies to requests for information, such as status or help.
X1Z情報:これらは、ステータスやヘルプなどの情報を要求する返信です。
x2z Connections: These are replies referring to the transmission channel.
X2Z接続:これらは、伝送チャネルを参照する応答です。
x3z Unspecified.
X3Z不特定。
x4z Unspecified.
X4Z不特定。
x5z Mail system: These replies indicate the status of the receiver mail system vis-a-vis the requested transfer or other mail system action.
X5Z Mail System:これらの返信は、要求された転送またはその他のメールシステムのアクションに基づいて、受信機メールシステムのステータスを示しています。
The third digit gives a finer gradation of meaning in each category specified by the second digit. The list of replies illustrates this. Each reply text is recommended rather than mandatory, and may even change according to the command with which it is associated. On the other hand, the reply codes must strictly follow the specifications in this section. Receiver implementations should not invent new codes for slightly different situations from the ones described here, but rather adapt codes already defined.
3桁目は、2番目の数字で指定された各カテゴリで、より細かい意味のグラデーションを提供します。返信のリストはこれを示しています。各返信テキストは必須ではなく推奨され、関連付けられているコマンドに応じて変更される場合があります。一方、返信コードは、このセクションの仕様に厳密に従う必要があります。レシーバーの実装は、ここで説明されている状況とわずかに異なる状況の新しいコードを発明するのではなく、すでに定義されているコードを適応させるべきです。
For example, a command such as NOOP, whose successful execution does not offer the SMTP client any new information, will return a 250 reply. The reply is 502 when the command requests an unimplemented non-site-specific action. A refinement of that is the 504 reply for a command that is implemented, but that requests an unimplemented parameter.
たとえば、実行が成功したNOOPなどのコマンドは、SMTPクライアントに新しい情報を提供しないため、250回の返信が返されます。コマンドが実装されていない非サイト固有のアクションを要求する場合、返信は502です。それの改良は、実装されたコマンドの504返信ですが、それは実装されていないパラメーターを要求します。
The reply text may be longer than a single line; in these cases the complete text must be marked so the SMTP client knows when it can stop reading the reply. This requires a special format to indicate a multiple line reply.
返信テキストは、単一の行よりも長い場合があります。これらの場合、完全なテキストにマークを付ける必要があります。これにより、SMTPクライアントは、いつ返信を読むのを停止できるかを知る必要があります。これには、複数の行の返信を示すために特別な形式が必要です。
The format for multiline replies requires that every line, except the last, begin with the reply code, followed immediately by a hyphen, "-" (also known as minus), followed by text. The last line will begin with the reply code, followed immediately by <SP>, optionally some text, and <CRLF>. As noted above, servers SHOULD send the <SP> if subsequent text is not sent, but clients MUST be prepared for it to be omitted.
複数行応答の形式では、最後の行を除くすべての行が応答コードで始まり、その直後にハイフン「-」(マイナスとも呼ばれる)、テキストが続くことが要求されます。最後の行は応答コードで始まり、その直後に<SP>、任意のテキスト、および<CRLF>が続きます。上記のとおり、後続のテキストが送信されない場合でもサーバーは<SP>を送信すべきです (SHOULD) が、クライアントはそれが省略されることに備えなければなりません (MUST)。
For example:
例えば:
123-First line 123-Second line 123-234 text beginning with numbers 123 The last line
123-first line 123-second line 123-234テキスト数字から始まる123最後の行
In many cases the SMTP client then simply needs to search for a line beginning with the reply code followed by <SP> or <CRLF> and ignore all preceding lines. In a few cases, there is important data for the client in the reply "text". The client will be able to identify these cases from the current context.
多くの場合、SMTPクライアントは、<sp>または<CRLF>が続く返信コードから始まる行を検索し、前のすべての行を無視する必要があります。いくつかのケースでは、返信「テキスト」にクライアントに重要なデータがあります。クライアントは、現在のコンテキストからこれらのケースを特定できます。
500 Syntax error, command unrecognized (This may include errors such as command line too long) 501 Syntax error in parameters or arguments 502 Command not implemented (see section 4.2.4) 503 Bad sequence of commands 504 Command parameter not implemented
500構文エラー、コマンドの認識(これにはコマンドラインが長すぎるなどのエラーが含まれる場合があります)
211 System status, or system help reply 214 Help message (Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user)
211システムステータス、またはシステムヘルプ返信214ヘルプメッセージ(受信機の使用方法または特定の非標準コマンドの意味。この返信は、人間のユーザーにのみ役立ちます)
220 <domain> Service ready 221 <domain> Service closing transmission channel 421 <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down)
220 <domain> Service Ready 221 <domain> Service閉鎖伝送チャネル421 <Domain>サービスは利用できません。
250 Requested mail action okay, completed 251 User not local; will forward to <forward-path> (See section 3.4) 252 Cannot VRFY user, but will accept message and attempt delivery (See section 3.5.3) 450 Requested mail action not taken: mailbox unavailable (e.g., mailbox busy) 550 Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons) 451 Requested action aborted: error in processing 551 User not local; please try <forward-path> (See section 3.4) 452 Requested action not taken: insufficient system storage 552 Requested mail action aborted: exceeded storage allocation 553 Requested action not taken: mailbox name not allowed (e.g., mailbox syntax incorrect) 354 Start mail input; end with <CRLF>.<CRLF> 554 Transaction failed (Or, in the case of a connection-opening response, "No SMTP service here")
250の要求されたメールアクションは大丈夫、251ユーザーがローカルではなく完了しました。<forward-path>に転送します(セクション3.4を参照)252はvrfyユーザーができませんが、メッセージと試行の配信を受け入れます(セクション3.5.3を参照)撮影されていない:メールボックスは利用できません(例:メールボックスが見つかりません、アクセスなし、またはポリシーの理由で拒否されたコマンド)451要求済みアクションが中止されました:ローカルではなく551ユーザーの処理のエラー。<forward-path>(セクション3.4を参照)452要求されたアクションが取られていない:システムストレージ不足552要求されたメールアクションは中止されました:超過ストレージ割り当て553要求済みアクション:メールボックス名は許可されていません(例えば、メールボックスの構文不正)354開始メールメール入力;<CRLF>。<CRLF> 554トランザクションが失敗しました(または、接続オープニング応答の場合、「SMTPサービスはここにありません」)
211 System status, or system help reply 214 Help message (Information on how to use the receiver or the meaning of a particular non-standard command; this reply is useful only to the human user) 220 <domain> Service ready 221 <domain> Service closing transmission channel 250 Requested mail action okay, completed 251 User not local; will forward to <forward-path> (See section 3.4) 252 Cannot VRFY user, but will accept message and attempt delivery (See section 3.5.3)
211システムステータス、またはシステムヘルプ返信214ヘルプメッセージ(受信者の使用方法または特定の非標準コマンドの意味。この返信は人間のユーザーのみに役立ちます)サービスクロージングトランスミッションチャネル250要求されたメールアクションは大丈夫で、ローカルではなく251ユーザーを完了しました。<forward-path>に転送します(セクション3.4を参照)252はvrfyユーザーではありませんが、メッセージと試行試行を受け入れます(セクション3.5.3を参照)
354 Start mail input; end with <CRLF>.<CRLF> 421 <domain> Service not available, closing transmission channel (This may be a reply to any command if the service knows it must shut down) 450 Requested mail action not taken: mailbox unavailable (e.g., mailbox busy) 451 Requested action aborted: local error in processing 452 Requested action not taken: insufficient system storage 500 Syntax error, command unrecognized (This may include errors such as command line too long) 501 Syntax error in parameters or arguments 502 Command not implemented (see section 4.2.4) 503 Bad sequence of commands 504 Command parameter not implemented 550 Requested action not taken: mailbox unavailable (e.g., mailbox not found, no access, or command rejected for policy reasons) 551 User not local; please try <forward-path> (See section 3.4) 552 Requested mail action aborted: exceeded storage allocation 553 Requested action not taken: mailbox name not allowed (e.g., mailbox syntax incorrect) 554 Transaction failed (Or, in the case of a connection-opening response, "No SMTP service here")
354メール入力を開始します。<CRLF>。<CRLF> 421 <domain>サービスで終了します。メールボックスのビジー)451要求済みアクション中止:ローカルエラー処理のローカルエラー452要求されたアクションが取られていない:システムストレージ500構文エラー不足、コマンドは認識されていない(これにはコマンドラインが長すぎるなどのエラーが含まれる場合があります)501パラメーターまたは引数の構文エラー(セクション4.2.4を参照)503コマンドの悪いシーケンス504コマンドパラメーター実装されていない550要求されたアクションが取られていない:メールボックスが利用できない(例えば、メールボックスが見つからない、アクセスなし、またはコマンドがポリシー上の理由で拒否された)551ローカルではないユーザー。<forward-path>を試してください(セクション3.4を参照)552要求されたメールアクション中止されました:超過ストレージ割り当て553要求されたアクション:メールボックス名は許可されていません(例えば、メールボックス構文が正しくありません)554トランザクションが失敗しました(または、接続の場合) - オープンの応答、「ここにSMTPサービスなし」)
Questions have been raised as to when reply code 502 (Command not implemented) SHOULD be returned in preference to other codes. 502 SHOULD be used when the command is actually recognized by the SMTP server, but not implemented. If the command is not recognized, code 500 SHOULD be returned. Extended SMTP systems MUST NOT list capabilities in response to EHLO for which they will return 502 (or 500) replies.
他のコードよりも優先して応答コード502(Command not implemented)をいつ返すべきか (SHOULD) について疑問が提起されてきました。コマンドがSMTPサーバーによって実際に認識されているものの実装されていない場合、502を使用すべきです (SHOULD)。コマンドが認識されない場合は、コード500を返すべきです (SHOULD)。拡張SMTPシステムは、502(または500)応答を返すことになる機能をEHLOへの応答にリストしてはなりません (MUST NOT)。
When an SMTP server returns a positive completion status (2yz code) after the DATA command is completed with <CRLF>.<CRLF>, it accepts responsibility for:
<CRLF>。<CRLF>でデータコマンドが完了した後、SMTPサーバーが正の完了ステータス(2YZコード)を返すと、以下の責任を受け入れます。
- delivering the message (if the recipient mailbox exists), or
- メッセージの配信(受信者のメールボックスが存在する場合)、または
- if attempts to deliver the message fail due to transient conditions, retrying delivery some reasonable number of times at intervals as specified in section 4.5.4.
- 一時的な条件のためにメッセージを配信しようとする場合、セクション4.5.4で指定されているように、間隔で妥当な回数を再試行します。
- if attempts to deliver the message fail due to permanent conditions, or if repeated attempts to deliver the message fail due to transient conditions, returning appropriate notification to the sender of the original message (using the address in the SMTP MAIL command).
- 永続的な条件のためにメッセージを配信しようとする場合、または一時的な条件のためにメッセージを配信しようとする繰り返しの試みの場合、元のメッセージの送信者に適切な通知を返します(SMTPメールコマンドのアドレスを使用)。
When an SMTP server returns a permanent error status (5yz) code after the DATA command is completed with <CRLF>.<CRLF>, it MUST NOT make any subsequent attempt to deliver that message. The SMTP client retains responsibility for delivery of that message and may either return it to the user or requeue it for a subsequent attempt (see section 4.5.4.1).
DATAコマンドが<CRLF>.<CRLF>で完了した後にSMTPサーバーが永続的なエラーステータス(5yz)コードを返した場合、そのメッセージのその後の配信試行を行ってはなりません (MUST NOT)。SMTPクライアントはそのメッセージの配信に関する責任を保持し、ユーザーに返送するか、その後の試行のために再キューイングすることができます(セクション4.5.4.1を参照)。
The user who originated the message SHOULD be able to interpret the return of a transient failure status (by mail message or otherwise) as a non-delivery indication, just as a permanent failure would be interpreted. I.e., if the client SMTP successfully handles these conditions, the user will not receive such a reply.
メッセージを発信したユーザーは、永続的な障害が解釈されるのとまったく同様に、一時的な障害ステータスの返送(メールメッセージまたはその他の方法による)を不達の指示として解釈できるべきです (SHOULD)。すなわち、クライアントSMTPがこれらの状態を正常に処理した場合、ユーザーはそのような返信を受け取りません。
When an SMTP server returns a permanent error status (5yz) code after the DATA command is completely with <CRLF>.<CRLF>, it MUST NOT make any subsequent attempt to deliver the message. As with temporary error status codes, the SMTP client retains responsibility for the message, but SHOULD not again attempt delivery to the same server without user review and intervention of the message.
DATAコマンドが<CRLF>.<CRLF>で完了した後にSMTPサーバーが永続的なエラーステータス(5yz)コードを返した場合、メッセージのその後の配信試行を行ってはなりません (MUST NOT)。一時的なエラーステータスコードの場合と同様に、SMTPクライアントはメッセージに対する責任を保持しますが、ユーザーによるメッセージの確認および介入なしに、同じサーバーへの配信を再試行しないようにすべきです (SHOULD)。
The communication between the sender and receiver is an alternating dialogue, controlled by the sender. As such, the sender issues a command and the receiver responds with a reply. Unless other arrangements are negotiated through service extensions, the sender MUST wait for this response before sending further commands.
送信側と受信側の間の通信は、送信側によって制御される交互の対話です。したがって、送信側がコマンドを発行し、受信側が応答で返答します。サービス拡張を通じて他の取り決めがネゴシエートされない限り、送信側はさらなるコマンドを送信する前にこの応答を待たなければなりません (MUST)。
One important reply is the connection greeting. Normally, a receiver will send a 220 "Service ready" reply when the connection is completed. The sender SHOULD wait for this greeting message before sending any commands.
重要な応答の1つは接続挨拶です。通常、受信側は接続が完了したときに220「Service ready」応答を送信します。送信側は、コマンドを送信する前にこの挨拶メッセージを待つべきです (SHOULD)。
Note: all the greeting-type replies have the official name (the fully-qualified primary domain name) of the server host as the first word following the reply code. Sometimes the host will have no meaningful name. See 4.1.3 for a discussion of alternatives in these situations.
注:すべてのグリーティングタイプの返信には、返信コードに続く最初の単語として、サーバーホストの正式名(完全に適格なプライマリドメイン名)があります。ホストに意味のある名前がない場合があります。これらの状況での代替案については、4.1.3を参照してください。
For example,
例えば、
220 ISIF.USC.EDU Service ready or 220 mail.foo.com SuperSMTP v 6.1.2 Service ready or 220 [10.0.0.1] Clueless host service ready
220 isif.usc.eduサービス準備完了または220 mail.foo.com SuperSMTP v 6.1.2サービスレディまたは220 [10.0.0.1] Clueless Host Service Ready
The table below lists alternative success and failure replies for each command. These SHOULD be strictly adhered to: a receiver may substitute text in the replies, but the meaning and action implied by the code numbers and by the specific command reply sequence cannot be altered.
下表に、各コマンドに対する成功および失敗の代替応答を示します。これらは厳密に遵守されるべきです (SHOULD): 受信側は応答内のテキストを置き換えても構いませんが、コード番号および特定のコマンド応答シーケンスによって暗示される意味および動作を変更することはできません。
Each command is listed with its usual possible replies. The prefixes used before the possible replies are "I" for intermediate, "S" for success, and "E" for error. Since some servers may generate other replies under special circumstances, and to allow for future extension, SMTP clients SHOULD, when possible, interpret only the first digit of the reply and MUST be prepared to deal with unrecognized reply codes by interpreting the first digit only. Unless extended using the mechanisms described in section 2.2, SMTP servers MUST NOT transmit reply codes to an SMTP client that are other than three digits or that do not start in a digit between 2 and 5 inclusive.
各コマンドには、その通常の可能な応答がリストされています。可能な応答の前に使用されるプレフィックスは、中間を表す「I」、成功を表す「S」、およびエラーを表す「E」です。一部のサーバーは特別な状況下で他の応答を生成する場合があり、また将来の拡張を可能にするために、SMTPクライアントは可能な限り応答の最初の数字のみを解釈すべきであり (SHOULD)、最初の数字のみを解釈することによって認識されない応答コードに対処する準備ができていなければなりません (MUST)。セクション2.2で説明されているメカニズムを使用して拡張されない限り、SMTPサーバーは、3桁以外の応答コード、または2から5までの数字で始まらない応答コードをSMTPクライアントに送信してはなりません (MUST NOT)。
These sequencing rules and, in principle, the codes themselves, can be extended or modified by SMTP extensions offered by the server and accepted (requested) by the client.
これらのシーケンスルール、および原則として、コード自体は、サーバーが提供し、クライアントが受け入れる(要求された)SMTP拡張機能によって拡張または変更できます。
In addition to the codes listed below, any SMTP command can return any of the following codes if the corresponding unusual circumstances are encountered:
以下にリストされているコードに加えて、SMTPコマンドは、対応する異常な状況に遭遇した場合、次のコードのいずれかを返すことができます。
500 For the "command line too long" case or if the command name was not recognized. Note that producing a "command not recognized" error in response to the required subset of these commands is a violation of this specification.
「コマンドラインが長すぎる」ケースの場合、またはコマンド名が認識されていない場合。これらのコマンドの必要なサブセットに応じて「認識されていない」エラーを作成することは、この仕様の違反であることに注意してください。
501 Syntax error in command or arguments. In order to provide for future extensions, commands that are specified in this document as not accepting arguments (DATA, RSET, QUIT) SHOULD return a 501 message if arguments are supplied in the absence of EHLO-advertised extensions.
501 コマンドまたは引数の構文エラー。将来の拡張に備えるため、本文書で引数を受け入れないと指定されているコマンド(DATA、RSET、QUIT)は、EHLOで宣伝された拡張が存在しない場合に引数が提供されたときは、501メッセージを返すべきです (SHOULD)。
421 Service shutting down and closing transmission channel Specific sequences are:
421サービスシャットダウンと閉鎖伝送チャネル固有のシーケンスは次のとおりです。
CONNECTION ESTABLISHMENT
S: 220
E: 554
EHLO or HELO
S: 250
E: 504, 550
MAIL
S: 250
E: 552, 451, 452, 550, 553, 503
RCPT
S: 250, 251 (but see section 3.4 for discussion of 251 and 551)
E: 550, 551, 552, 553, 450, 451, 452, 503, 550
DATA
I: 354 -> data -> S: 250
E: 552, 554, 451, 452
E: 451, 554, 503
RSET
S: 250
VRFY
S: 250, 251, 252
E: 550, 551, 553, 502, 504
EXPN
S: 250, 252
E: 550, 500, 502, 504
HELP
S: 211, 214
E: 502, 504
NOOP
S: 250
QUIT
S: 221
When an SMTP server receives a message for delivery or further processing, it MUST insert trace ("time stamp" or "Received") information at the beginning of the message content, as discussed in section 4.1.1.4.
セクション4.1.1.4で説明されているように、SMTPサーバーが配信またはさらなる処理のためにメッセージを受信した場合、メッセージコンテンツの先頭にトレース(「タイムスタンプ」または「Received」)情報を挿入しなければなりません (MUST)。
This line MUST be structured as follows:
この行は次のように構成されなければなりません (MUST):
- 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.
- SMTP環境で提供しなければならない (MUST) FROMフィールドには、(1) EHLOコマンドで提示された送信元ホストの名前、および (2) TCP接続から特定された送信元のIPアドレスを含むアドレスリテラルの両方を含めるべきです (SHOULD)。
- The ID field MAY contain an "@" as suggested in RFC 822, but this is not required.
- IDフィールドには、RFC 822で示唆されているように「@」を含めても構いませんが (MAY)、これは要求されていません。
- The FOR field MAY contain a list of <path> entries when multiple RCPT commands have been given. This may raise some security issues and is usually not desirable; see section 7.2.
- 複数のRCPTコマンドが与えられた場合、FORフィールドに<path>エントリのリストを含めてもよい (MAY)。これはセキュリティ上の問題を引き起こす可能性があり、通常は望ましくありません。セクション7.2を参照してください。
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.
インターネットメールプログラムは、以前にメッセージヘッダーに追加されたReceived:行を変更してはなりません (MUST NOT)。SMTPサーバーはメッセージの先頭にReceived行を追加しなければならず (MUST)、既存の行の順序を変更したり、他の場所にReceived行を挿入したりしてはなりません (MUST NOT)。
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.
インターネットが成長するにつれて、Receivedフィールドの比較可能性は問題(特に低速なリレー)を検出するために重要となります。Receivedフィールドを作成するSMTPサーバーは、あらゆる種類のタイムゾーン名ではなく、日付に明示的なオフセット(例えば-0800)を使用すべきです (SHOULD)。実行可能な場合は、UTよりも現地時間(オフセット付き)が好まれます。この形式により、現地の状況に関するわずかにより多くの情報を指定できます。UTが必要な場合、受信側は値を変換するために単純な算術演算を行うだけで済みます。UTを使用すると、サーバーのタイムゾーン位置に関する情報が失われます。タイムゾーン名を提供したい場合は、コメントに含めるべきです (SHOULD)。
When the delivery SMTP server makes the "final delivery" of a message, it inserts a return-path line at the beginning of the mail data. This use of return-path is required; mail systems MUST support it. The return-path line preserves the information in the <reverse-path> from the MAIL command. Here, final delivery means the message has left the SMTP environment. Normally, this would mean it had been delivered to the destination user or an associated mail drop, but in some cases it may be further processed and transmitted by another mail system.
配信SMTPサーバーがメッセージの「最終配信」を行う際、メールデータの先頭にreturn-path行を挿入します。このreturn-pathの使用は必須であり、メールシステムはこれをサポートしなければなりません (MUST)。return-path行はMAILコマンドからの<reverse-path>内の情報を保持します。ここで、最終配信とはメッセージがSMTP環境から離脱したことを意味します。通常、これは宛先ユーザーまたは関連するメールボックスに配信されたことを意味しますが、場合によっては別のメールシステムによってさらに処理および送信されることもあります。
It is possible for the mailbox in the return path to be different from the actual sender's mailbox, for example, if error responses are to be delivered to a special error handling mailbox rather than to the message sender. When mailing lists are involved, this arrangement is common and useful as a means of directing errors to the list maintainer rather than the message originator.
たとえば、リターンパスのメールボックスが実際の送信者のメールボックスとは異なる可能性があります。たとえば、エラー応答がメッセージ送信者ではなく、メールボックスの特別なエラー処理に配信される場合。メーリングリストが関与している場合、この配置は、メッセージのオリジネーターではなく、リストメンテナーにエラーを向ける手段として一般的で有用です。
The text above implies that the final mail data will begin with a return path line, followed by one or more time stamp lines. These lines will be followed by the mail data headers and body [32].
上記のテキストは、最終メールデータがリターンパスラインで始まり、1つ以上のタイムスタンプラインが続くことを意味します。これらの行の後に、メールデータヘッダーとボディが続きます[32]。
It is sometimes difficult for an SMTP server to determine whether or not it is making final delivery since forwarding or other operations may occur after the message is accepted for delivery. Consequently, any further (forwarding, gateway, or relay) systems MAY remove the return path and rebuild the MAIL command as needed to ensure that exactly one such line appears in a delivered message.
メッセージが配信のために受け入れられた後に転送やその他の操作が発生する可能性があるため、SMTPサーバーが最終配信を行っているかどうかを判断することが困難な場合があります。したがって、それ以降の任意の(転送、ゲートウェイ、またはリレー)システムは、配信されたメッセージにそのような行が正確に1つ現れることを保証するために、必要に応じてリターンパスを削除しMAILコマンドを再構築しても構いません (MAY)。
A message-originating SMTP system SHOULD NOT send a message that already contains a Return-path header. SMTP servers performing a relay function MUST NOT inspect the message data, and especially not to the extent needed to determine if Return-path headers are present. SMTP servers making final delivery MAY remove Return-path headers before adding their own.
メッセージ発信元のSMTPシステムは、既にReturn-pathヘッダーを含んでいるメッセージを送信すべきではありません (SHOULD NOT)。リレー機能を実行するSMTPサーバーは、メッセージデータを検査してはならず (MUST NOT)、特にReturn-pathヘッダーが存在するかどうかを判断するために必要な範囲で検査してはなりません。最終配信を行うSMTPサーバーは、自身のヘッダーを追加する前にReturn-pathヘッダーを削除してもよい (MAY)。
The primary purpose of the Return-path is to designate the address to which messages indicating non-delivery or other mail system failures are to be sent. For this to be unambiguous, exactly one return path SHOULD be present when the message is delivered. Systems using RFC 822 syntax with non-SMTP transports SHOULD designate an unambiguous address, associated with the transport envelope, to which error reports (e.g., non-delivery messages) should be sent.
Return-pathの主目的は、不達またはその他のメールシステム障害を示すメッセージの送信先となるアドレスを指定することです。これを明確にするために、メッセージが配信される際には正確に1つのリターンパスが存在すべきです (SHOULD)。非SMTPトランスポートでRFC 822構文を使用するシステムは、エラードキュメント(例えば不達メッセージ)が送信されるべき、トランスポートエンベロープに関連付けられた明確なアドレスを指定すべきです (SHOULD)。
Historical note: Text in RFC 822 that appears to contradict the use of the Return-path header (or the envelope reverse path address from the MAIL command) as the destination for error messages is not applicable on the Internet. The reverse path address (as copied into the Return-path) MUST be used as the target of any mail containing delivery error messages.
歴史的注記: Return-pathヘッダー(またはMAILコマンドからのエンベロープリバースパスアドレス)をエラーメッセージの送信先として使用することと矛盾するように見えるRFC 822のテキストは、インターネットには適用されません。配信エラーメッセージを含むメールの送信先として、リバースパスアドレス(Return-pathにコピーされたもの)を使用しなければなりません (MUST)。
In particular:
特に:
- a gateway from SMTP->elsewhere SHOULD insert a return-path header, unless it is known that the "elsewhere" transport also uses Internet domain addresses and maintains the envelope sender address separately.
- SMTPから他へのゲートウェイは、「他」のトランスポートもインターネットドメインアドレスを使用し、エンベロープ送信者アドレスを別個に維持していることが知られていない限り、return-pathヘッダーを挿入すべきです (SHOULD)。
- a gateway from elsewhere->SMTP SHOULD delete any return-path header present in the message, and either copy that information to the SMTP envelope or combine it with information present in the envelope of the other transport system to construct the reverse path argument to the MAIL command in the SMTP envelope.
- 他からSMTPへのゲートウェイは、メッセージ内に存在するreturn-pathヘッダーを削除すべきであり (SHOULD)、その情報をSMTPエンベロープにコピーするか、他のトランスポートシステムのエンベロープに存在する情報と組み合わせて、SMTPエンベロープのMAILコマンドに対するリバースパス引数を構築すべきです。
The server must give special treatment to cases in which the processing following the end of mail data indication is only partially successful. This could happen if, after accepting several recipients and the mail data, the SMTP server finds that the mail data could be successfully delivered to some, but not all, of the recipients. In such cases, the response to the DATA command MUST be an OK reply. However, the SMTP server MUST compose and send an "undeliverable mail" notification message to the originator of the message.
サーバーは、メールデータ終了指示に続く処理が部分的にしか成功しなかったケースに対して特別な処理を行わなければなりません。これは、いくつかの受信者およびメールデータを受け入れた後、SMTPサーバーがメールデータを一部の受信者には正常に配信できるものの、全員には配信できないと判断した場合に発生する可能性があります。そのような場合、DATAコマンドに対する応答はOK応答でなければなりません (MUST)。ただし、SMTPサーバーは「undeliverable mail」通知メッセージを作成し、メッセージの発信元に送信しなければなりません (MUST)。
A single notification listing all of the failed recipients or separate notification messages MUST be sent for each failed recipient. For economy of processing by the sender, the former is preferred when possible. All undeliverable mail notification messages are sent using the MAIL command (even if they result from processing the obsolete SEND, SOML, or SAML commands) and use a null return path as discussed in section 3.7.
失敗したすべての受信者を記載した単一の通知、または失敗した受信者ごとに個別の通知メッセージを送信しなければなりません (MUST)。送信側による処理の経済性のために、可能な場合は前者が好まれます。すべての配信不能メール通知メッセージは、(廃止されたSEND、SOML、またはSAMLコマンドの処理に起因する場合であっても)MAILコマンドを使用して送信され、セクション3.7で説明したようにnullリターンパスを使用します。
The time stamp line and the return path line are formally defined as follows:
タイムスタンプラインとリターンパスラインは、次のように正式に定義されています。
Return-path-line = "Return-Path:" FWS Reverse-path <CRLF>
Time-stamp-line = "Received:" FWS Stamp <CRLF>
Stamp = From-domain By-domain Opt-info ";" FWS date-time
; where "date-time" is as defined in [32]
; but the "obs-" forms, especially two-digit
; years, are prohibited in SMTP and MUST NOT be used.
From-domain = "FROM" FWS Extended-Domain CFWS
By-domain = "BY" FWS Extended-Domain CFWS
Extended-Domain = Domain /
( Domain FWS "(" TCP-info ")" ) /
( Address-literal FWS "(" TCP-info ")" )
TCP-info = Address-literal / ( Domain FWS Address-literal ) ; Information derived by server from TCP connection ; not client EHLO.
tcp-info = address-literal /(domain fwsアドレスリテラル);TCP接続からサーバーによって導出された情報。クライアントehloではありません。
Opt-info = [Via] [With] [ID] [For]
Via = "VIA" FWS Link CFWS
With = "WITH" FWS Protocol CFWS
ID = "ID" FWS String / msg-id CFWS
For = "FOR" FWS 1*( Path / Mailbox ) CFWS
Link = "TCP" / Addtl-Link
Addtl-Link = Atom
; Additional standard names for links are registered with the
; Internet Assigned Numbers Authority (IANA). "Via" is
; primarily of value with non-Internet transports. SMTP
; servers SHOULD NOT use unregistered names.
Protocol = "ESMTP" / "SMTP" / 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.
In order to make SMTP workable, the following minimum implementation is required for all receivers. The following commands MUST be supported to conform to this specification:
SMTPを機能させるために、すべての受信側に対して以下の最小限の実装が要求されます。本仕様に準拠するために、以下のコマンドをサポートしなければなりません (MUST):
EHLO HELO MAIL RCPT DATA RSET NOOP QUIT VRFY
ehlo helo mail rcpt data rset noop quit vrfy
Any system that includes an SMTP server supporting mail relaying or delivery MUST support the reserved mailbox "postmaster" as a case-insensitive local name. This postmaster address is not strictly necessary if the server always returns 554 on connection opening (as described in section 3.1). The requirement to accept mail for postmaster implies that RCPT commands which specify a mailbox for postmaster at any of the domains for which the SMTP server provides mail service, as well as the special case of "RCPT TO:<Postmaster>" (with no domain specification), MUST be supported.
メールの中継または配信をサポートするSMTPサーバーを含むシステムは、予約されたメールボックス「postmaster」を大文字小文字を区別しないローカル名としてサポートしなければなりません (MUST)。このpostmasterアドレスは、サーバーが接続開始時に常に554を返す場合(セクション3.1で説明)、厳密には必要ありません。postmaster宛てのメールを受け入れる要件は、SMTPサーバーがメールサービスを提供するドメインのいずれかでpostmasterのメールボックスを指定するRCPTコマンド、および「RCPT TO:<Postmaster>」(ドメイン指定なし)という特別なケースをサポートしなければならないこと (MUST) を意味します。
SMTP systems are expected to make every reasonable effort to accept mail directed to Postmaster from any other system on the Internet. In extreme cases --such as to contain a denial of service attack or other breach of security-- an SMTP server may block mail directed to Postmaster. However, such arrangements SHOULD be narrowly tailored so as to avoid blocking messages which are not part of such attacks.
SMTPシステムは、インターネット上の他の任意のシステムからPostmaster宛てのメールを受け入れるために、あらゆる合理的な努力を払うことが期待されます。極端なケース(例えばサービス運用妨害攻撃やその他のセキュリティ侵害を封じ込めるなど)では、SMTPサーバーはPostmaster宛てのメールをブロックする場合があります。しかし、そのような取り決めは、そのような攻撃の一部ではないメッセージのブロックを避けるように狭く調整されるべきです (SHOULD)。
Without some provision for data transparency, the character sequence "<CRLF>.<CRLF>" ends the mail text and cannot be sent by the user. In general, users are not aware of such "forbidden" sequences. To allow all user composed text to be transmitted transparently, the following procedures are used:
データの透明性に関するいくつかの規定がなければ、文字シーケンス「<CRLF>。<CRLF>」はメールテキストを終了し、ユーザーが送信することはできません。一般に、ユーザーはそのような「禁止された」シーケンスを認識していません。すべてのユーザーが作成したテキストを透過的に送信できるようにするには、次の手順を使用します。
- Before sending a line of mail text, the SMTP client checks the first character of the line. If it is a period, one additional period is inserted at the beginning of the line.
- メールテキストの行を送信する前に、SMTPクライアントは行の最初の文字をチェックします。期間の場合、1つの追加期間がラインの先頭に挿入されます。
- When a line of mail text is received by the SMTP server, it checks the line. If the line is composed of a single period, it is treated as the end of mail indicator. If the first character is a period and there are other characters on the line, the first character is deleted.
- SMTPサーバーによってメールテキストの行が受信されると、行がチェックされます。ラインが単一の期間で構成されている場合、メールインジケーターの終わりとして扱われます。最初の文字が期間であり、ライン上に他のキャラクターがある場合、最初の文字が削除されます。
The mail data may contain any of the 128 ASCII characters. All characters are to be delivered to the recipient's mailbox, including spaces, vertical and horizontal tabs, and other control characters. If the transmission channel provides an 8-bit byte (octet) data stream, the 7-bit ASCII codes are transmitted right justified in the octets, with the high order bits cleared to zero. See 3.7 for special treatment of these conditions in SMTP systems serving a relay function.
メールデータには、128のASCII文字のいずれかが含まれる場合があります。すべての文字は、スペース、垂直および水平タブ、その他のコントロール文字を含む、受信者のメールボックスに配信されます。トランスミッションチャネルが8ビットバイト(Octet)データストリームを提供する場合、7ビットASCIIコードはオクテットで正当化され、高次ビットがゼロにクリアされます。リレー関数を提供するSMTPシステムのこれらの条件の特別な処理については、3.7を参照してください。
In some systems it may be necessary to transform the data as it is received and stored. This may be necessary for hosts that use a different character set than ASCII as their local character set, that store data in records rather than strings, or which use special character sequences as delimiters inside mailboxes. If such transformations are necessary, they MUST be reversible, especially if they are applied to mail being relayed.
一部のシステムでは、データが受信および保存される際にデータを変換する必要がある場合があります。これは、ローカル文字セットとしてASCIIとは異なる文字セットを使用するホスト、文字列ではなくレコードにデータを保存するホスト、またはメールボックス内の区切り文字として特殊な文字シーケンスを使用するホストにおいて必要になる場合があります。そのような変換が必要な場合、特に中継されるメールに適用される場合は、可逆的でなければなりません (MUST)。
There are several objects that have required minimum/maximum sizes. Every implementation MUST be able to receive objects of at least these sizes. Objects larger than these sizes SHOULD be avoided when possible. However, some Internet mail constructs such as encoded X.400 addresses [16] will often require larger objects: clients MAY attempt to transmit these, but MUST be prepared for a server to reject them if they cannot be handled by it. To the maximum extent possible, implementation techniques which impose no limits on the length of these objects should be used.
要求される最小/最大サイズを持つオブジェクトがいくつか存在します。すべての実装は、少なくともこれらのサイズのオブジェクトを受信できなければなりません (MUST)。これらのサイズより大きなオブジェクトは、可能な限り避けるべきです (SHOULD)。ただし、エンコードされたX.400アドレス[16]などの一部のインターネットメール構造では、より大きなオブジェクトが必要になることがよくあります: クライアントはこれらを送信することを試みても構いませんが (MAY)、サーバーが処理できない場合に拒否されることに備えなければなりません (MUST)。可能な限り最大限に、これらのオブジェクトの長さに制限を課さない実装技法を使用すべきです。
local-part The maximum total length of a user name or other local-part is 64 characters.
ローカルパートユーザー名またはその他のローカルパートの最大総長さは64文字です。
domain The maximum total length of a domain name or number is 255 characters.
ドメインドメイン名または数の最大合計長は255文字です。
path The maximum total length of a reverse-path or forward-path is 256 characters (including the punctuation and element separators).
パスリバースパスまたはフォワードパスの最大総長さは256文字(句読点および要素セパレーターを含む)です。
command line The maximum total length of a command line including the command word and the <CRLF> is 512 characters. SMTP extensions may be used to increase this limit.
コマンドラインコマンドワードと<CRLF>を含むコマンドラインの最大合計長は512文字です。SMTP拡張機能を使用して、この制限を増やすことができます。
reply line The maximum total length of a reply line including the reply code and the <CRLF> is 512 characters. More information may be conveyed through multiple-line replies.
REPLY行は、返信コードと<CRLF>を含む返信ラインの最大長さを512文字です。複数行の返信を通じて、詳細が伝えられる場合があります。
text line The maximum total length of a text line including the <CRLF> is 1000 characters (not counting the leading dot duplicated for transparency). This number may be increased by the use of SMTP Service Extensions.
テキスト行<CRLF>を含むテキストラインの最大長さは1000文字です(透明性のために重複した主要なドットをカウントしません)。この数は、SMTPサービス拡張機能を使用することで増加する場合があります。
message content The maximum total length of a message content (including any message headers as well as the message body) MUST BE at least 64K octets. Since the introduction of Internet standards for multimedia mail [12], message lengths on the Internet have grown dramatically, and message size restrictions should be avoided if at all possible. SMTP server systems that must impose restrictions SHOULD implement the "SIZE" service extension [18], and SMTP client systems that will send large messages SHOULD utilize it when possible.
message content メッセージコンテンツの最大合計長(メッセージヘッダーおよびメッセージ本文を含む)は、少なくとも64Kオクテットでなければなりません (MUST)。マルチメディアメールに関するインターネット標準[12]の導入以来、インターネット上のメッセージの長さは劇的に増大しており、可能な限りメッセージサイズの制限は避けるべきです。制限を課さなければならないSMTPサーバーシステムは、「SIZE」サービス拡張[18]を実装すべきであり (SHOULD)、大きなメッセージを送信するSMTPクライアントシステムは可能な限りそれを利用すべきです (SHOULD)。
recipients buffer The minimum total number of recipients that must be buffered is 100 recipients. Rejection of messages (for excessive recipients) with fewer than 100 RCPT commands is a violation of this specification. The general principle that relaying SMTP servers MUST NOT, and delivery SMTP servers SHOULD NOT, perform validation tests on message headers suggests that rejecting a message based on the total number of recipients shown in header fields is to be discouraged. A server which imposes a limit on the number of recipients MUST behave in an orderly fashion, such as to reject additional addresses over its limit rather than silently discarding addresses previously accepted. A client that needs to deliver a message containing over 100 RCPT commands SHOULD be prepared to transmit in 100-recipient "chunks" if the server declines to accept more than 100 recipients in a single message.
recipients buffer バッファリングされなければならない受信者の最小総数は100人です。100未満のRCPTコマンドを持つメッセージを(過剰な受信者を理由に)拒否することは本仕様の違反です。中継SMTPサーバーはメッセージヘッダーに対して検証テストを実行してはならず (MUST NOT)、配信SMTPサーバーは実行すべきではない (SHOULD NOT) という一般原則は、ヘッダーフィールドに示されている受信者の総数に基づいてメッセージを拒否することは推奨されないことを示唆しています。受信者の数に制限を課すサーバーは、以前に受け入れられたアドレスを暗黙に破棄するのではなく、制限を超える追加のアドレスを拒否するなど、秩序ある方法で動作しなければなりません (MUST)。100を超えるRCPTコマンドを含むメッセージを配信する必要があるクライアントは、サーバーが単一のメッセージで100人を超える受信者の受け入れを拒否した場合、100受信者ごとの「チャンク」で送信する準備をしておくべきです (SHOULD)。
Errors due to exceeding these limits may be reported by using the reply codes. Some examples of reply codes are:
これらの制限を超えるためのエラーは、返信コードを使用して報告される場合があります。返信コードのいくつかの例は次のとおりです。
500 Line too long. or 501 Path too long or 452 Too many recipients (see below) or 552 Too much mail data.
500ラインが長すぎます。または、501パスが長すぎるか、452回の受信者(以下を参照)または552のメールデータが多すぎます。
RFC 821 [30] incorrectly listed the error where an SMTP server exhausts its implementation limit on the number of RCPT commands ("too many recipients") as having reply code 552. The correct reply code for this condition is 452. Clients SHOULD treat a 552 code in this case as a temporary, rather than permanent, failure so the logic below works.
RFC 821 [30]は、SMTPサーバーがRCPTコマンドの数に関する実装制限を使い果たした場合のエラー(「too many recipients」)の応答コードを552と誤って記載していました。この条件に対する正しい応答コードは452です。以下のロジックが機能するように、クライアントはこの場合の552コードを永続的ではなく一時的な障害として扱うべきです (SHOULD)。
When a conforming SMTP server encounters this condition, it has at least 100 successful RCPT commands in its recipients buffer. If the server is able to accept the message, then at least these 100 addresses will be removed from the SMTP client's queue. When the client attempts retransmission of those addresses which received 452 responses, at least 100 of these will be able to fit in the SMTP server's recipients buffer. Each retransmission attempt which is able to deliver anything will be able to dispose of at least 100 of these recipients.
適合したSMTPサーバーがこの状態に遭遇すると、レシピエントバッファーに少なくとも100の成功したRCPTコマンドがあります。サーバーがメッセージを受け入れることができる場合、少なくともこれらの100のアドレスがSMTPクライアントのキューから削除されます。クライアントが452の応答を受け取ったアドレスの再送信を試みると、これらのうち少なくとも100がSMTPサーバーの受信者バッファに適合することができます。何でも提供できる各再送信の試みは、これらの受信者の少なくとも100人を処分することができます。
If an SMTP server has an implementation limit on the number of RCPT commands and this limit is exhausted, it MUST use a response code of 452 (but the client SHOULD also be prepared for a 552, as noted above). If the server has a configured site-policy limitation on the number of RCPT commands, it MAY instead use a 5XX response code. This would be most appropriate if the policy limitation was intended to apply if the total recipient count for a particular message body were enforced even if that message body was sent in multiple mail transactions.
SMTPサーバーがRCPTコマンドの数に関する実装制限を持ち、この制限が使い果たされた場合、452の応答コードを使用しなければなりません (MUST)(ただし、上記のようにクライアントは552にも備えるべきです (SHOULD))。サーバーがRCPTコマンドの数に関する設定されたサイトポリシー制限を持つ場合、代わりに5XX応答コードを使用しても構いません (MAY)。これは、特定のメッセージ本文が複数のメールトランザクションで送信された場合でも、そのメッセージ本文に対する総受信者数が強制されるようポリシー制限が意図されている場合に最も適切です。
An SMTP client MUST provide a timeout mechanism. It MUST use per-command timeouts rather than somehow trying to time the entire mail transaction. Timeouts SHOULD be easily reconfigurable, preferably without recompiling the SMTP code. To implement this, a timer is set for each SMTP command and for each buffer of the data transfer. The latter means that the overall timeout is inherently proportional to the size of the message.
SMTPクライアントはタイムアウトメカニズムを提供しなければなりません (MUST)。メールトランザクション全体をどうにかして計時しようとするのではなく、コマンドごとのタイムアウトを使用しなければなりません (MUST)。タイムアウトは、できればSMTPコードを再コンパイルすることなく、簡単に再設定できるべきです (SHOULD)。これを実装するために、各SMTPコマンドおよびデータ転送の各バッファに対してタイマーが設定されます。後者は、全体のタイムアウトが本質的にメッセージのサイズに比例することを意味します。
Based on extensive experience with busy mail-relay hosts, the minimum per-command timeout values SHOULD be as follows:
ビジーなメール中継ホストでの広範な経験に基づき、コマンドごとの最小タイムアウト値は以下のとおりであるべきです (SHOULD):
Initial 220 Message: 5 minutes An SMTP client process needs to distinguish between a failed TCP connection and a delay in receiving the initial 220 greeting message. Many SMTP servers accept a TCP connection but delay delivery of the 220 message until their system load permits more mail to be processed.
初期220メッセージ:5分SMTPクライアントプロセスは、失敗したTCP接続と最初の220グリーティングメッセージの受信の遅延を区別する必要があります。多くのSMTPサーバーは、TCP接続を受け入れますが、システムロードにより多くのメールを処理できるようになるまで、220メッセージの配信を遅らせます。
MAIL Command: 5 minutes
メールコマンド:5分
RCPT Command: 5 minutes A longer timeout is required if processing of mailing lists and aliases is not deferred until after the message was accepted.
RCPTコマンド:5分メーリングリストとエイリアスの処理がメッセージが受け入れるまで延期されない場合、5分長いタイムアウトが必要です。
DATA Initiation: 2 minutes This is while awaiting the "354 Start Input" reply to a DATA command.
データ開始:2分は、データコマンドへの「354 Start入力」返信を待っているときです。
Data Block: 3 minutes This is while awaiting the completion of each TCP SEND call transmitting a chunk of data.
データブロック:3分これは、各TCP送信コールの完了を待っているときに、データのチャンクを送信します。
DATA Termination: 10 minutes. This is while awaiting the "250 OK" reply. When the receiver gets the final period terminating the message data, it typically performs processing to deliver the message to a user mailbox. A spurious timeout at this point would be very wasteful and would typically result in delivery of multiple copies of the message, since it has been successfully sent and the server has accepted responsibility for delivery. See section 6.1 for additional discussion.
データ終了:10分。これは、「250 OK」の返信を待っている間です。受信者がメッセージデータを終了する最終期間を取得すると、通常、処理を実行してメッセージをユーザーメールボックスに配信します。この時点での偽のタイムアウトは非常に無駄になり、通常、メッセージの複数のコピーが配信され、サーバーが配信の責任を受け入れているため、メッセージの複数のコピーが配信されます。追加の議論については、セクション6.1を参照してください。
An SMTP server SHOULD have a timeout of at least 5 minutes while it is awaiting the next command from the sender.
SMTPサーバーは、送信者からの次のコマンドを待っている間、少なくとも5分間のタイムアウトを持つべきです (SHOULD)。
The common structure of a host SMTP implementation includes user mailboxes, one or more areas for queuing messages in transit, and one or more daemon processes for sending and receiving mail. The exact structure will vary depending on the needs of the users on the host and the number and size of mailing lists supported by the host. We describe several optimizations that have proved helpful, particularly for mailers supporting high traffic levels.
ホストSMTP実装の共通構造には、ユーザーメールボックス、転送中のメッセージをキューイングするための1つ以上の領域、およびメールの送信と受信のための1つ以上のデーモンプロセスが含まれます。正確な構造は、ホストのユーザーのニーズと、ホストがサポートするメーリングリストの数とサイズによって異なります。特にトラフィック量の多いレベルをサポートするメーラーにとって、役立つことが証明されたいくつかの最適化について説明します。
Any queuing strategy MUST include timeouts on all activities on a per-command basis. A queuing strategy MUST NOT send error messages in response to error messages under any circumstances.
いかなるキューイング戦略も、コマンドごとにすべてのアクティビティに対するタイムアウトを含めなければなりません (MUST)。キューイング戦略は、いかなる状況下でもエラーメッセージへの応答としてエラーメッセージを送信してはなりません (MUST NOT)。
The general model for an SMTP client is one or more processes that periodically attempt to transmit outgoing mail. In a typical system, the program that composes a message has some method for requesting immediate attention for a new piece of outgoing mail, while mail that cannot be transmitted immediately MUST be queued and periodically retried by the sender. A mail queue entry will include not only the message itself but also the envelope information.
SMTPクライアントの一般的なモデルは、定期的に送信メールの送信を試みる1つ以上のプロセスです。典型的なシステムでは、メッセージを作成するプログラムには、新しい送信メールに即座の注意を要求する何らかの方法がありますが、即座に送信できないメールは、キューに入れられ、送信者によって定期的に再試行されなければなりません (MUST)。メールキューエントリには、メッセージ自体だけでなくエンベロープ情報も含まれます。
The sender MUST delay retrying a particular destination after one attempt has failed. In general, the retry interval SHOULD be at least 30 minutes; however, more sophisticated and variable strategies will be beneficial when the SMTP client can determine the reason for non-delivery.
送信者は、1回の試行が失敗した後、特定の宛先への再試行を遅らせなければなりません (MUST)。一般に、再試行間隔は少なくとも30分であるべきです (SHOULD)。ただし、SMTPクライアントが不達の理由を判断できる場合は、より洗練された可変の戦略が有益です。
Retries continue until the message is transmitted or the sender gives up; the give-up time generally needs to be at least 4-5 days. The parameters to the retry algorithm MUST be configurable.
再試行は、メッセージが送信されるか送信者があきらめるまで継続します。あきらめるまでの時間は通常、少なくとも4〜5日である必要があります。再試行アルゴリズムへのパラメータは設定可能でなければなりません (MUST)。
A client SHOULD keep a list of hosts it cannot reach and corresponding connection timeouts, rather than just retrying queued mail items.
クライアントは、キューに入れられたメールアイテムを単に再試行するのではなく、到達できないホストのリストと対応する接続タイムアウトを保持すべきです (SHOULD)。
Experience suggests that failures are typically transient (the target system or its connection has crashed), favoring a policy of two connection attempts in the first hour the message is in the queue, and then backing off to one every two or three hours.
経験は、障害が通常一時的であること(ターゲットシステムまたはその接続がクラッシュした)であり、メッセージがキューにある最初の1時間で2つの接続試行のポリシーを支持し、2〜3時間ごとに1つにバックオフすることを示唆しています。
The SMTP client can shorten the queuing delay in cooperation with the SMTP server. For example, if mail is received from a particular address, it is likely that mail queued for that host can now be sent. Application of this principle may, in many cases, eliminate the requirement for an explicit "send queues now" function such as ETRN [9].
SMTPクライアントは、SMTPサーバーとの協力のキューイング遅延を短縮できます。たとえば、特定の住所からメールが受信された場合、そのホストのためにキューに掲載されたメールを送信できる可能性があります。この原則の適用は、多くの場合、ETRN [9]などの明示的な「今すぐ送信」機能の要件を排除する可能性があります。
The strategy may be further modified as a result of multiple addresses per host (see below) to optimize delivery time vs. resource usage.
この戦略は、ホストごとの複数のアドレス(以下を参照)の結果としてさらに変更され、配信時間とリソースの使用を最適化することができます。
An SMTP client may have a large queue of messages for each unavailable destination host. If all of these messages were retried in every retry cycle, there would be excessive Internet overhead and the sending system would be blocked for a long period. Note that an SMTP client can generally determine that a delivery attempt has failed only after a timeout of several minutes and even a one-minute timeout per connection will result in a very large delay if retries are repeated for dozens, or even hundreds, of queued messages to the same host.
SMTPクライアントは、利用できない宛先ホストごとにメッセージの大きなキューを持っている場合があります。これらのメッセージのすべてがすべての再試行サイクルで再試行された場合、過度のインターネットオーバーヘッドがあり、送信システムは長期間ブロックされます。SMTPクライアントは一般に、数分のタイムアウト後にのみ配達の試行が失敗したことを判断できることに注意してください。接続ごとに1分間のタイムアウトでさえ、レトリが繰り返されると非常に大きな遅延が発生します。同じホストへのメッセージ。
At the same time, SMTP clients SHOULD use great care in caching negative responses from servers. In an extreme case, if EHLO is issued multiple times during the same SMTP connection, different answers may be returned by the server. More significantly, 5yz responses to the MAIL command MUST NOT be cached.
同時に、SMTPクライアントはサーバーからの否定的な応答をキャッシュする際に細心の注意を払うべきです (SHOULD)。極端な場合、特定のSMTP接続中に最初の後にEHLOが複数回発行された場合、サーバーによって異なる回答が返されることがあります。さらに重要なことに、MAILコマンドに対する5yz応答をキャッシュしてはなりません (MUST NOT)。
When a mail message is to be delivered to multiple recipients, and the SMTP server to which a copy of the message is to be sent is the same for multiple recipients, then only one copy of the message SHOULD be transmitted. That is, the SMTP client SHOULD use the command sequence: MAIL, RCPT, RCPT,... RCPT, DATA instead of the sequence: MAIL, RCPT, DATA, ..., MAIL, RCPT, DATA. However, if there are very many addresses, a limit on the number of RCPT commands per MAIL command MAY be imposed. Implementation of this efficiency feature is strongly encouraged.
メールメッセージが複数の受信者に配信される予定であり、メッセージのコピーが送信されるSMTPサーバーが複数の受信者で同じである場合、メッセージのコピーは1つだけ送信されるべきです (SHOULD)。すなわち、SMTPクライアントは、MAIL, RCPT, DATA, ..., MAIL, RCPT, DATA というシーケンスではなく、MAIL, RCPT, RCPT,... RCPT, DATA というコマンドシーケンスを使用すべきです (SHOULD)。ただし、アドレスが非常に多数ある場合は、MAILコマンドあたりのRCPTコマンドの数に制限が課されてもよい (MAY)。この効率化機能の実装を強く推奨します。
Similarly, to achieve timely delivery, the SMTP client MAY support multiple concurrent outgoing mail transactions. However, some limit may be appropriate to protect the host from devoting all its resources to mail.
同様に、タイムリーな配信を実現するために、SMTPクライアントは複数の同時発信メールトランザクションをサポートしてもよい (MAY)。ただし、ホストがすべてのリソースをメールに割くことから保護するために、ある程度の制限が適切な場合があります。
The SMTP server SHOULD attempt to keep a pending listen on the SMTP port at all times. This requires the support of multiple incoming TCP connections for SMTP. Some limit MAY be imposed but servers that cannot handle more than one SMTP transaction at a time are not in conformance with the intent of this specification.
SMTPサーバーは、常にSMTPポートで保留中のリスンを維持するよう試みるべきです (SHOULD)。これには、SMTP用の複数の着信TCP接続のサポートが必要です。何らかの制限が課されてもよいですが (MAY)、一度に複数のSMTPトランザクションを処理できないサーバーは、この仕様の意図に適合していません。
As discussed above, when the SMTP server receives mail from a particular host address, it could activate its own SMTP queuing mechanisms to retry any mail pending for that host address.
上記で説明したように、SMTPサーバーが特定のホストアドレスからメールを受信すると、独自のSMTPキューイングメカニズムをアクティブにして、そのホストアドレスの保留中のメールを再試行する可能性があります。
There are several types of notification messages which are required by existing and proposed standards to be sent with a null reverse path, namely non-delivery notifications as discussed in section 3.7, other kinds of Delivery Status Notifications (DSNs) [24], and also Message Disposition Notifications (MDNs) [10]. All of these kinds of messages are notifications about a previous message, and they are sent to the reverse-path of the previous mail message. (If the delivery of such a notification message fails, that usually indicates a problem with the mail system of the host to which the notification message is addressed. For this reason, at some hosts the MTA is set up to forward such failed notification messages to someone who is able to fix problems with the mail system, e.g., via the postmaster alias.)
既存および提案された標準で必要とされるいくつかのタイプの通知メッセージは、null逆パスで送信される必要があります。メッセージ処分通知(MDNS)[10]。これらの種類のメッセージはすべて、以前のメッセージに関する通知であり、以前のメールメッセージの逆パスに送信されます。(このような通知メッセージの配信が失敗した場合、通常、通知メッセージに対処されているホストのメールシステムに問題を示します。このため、一部のホストでは、MTAがそのような失敗した通知メッセージを転送するように設定されます。メールシステムの問題を修正できる人、たとえば、ポストマスターエイリアスを介して。)
All other types of messages (i.e., any message which is not required by a standards-track RFC to have a null reverse-path) SHOULD be sent with with a valid, non-null reverse-path.
他のすべてのタイプのメッセージ(すなわち、標準トラックRFCによってnullリバースパスを持つことが要求されていない任意のメッセージ)は、有効な非nullリバースパスを伴って送信されるべきです (SHOULD)。
Implementors of automated email processors should be careful to make sure that the various kinds of messages with null reverse-path are handled correctly, in particular such systems SHOULD NOT reply to messages with null reverse-path.
自動化された電子メールプロセッサの実装者は、nullリバースパスを持つ様々な種類のメッセージが正しく処理されるように注意を払うべきであり、特にそのようなシステムはnullリバースパスを持つメッセージに応答すべきではありません (SHOULD NOT)。
Once an SMTP client lexically identifies a domain to which mail will be delivered for processing (as described in sections 3.6 and 3.7), a DNS lookup MUST be performed to resolve the domain name [22]. The names are expected to be fully-qualified domain names (FQDNs): mechanisms for inferring FQDNs from partial names or local aliases are outside of this specification and, due to a history of problems, are generally discouraged. The lookup first attempts to locate an MX record associated with the name. If a CNAME record is found instead, the resulting name is processed as if it were the initial name. If no MX records are found, but an A RR is found, the A RR is treated as if it was associated with an implicit MX RR, with a preference of 0, pointing to that host. If one or more MX RRs are found for a given name, SMTP systems MUST NOT utilize any A RRs associated with that name unless they are located using the MX RRs; the "implicit MX" rule above applies only if there are no MX records present. If MX records are present, but none of them are usable, this situation MUST be reported as an error.
SMTPクライアントが(セクション3.6および3.7で説明されているように)処理のためにメールが配信されるドメインを字句的に識別したら、ドメイン名を解決するためにDNSルックアップを実行しなければなりません (MUST) [22]。名前は完全修飾ドメイン名(FQDN)であることが期待されます。部分名やローカルエイリアスからFQDNを推測するメカニズムはこの仕様の範囲外であり、問題の歴史のため、一般に推奨されません。ルックアップは、最初に名前に関連付けられたMXレコードを見つけようとします。代わりにCNAMEレコードが見つかった場合、結果の名前は最初の名前であるかのように処理されます。MXレコードが見つからないが、A RRが見つかった場合、A RRはそのホストを指す優先度0の暗黙のMX RRに関連付けられているかのように扱われます。特定の名前に対して1つ以上のMX RRが見つかった場合、MX RRを使用して見つかったものでない限り、SMTPシステムはその名前に関連付けられたいかなるA RRも利用してはなりません (MUST NOT)。上記の「暗黙のMX」ルールは、MXレコードが存在しない場合にのみ適用されます。MXレコードが存在するものの、そのいずれも使用可能でない場合、この状況はエラーとして報告されなければなりません (MUST)。
When the lookup succeeds, the mapping can result in a list of alternative delivery addresses rather than a single address, because of multiple MX records, multihoming, or both. To provide reliable mail transmission, the SMTP client MUST be able to try (and retry) each of the relevant addresses in this list in order, until a delivery attempt succeeds. However, there MAY also be a configurable limit on the number of alternate addresses that can be tried. In any case, the SMTP client SHOULD try at least two addresses.
ルックアップが成功した場合、複数のMXレコード、マルチホーム、またはその両方のために、マッピングは単一のアドレスではなく代替配信アドレスのリストになる可能性があります。信頼性の高いメール送信を提供するために、SMTPクライアントは、配信の試行が成功するまで、このリスト内の関連する各アドレスを順番に試行(および再試行)できなければなりません (MUST)。ただし、試行できる代替アドレスの数に設定可能な制限があってもよい (MAY)。いずれの場合も、SMTPクライアントは少なくとも2つのアドレスを試みるべきです (SHOULD)。
Two types of information is used to rank the host addresses: multiple MX records, and multihomed hosts.
ホストアドレスのランク付けには、複数のMXレコードとマルチホームホストの2種類の情報が使用されます。
Multiple MX records contain a preference indication that MUST be used in sorting (see below). Lower numbers are more preferred than higher ones. If there are multiple destinations with the same preference and there is no clear reason to favor one (e.g., by recognition of an easily-reached address), then the sender-SMTP MUST randomize them to spread the load across multiple mail exchangers for a specific organization.
複数のMXレコードには、ソートで使用しなければならない (MUST) 優先度の表示が含まれています(以下を参照)。小さな数値は大きな数値よりも優先されます。同じ優先度を持つ複数の宛先があり、一方を優先する明確な理由がない場合(例えば、到達しやすいアドレスの認識など)、送信側SMTPは、特定の組織の複数のメール交換機に負荷を分散させるために、それらをランダム化しなければなりません (MUST)。
The destination host (perhaps taken from the preferred MX record) may be multihomed, in which case the domain name resolver will return a list of alternative IP addresses. It is the responsibility of the domain name resolver interface to have ordered this list by decreasing preference if necessary, and SMTP MUST try them in the order presented.
宛先ホスト(おそらく優先されたMXレコードから取得されたもの)はマルチホームである可能性があり、その場合、ドメイン名リゾルバは代替IPアドレスのリストを返します。必要に応じて優先度の降順でこのリストを並べ替えることはドメイン名リゾルバインターフェースの責任であり、SMTPは提示された順序でそれらを試みなければなりません (MUST)。
Although the capability to try multiple alternative addresses is required, specific installations may want to limit or disable the use of alternative addresses. The question of whether a sender should attempt retries using the different addresses of a multihomed host has been controversial. The main argument for using the multiple addresses is that it maximizes the probability of timely delivery, and indeed sometimes the probability of any delivery; the counter-argument is that it may result in unnecessary resource use. Note that resource use is also strongly determined by the sending strategy discussed in section 4.5.4.1.
複数の代替アドレスを試す機能が必要ですが、特定のインストールでは、代替アドレスの使用を制限または無効にする場合があります。送信者がマルチホームホストの異なるアドレスを使用して再試行を試みるべきかどうかという問題は議論の余地があります。複数のアドレスを使用する主な議論は、タイムリーな配信の確率を最大化すること、そして実際には配信の確率を最大化することです。反論は、不必要なリソースの使用をもたらす可能性があるということです。リソースの使用は、セクション4.5.4.1で説明した送信戦略によっても強く決定されることに注意してください。
If an SMTP server receives a message with a destination for which it is a designated Mail eXchanger, it MAY relay the message (potentially after having rewritten the MAIL FROM and/or RCPT TO addresses), make final delivery of the message, or hand it off using some mechanism outside the SMTP-provided transport environment. Of course, neither of the latter require that the list of MX records be examined further.
SMTPサーバーが指定されたMail eXchangerである宛先を持つメッセージを受信した場合、メッセージを中継してもよいし (MAY)(潜在的にMAIL FROMおよび/またはRCPT TOアドレスを書き換えた後)、メッセージの最終配信を行うか、SMTPが提供するトランスポート環境外の何らかのメカニズムを使用してそれを引き渡してもよいです。もちろん、後者のいずれもMXレコードのリストをさらに調べることを必要としません。
If it determines that it should relay the message without rewriting the address, it MUST sort the MX records to determine candidates for delivery. The records are first ordered by preference, with the lowest-numbered records being most preferred. The relay host MUST then inspect the list for any of the names or addresses by which it might be known in mail transactions. If a matching record is found, all records at that preference level and higher-numbered ones MUST be discarded from consideration. If there are no records left at that point, it is an error condition, and the message MUST be returned as undeliverable. If records do remain, they SHOULD be tried, best preference first, as described above.
アドレスを書き換えずにメッセージを中継すべきであると判断した場合、配信候補を決定するためにMXレコードをソートしなければなりません (MUST)。レコードはまず優先度順に並べられ、最も番号の小さいレコードが最も優先されます。リレーホストは次に、メールトランザクションで自身が認識される可能性のある名前またはアドレスのいずれかがないかリストを検査しなければなりません (MUST)。一致するレコードが見つかった場合、その優先度レベルのすべてのレコードおよびより番号の大きいレコードは、考慮から除外されなければなりません (MUST)。その時点でレコードが残っていない場合はエラー状態であり、メッセージは配信不能として返送されなければなりません (MUST)。レコードが残っている場合は、前述のように、最も優先度の高いものを最初にして試行されるべきです (SHOULD)。
When the receiver-SMTP accepts a piece of mail (by sending a "250 OK" message in response to DATA), it is accepting responsibility for delivering or relaying the message. It must take this responsibility seriously. It MUST NOT lose the message for frivolous reasons, such as because the host later crashes or because of a predictable resource shortage.
受信側SMTPが(DATAに応答して「250 OK」メッセージを送信することにより)メールを受け入れると、メッセージの配信または中継の責任を受け入れることになります。この責任を真剣に受け止めなければなりません。ホストが後でクラッシュしたから、あるいは予測可能なリソース不足のためなど、取るに足らない理由でメッセージを消失させてはなりません (MUST NOT)。
If there is a delivery failure after acceptance of a message, the receiver-SMTP MUST formulate and mail a notification message. This notification MUST be sent using a null ("<>") reverse path in the envelope. The recipient of this notification MUST be the address from the envelope return path (or the Return-Path: line). However, if this address is null ("<>"), the receiver-SMTP MUST NOT send a notification. Obviously, nothing in this section can or should prohibit local decisions (i.e., as part of the same system environment as the receiver-SMTP) to log or otherwise transmit information about null address events locally if that is desired. If the address is an explicit source route, it MUST be stripped down to its final hop.
メッセージを受け入れた後に配信失敗が発生した場合、受信側SMTPは通知メッセージを作成して送信しなければなりません (MUST)。この通知は、エンベロープ内でnull("<>")リバースパスを使用して送信されなければなりません (MUST)。この通知の受信者は、エンベロープのリターンパス(またはReturn-Path: 行)からのアドレスでなければなりません (MUST)。ただし、このアドレスがnull("<>")の場合、受信側SMTPは通知を送信してはなりません (MUST NOT)。明らかに、このセクションのいかなる記述も、望まれる場合にnullアドレスイベントに関する情報をローカルに記録したり送信したりするローカルな決定(すなわち、受信側SMTPと同じシステム環境の一部として)を禁止することはできませんし、禁止すべきでもありません。アドレスが明示的なソースルートである場合、最終ホップまで削除されなければなりません (MUST)。
For example, suppose that an error notification must be sent for a message that arrived with:
たとえば、次のようなメッセージに対してエラー通知を送信する必要があるとします。
MAIL FROM:<@a,@b:user@d>
The notification message MUST be sent using:
通知メッセージは以下を使用して送信しなければなりません (MUST):
RCPT TO:<user@d>
Some delivery failures after the message is accepted by SMTP will be unavoidable. For example, it may be impossible for the receiving SMTP server to validate all the delivery addresses in RCPT command(s) due to a "soft" domain system error, because the target is a mailing list (see earlier discussion of RCPT), or because the server is acting as a relay and has no immediate access to the delivering system.
メッセージがSMTPによって受け入れられた後の一部の配信障害は避けられません。たとえば、ターゲットがメーリングリスト(RCPTの以前の説明を参照)であるため、「ソフト」ドメインシステムエラーのために、受信SMTPサーバーがRCPTコマンドのすべての配信アドレスを検証することは不可能な場合があります。サーバーはリレーとして機能しており、配信システムにすぐにアクセスできないためです。
To avoid receiving duplicate messages as the result of timeouts, a receiver-SMTP MUST seek to minimize the time required to respond to the final <CRLF>.<CRLF> end of data indicator. See RFC 1047 [28] for a discussion of this problem.
タイムアウトの結果として重複メッセージを受信することを避けるために、受信側SMTPは、データ終了指示子である最終的な<CRLF>.<CRLF>への応答に要する時間を最小限に抑えるよう努めなければなりません (MUST)。この問題の議論については、RFC 1047 [28]を参照してください。
Simple counting of the number of "Received:" headers in a message has proven to be an effective, although rarely optimal, method of detecting loops in mail systems. SMTP servers using this technique SHOULD use a large rejection threshold, normally at least 100 Received entries. Whatever mechanisms are used, servers MUST contain provisions for detecting and stopping trivial loops.
メッセージ内の「Received:」ヘッダーの数を単純に数えることは、最適であることは稀ですが、メールシステムにおけるループを検出する効果的な方法であることが証明されています。この手法を使用するSMTPサーバーは、通常少なくとも100個のReceivedエントリという大きな拒絶しきい値を使用すべきです (SHOULD)。どのようなメカニズムが使用されるにせよ、サーバーは単純なループを検出して停止するための規定を含まなければなりません (MUST)。
Unfortunately, variations, creative interpretations, and outright violations of Internet mail protocols do occur; some would suggest that they occur quite frequently. The debate as to whether a well-behaved SMTP receiver or relay should reject a malformed message, attempt to pass it on unchanged, or attempt to repair it to increase the odds of successful delivery (or subsequent reply) began almost with the dawn of structured network mail and shows no signs of abating. Advocates of rejection claim that attempted repairs are rarely completely adequate and that rejection of bad messages is the only way to get the offending software repaired. Advocates of "repair" or "deliver no matter what" argue that users prefer that mail go through it if at all possible and that there are significant market pressures in that direction. In practice, these market pressures may be more important to particular vendors than strict conformance to the standards, regardless of the preference of the actual developers.
残念ながら、インターネットメールプロトコルのバリエーション、創造的な解釈、および完全な違反が発生します。いくつかは、それらがかなり頻繁に発生することを示唆しています。行儀の良いSMTPレシーバーまたはリレーが奇形のメッセージを拒否するか、変更されていないことで渡すことを試みるべきか、またはそれを修復しようとするかどうかについての議論は、配信の成功(またはその後の返信)のオッズを増やすためにそれを修復しようとするか、構造化の夜明けから始まりましたネットワークメールと軽減の兆候は表示されません。拒否の支持者は、修理の試みはめったに完全に適切ではなく、悪いメッセージの拒絶が違反ソフトウェアを修復する唯一の方法であると主張しています。「修理」または「配信」の支持者は、ユーザーがそのメールを可能にしている場合、その方向に大きな市場の圧力があると主張していると主張しています。実際には、これらの市場の圧力は、実際の開発者の好みに関係なく、標準に厳密に適合するよりも、特定のベンダーにとってより重要かもしれません。
The problems associated with ill-formed messages were exacerbated by the introduction of the split-UA mail reading protocols [3, 26, 5, 21]. These protocols have encouraged the use of SMTP as a posting protocol, and SMTP servers as relay systems for these client hosts (which are often only intermittently connected to the Internet). Historically, many of those client machines lacked some of the mechanisms and information assumed by SMTP (and indeed, by the mail format protocol [7]). Some could not keep adequate track of time; others had no concept of time zones; still others could not identify their own names or addresses; and, of course, none could satisfy the assumptions that underlay RFC 822's conception of authenticated addresses.
不正なメッセージに関連する問題は、Split-UAメールの読み取りプロトコルの導入により悪化しました[3、26、5、21]。これらのプロトコルは、これらのクライアントホストのリレーシステムとしての投稿プロトコルとしてのSMTPの使用を奨励しています(多くの場合、インターネットに断続的に接続されていることが多い)。歴史的に、これらのクライアントマシンの多くには、SMTPが想定したメカニズムと情報の一部がありませんでした(実際、メール形式のプロトコル[7])。時間を十分に追跡できなかった人もいました。他の人にはタイムゾーンの概念がありませんでした。さらに他の人は自分の名前や住所を特定できませんでした。そして、もちろん、RFC 822の認証されたアドレスの概念を引き下げるという仮定を満たすことはできませんでした。
In response to these weak SMTP clients, many SMTP systems now complete messages that are delivered to them in incomplete or incorrect form. This strategy is generally considered appropriate when the server can identify or authenticate the client, and there are prior agreements between them. By contrast, there is at best great concern about fixes applied by a relay or delivery SMTP server that has little or no knowledge of the user or client machine.
これらの弱いSMTPクライアントに応えて、多くのSMTPシステムは、不完全または誤った形式で配信されるメッセージを完成させました。この戦略は一般に、サーバーがクライアントを識別または認証できる場合に適切であると考えられ、それらの間に事前の合意があります。対照的に、ユーザーまたはクライアントマシンの知識がほとんどまたはまったくないリレーまたは配信SMTPサーバーによって適用される修正については、せいぜい大きな懸念があります。
The following changes to a message being processed MAY be applied when necessary by an originating SMTP server, or one used as the target of SMTP as an initial posting protocol:
処理中のメッセージに対する以下の変更は、発信元のSMTPサーバー、または最初の投稿プロトコルとしてのSMTPのターゲットとして使用されるSMTPサーバーによって、必要に応じて適用されてもよい (MAY):
- Addition of a message-id field when none appears
- 何も表示されないときにメッセージ-IDフィールドの追加
- Addition of a date, time or time zone when none appears
- 何も表示されないときの日付、時刻、またはタイムゾーンの追加
- Correction of addresses to proper FQDN format
- 適切なFQDN形式に対するアドレスの修正
The less information the server has about the client, the less likely these changes are to be correct and the more caution and conservatism should be applied when considering whether or not to perform fixes and how. These changes MUST NOT be applied by an SMTP server that provides an intermediate relay function.
サーバーがクライアントについて持つ情報が少ないほど、これらの変更が正しい可能性は低くなり、修正を実行するかどうか、およびその方法を検討する際に、より慎重さと保守性を適用すべきです。これらの変更は、中間リレー機能を提供するSMTPサーバーによって適用されてはなりません (MUST NOT)。
In all cases, properly-operating clients supplying correct information are preferred to corrections by the SMTP server. In all cases, documentation of actions performed by the servers (in trace fields and/or header comments) is strongly encouraged.
すべての場合において、正しい情報を提供する適切に操作するクライアントは、SMTPサーバーによる修正よりも優先されます。すべての場合において、サーバーによって実行されるアクションのドキュメント(トレースフィールドおよび/またはヘッダーコメント)が強く奨励されています。
SMTP mail is inherently insecure in that it is feasible for even fairly casual users to negotiate directly with receiving and relaying SMTP servers and create messages that will trick a naive recipient into believing that they came from somewhere else. Constructing such a message so that the "spoofed" behavior cannot be detected by an expert is somewhat more difficult, but not sufficiently so as to be a deterrent to someone who is determined and knowledgeable. Consequently, as knowledge of Internet mail increases, so does the knowledge that SMTP mail inherently cannot be authenticated, or integrity checks provided, at the transport level. Real mail security lies only in end-to-end methods involving the message bodies, such as those which use digital signatures (see [14] and, e.g., PGP [4] or S/MIME [31]).
SMTPメールは、かなりカジュアルなユーザーでさえSMTPサーバーの受信と中継と直接ネゴシエートし、素朴な受信者が他の場所から来たと信じるメッセージを作成するメッセージを作成することが実行可能であるという点で、本質的に不安定です。専門家によって「スプーフィングされた」動作を検出できないようにそのようなメッセージを構築することはやや難しいが、決定され、知識が豊富な人にとっては抑止力ではないようには十分ではない。その結果、インターネットメールの知識が増加するにつれて、SMTPメールを本質的に認証することができないという知識、または輸送レベルで提供された整合性チェックも増加します。実際のメールセキュリティは、デジタル署名を使用するものなど、メッセージ本文を含むエンドツーエンドの方法にのみあります([14]、たとえば、PGP [4]またはS/MIME [31]を参照)。
Various protocol extensions and configuration options that provide authentication at the transport level (e.g., from an SMTP client to an SMTP server) improve somewhat on the traditional situation described above. However, unless they are accompanied by careful handoffs of responsibility in a carefully-designed trust environment, they remain inherently weaker than end-to-end mechanisms which use digitally signed messages rather than depending on the integrity of the transport system.
輸送レベルで認証を提供するさまざまなプロトコル拡張および構成オプション(たとえば、SMTPクライアントからSMTPサーバーまで)は、上記の従来の状況で多少向上します。ただし、慎重に設計された信頼環境での責任の慎重なハンドオフを伴わない限り、輸送システムの整合性に依存するのではなく、デジタル署名されたメッセージを使用するエンドツーエンドのメカニズムよりも本質的に弱いままです。
Efforts to make it more difficult for users to set envelope return path and header "From" fields to point to valid addresses other than their own are largely misguided: they frustrate legitimate applications in which mail is sent by one user on behalf of another or in which error (or normal) replies should be directed to a special address. (Systems that provide convenient ways for users to alter these fields on a per-message basis should attempt to establish a primary and permanent mailbox address for the user so that Sender fields within the message data can be generated sensibly.)
ユーザーが「フィールド」から「フィールド」から「エンベロープリターンパス」とヘッダーを設定することをより困難にするための努力は、自分のもの以外の有効なアドレスを指すようにします。どのエラー(または通常)応答を特別なアドレスに送信する必要があります。(ユーザーがこれらのフィールドを1人あたりベースで変更する便利な方法を提供するシステムは、メッセージデータ内の送信者フィールドを賢明に生成できるように、ユーザーのプライマリおよび永続的なメールボックスアドレスを確立しようとする必要があります。)
This specification does not further address the authentication issues associated with SMTP other than to advocate that useful functionality not be disabled in the hope of providing some small margin of protection against an ignorant user who is trying to fake mail.
この仕様では、SMTPに関連する認証の問題にさらに対処しません。これは、メールを偽造しようとしている無知なユーザーに対してわずかな保護マージンを提供することを期待して、有用な機能が無効にされないことを提唱すること以外に、さらに対処するものではありません。
Addresses that do not appear in the message headers may appear in the RCPT commands to an SMTP server for a number of reasons. The two most common involve the use of a mailing address as a "list exploder" (a single address that resolves into multiple addresses) and the appearance of "blind copies". Especially when more than one RCPT command is present, and in order to avoid defeating some of the purpose of these mechanisms, SMTP clients and servers SHOULD NOT copy the full set of RCPT command arguments into the headers, either as part of trace headers or as informational or private-extension headers. Since this rule is often violated in practice, and cannot be enforced, sending SMTP systems that are aware of "bcc" use MAY find it helpful to send each blind copy as a separate message transaction containing only a single RCPT command.
メッセージヘッダーに表示されないアドレスが、多くの理由でSMTPサーバーへのRCPTコマンドに現れることがあります。最も一般的な2つは、「リスト展開」(複数のアドレスに解決される単一のアドレス)としてのメールアドレスの使用と、「ブラインドコピー(BCC)」の出現です。特に複数のRCPTコマンドが存在する場合、およびこれらのメカニズムの目的の一部を無効にすることを避けるために、SMTPクライアントおよびサーバーは、トレースヘッダーの一部としても、情報ヘッダーやプライベート拡張ヘッダーとしても、RCPTコマンド引数の完全なセットをヘッダーにコピーすべきではありません (SHOULD NOT)。この規則は実際には頻繁に違反され、強制できないため、「bcc」の使用を認識している送信側SMTPシステムは、各ブラインドコピーを単一のRCPTコマンドのみを含む別々のメッセージトランザクションとして送信することが有益であると気付くかもしれません (MAY)。
There is no inherent relationship between either "reverse" (from MAIL, SAML, etc., commands) or "forward" (RCPT) addresses in the SMTP transaction ("envelope") and the addresses in the headers. Receiving systems SHOULD NOT attempt to deduce such relationships and use them to alter the headers of the message for delivery. The popular "Apparently-to" header is a violation of this principle as well as a common source of unintended information disclosure and SHOULD NOT be used.
SMTPトランザクション(「エンベロープ」)内の「リバース」(MAIL、SAMLなどのコマンドから)または「フォワード」(RCPT)アドレスのいずれかと、ヘッダー内のアドレスとの間には本質的な関係はありません。受信システムは、そのような関係を推測しようとしたり、それらを使用して配信のためにメッセージのヘッダーを変更したりすべきではありません (SHOULD NOT)。よく知られている「Apparently-to」ヘッダーは、この原則の違反であるとともに意図しない情報開示の一般的な原因でもあり、使用すべきではありません (SHOULD NOT)。
As discussed in section 3.5, individual sites may want to disable either or both of VRFY or EXPN for security reasons. As a corollary to the above, implementations that permit this MUST NOT appear to have verified addresses that are not, in fact, verified. If a site disables these commands for security reasons, the SMTP server MUST return a 252 response, rather than a code that could be confused with successful or unsuccessful verification.
セクション3.5で論じたように、個々のサイトはセキュリティ上の理由からVRFYまたはEXPNのいずれかまたは両方を無効にしたい場合があります。上記の系として、これを許可する実装は、実際には検証されていないアドレスを検証したように見せかけてはなりません (MUST NOT)。サイトがセキュリティ上の理由でこれらのコマンドを無効にする場合、SMTPサーバーは、検証の成功または失敗と混同される可能性のあるコードではなく、252応答を返さなければなりません (MUST)。
Returning a 250 reply code with the address listed in the VRFY command after having checked it only for syntax violates this rule. Of course, an implementation that "supports" VRFY by always returning 550 whether or not the address is valid is equally not in conformance.
vrfyコマンドにリストされているアドレスを使用して250回の返信コードを返すと、構文のみがこのルールに違反していることのみを確認しました。もちろん、アドレスが有効であるかどうかは常に550を返すことにより、VRFYを「サポート」する実装は、同様に適合ではありません。
Within the last few years, the contents of mailing lists have become popular as an address information source for so-called "spammers." The use of EXPN to "harvest" addresses has increased as list administrators have installed protections against inappropriate uses of the lists themselves. Implementations SHOULD still provide support for EXPN, but sites SHOULD carefully evaluate the tradeoffs. As authentication mechanisms are introduced into SMTP, some sites may choose to make EXPN available only to authenticated requestors.
ここ数年、メーリングリストのコンテンツは、いわゆる「スパマー」のアドレス情報源として人気を集めています。リスト管理者がリスト自体の不適切な使用に対する保護を導入するにつれて、アドレスを「収集」するためのEXPNの使用が増加しました。実装は依然としてEXPNのサポートを提供すべきですが (SHOULD)、サイトはトレードオフを慎重に評価すべきです (SHOULD)。認証メカニズムがSMTPに導入されるにつれて、一部のサイトは認証された要求者に対してのみEXPNを利用可能にすることを選択するかもしれません。
There has been an ongoing debate about the tradeoffs between the debugging advantages of announcing server type and version (and, sometimes, even server domain name) in the greeting response or in response to the HELP command and the disadvantages of exposing information that might be useful in a potential hostile attack. The utility of the debugging information is beyond doubt. Those who argue for making it available point out that it is far better to actually secure an SMTP server rather than hope that trying to conceal known vulnerabilities by hiding the server's precise identity will provide more protection. Sites are encouraged to evaluate the tradeoff with that issue in mind; implementations are strongly encouraged to minimally provide for making type and version information available in some way to other network hosts.
グリーティング応答でサーバーの種類とバージョン(および時にはサーバードメイン名さえ)を発表することのデバッグの利点と、ヘルプコマンドと有用な公開情報の公開の欠点との間のトレードオフについて継続的に議論がありました。潜在的な敵対的な攻撃で。デバッグ情報の有用性は疑いの余地がありません。それを利用できると主張する人は、サーバーの正確なアイデンティティを隠すことで既知の脆弱性を隠そうとすることを望むよりも、SMTPサーバーを実際に保護する方がはるかに良いと指摘します。サイトは、その問題を念頭に置いてトレードオフを評価することをお勧めします。実装は、他のネットワークホストに何らかの方法でタイプとバージョンの情報を利用できるようにするために最小限に供給することを強くお勧めします。
In some circumstances, such as when mail originates from within a LAN whose hosts are not directly on the public Internet, trace ("Received") fields produced in conformance with this specification may disclose host names and similar information that would not normally be available. This ordinarily does not pose a problem, but sites with special concerns about name disclosure should be aware of it. Also, the optional FOR clause should be supplied with caution or not at all when multiple recipients are involved lest it inadvertently disclose the identities of "blind copy" recipients to others.
状況によっては、ホストがパブリックインターネット上に直接ないLAN内からメールが発信される場合など、この仕様に準拠して生成されたトレース(「受信」)フィールドは、通常は利用できないホスト名と同様の情報を開示する可能性があります。これは通常問題を引き起こすことはありませんが、名前の開示について特別な懸念を抱えるサイトはそれを認識する必要があります。また、複数の受信者が「ブラインドコピー」受信者のアイデンティティを他の人に誤って開示しないように、複数の受信者が関与している場合、句のオプションは慎重に提供されるか、まったく慎重に提供される必要があります。
As discussed in section 3.4, use of the 251 or 551 reply codes to identify the replacement address associated with a mailbox may inadvertently disclose sensitive information. Sites that are concerned about those issues should ensure that they select and configure servers appropriately.
セクション3.4で説明したように、251または551の返信コードを使用して、メールボックスに関連付けられた交換アドレスを識別することで、誤って機密情報を開示する場合があります。これらの問題を懸念しているサイトは、サーバーを適切に選択および構成することを保証する必要があります。
It is a well-established principle that an SMTP server may refuse to accept mail for any operational or technical reason that makes sense to the site providing the server. However, cooperation among sites and installations makes the Internet possible. If sites take excessive advantage of the right to reject traffic, the ubiquity of email availability (one of the strengths of the Internet) will be threatened; considerable care should be taken and balance maintained if a site decides to be selective about the traffic it will accept and process.
これは、SMTPサーバーが、サーバーを提供するサイトにとって理にかなっている、運用上または技術的な理由でメールを受け入れることを拒否する可能性があるということは確立された原則です。ただし、サイトやインストール間の協力により、インターネットが可能になります。サイトがトラフィックを拒否する権利を過度に利益を得ると、電子メールの可用性(インターネットの強みの1つ)の遍在性が脅かされます。サイトが受け入れて処理するトラフィックについて選択的であることを決定した場合、かなりの注意を払い、バランスをとる必要があります。
In recent years, use of the relay function through arbitrary sites has been used as part of hostile efforts to hide the actual origins of mail. Some sites have decided to limit the use of the relay function to known or identifiable sources, and implementations SHOULD provide the capability to perform this type of filtering. When mail is rejected for these or other policy reasons, a 550 code SHOULD be used in response to EHLO, MAIL, or RCPT as appropriate.
近年、任意のサイトを介したリレー機能の使用は、メールの実際の送信元を隠す悪意ある試みの一環として使用されてきました。一部のサイトでは、リレー機能の使用を既知または識別可能な送信元に制限することを決定しており、実装はこのタイプのフィルタリングを実行する機能を提供すべきです (SHOULD)。これらまたは他のポリシー上の理由でメールが拒否された場合、必要に応じてEHLO、MAIL、またはRCPTに応答して550コードが使用されるべきです (SHOULD)。
IANA will maintain three registries in support of this specification. The first consists of SMTP service extensions with the associated keywords, and, as needed, parameters and verbs. As specified in section 2.2.2, no entry may be made in this registry that starts in an "X". Entries may be made only for service extensions (and associated keywords, parameters, or verbs) that are defined in standards-track or experimental RFCs specifically approved by the IESG for this purpose.
IANAは、この仕様をサポートするために3つのレジストリを維持します。最初は、関連するキーワードを備えたSMTPサービス拡張機能、および必要に応じてパラメーターと動詞で構成されています。セクション2.2.2で指定されているように、「x」で始まるこのレジストリでは、エントリを作成することはできません。エントリは、この目的のためにIESGによって特別に承認された標準トラックまたは実験RFCで定義されるサービス拡張(および関連するキーワード、パラメーター、または動詞)に対してのみ作成できます。
The second registry consists of "tags" that identify forms of domain literals other than those for IPv4 addresses (specified in RFC 821 and in this document) and IPv6 addresses (specified in this document). Additional literal types require standardization before being used; none are anticipated at this time.
2番目のレジストリは、IPv4アドレス(RFC 821およびこのドキュメントで指定)およびIPv6アドレス(このドキュメントで指定)のフォーム以外のドメインリテラルのフォームを識別する「タグ」で構成されています。追加のリテラルタイプは、使用する前に標準化が必要です。現時点では予想されていません。
The third, established by RFC 821 and renewed by this specification, is a registry of link and protocol identifiers to be used with the "via" and "with" subclauses of the time stamp ("Received: header") described in section 4.4. Link and protocol identifiers in addition to those specified in this document may be registered only by standardization or by way of an RFC-documented, IESG-approved, Experimental protocol extension.
RFC 821によって確立され、この仕様によって更新された3番目は、セクション4.4で説明されているタイムスタンプ(「受信:ヘッダー」)の「via」および「 "サブクローウスで使用されるリンクおよびプロトコル識別子のレジストリです。このドキュメントで指定されているものに加えて、リンクおよびプロトコル識別子は、標準化またはRFCが文書化されたIESGが承認した実験的プロトコル拡張によってのみ登録できます。
[1] American National Standards Institute (formerly United States of America Standards Institute), X3.4, 1968, "USA Code for Information Interchange". ANSI X3.4-1968 has been replaced by newer versions with slight modifications, but the 1968 version remains definitive for the Internet.
[1] American National Standards Institute(旧米国標準研究所)、X3.4、1968、「情報交換のための米国コード」。ANSI X3.4-1968は、わずかな変更で新しいバージョンに置き換えられましたが、1968年のバージョンはインターネットにとって決定的なままです。
[2] Braden, R., "Requirements for Internet hosts - application and support", STD 3, RFC 1123, October 1989.
[2] Braden, R.、「インターネットホストの要件 - アプリケーションとサポート」、STD 3、RFC 1123、1989年10月。
[3] Butler, M., Chase, D., Goldberger, J., Postel, J. and J. Reynolds, "Post Office Protocol - version 2", RFC 937, February 1985.
[3] Butler, M., Chase, D., Goldberger, J., Postel, J. and J. Reynolds、「郵便局プロトコル - バージョン2」、RFC 937、1985年2月。
[4] Callas, J., Donnerhacke, L., Finney, H. and R. Thayer, "OpenPGP Message Format", RFC 2440, November 1998.
[4] Callas, J., Donnerhacke, L., Finney, H. and R. Thayer、「OpenPGPメッセージ形式」、RFC 2440、1998年11月。
[5] Crispin, M., "Interactive Mail Access Protocol - Version 2", RFC 1176, August 1990.
[5] Crispin, M.、「インタラクティブメールアクセスプロトコル - バージョン2」、RFC 1176、1990年8月。
[6] Crispin, M., "Internet Message Access Protocol - Version 4", RFC 2060, December 1996.
[6] Crispin, M.、「インターネットメッセージアクセスプロトコル - バージョン4」、RFC 2060、1996年12月。
[7] Crocker, D., "Standard for the Format of ARPA Internet Text Messages", RFC 822, August 1982.
[7] Crocker, D.、「ARPAインターネットテキストメッセージの形式の標準」、RFC 822、1982年8月。
[8] Crocker, D. and P. Overell, Eds., "Augmented BNF for Syntax Specifications: ABNF", RFC 2234, November 1997.
[8] Crocker, D. and P. Overell, Eds.、「構文仕様のためのBNFの増強:ABNF」、RFC 2234、1997年11月。
[9] De Winter, J., "SMTP Service Extension for Remote Message Queue Starting", RFC 1985, August 1996.
[9] De Winter, J.、「リモートメッセージキューの開始のためのSMTPサービス拡張機能」、RFC 1985、1996年8月。
[10] Fajman, R., "An Extensible Message Format for Message Disposition Notifications", RFC 2298, March 1998.
[10] Fajman, R.、「メッセージ処分通知のための拡張可能なメッセージ形式」、RFC 2298、1998年3月。
[11] Freed, N, "Behavior of and Requirements for Internet Firewalls", RFC 2979, October 2000.
[11] Freed, N、「インターネットファイアウォールの行動と要件」、RFC 2979、2000年10月。
[12] Freed, N. and N. Borenstein, "Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies", RFC 2045, December 1996.
[12] Freed, N. and N. Borenstein、「多目的インターネットメールエクステンション(MIME)パート1:インターネットメッセージボディの形式」、RFC 2045、1996年12月。
[13] Freed, N., "SMTP Service Extension for Command Pipelining", RFC 2920, September 2000.
[13] Freed, N.、「コマンドパイプラインのSMTPサービス拡張」、RFC 2920、2000年9月。
[14] Galvin, J., Murphy, S., Crocker, S. and N. Freed, "Security Multiparts for MIME: Multipart/Signed and Multipart/Encrypted", RFC 1847, October 1995.
[14] Galvin, J., Murphy, S., Crocker, S. and N. Freed、「Mimeのセキュリティマルチパート:Multipart/Signed and MultiPart/暗号化」、RFC 1847、1995年10月。
[15] Gellens, R. and J. Klensin, "Message Submission", RFC 2476, December 1998.
[15] Gellens, R. and J. Klensin、「Message Submission」、RFC 2476、1998年12月。
[16] Kille, S., "Mapping between X.400 and RFC822/MIME", RFC 2156, January 1998.
[16] Kille, S.、「X.400とRFC822/MIMEの間のマッピング」、RFC 2156、1998年1月。
[17] Hinden, R and S. Deering, Eds. "IP Version 6 Addressing Architecture", RFC 2373, July 1998.
[17] Hinden, R and S. Deering, Eds、「IPバージョン6アドレス指定アーキテクチャ」、RFC 2373、1998年7月。
[18] Klensin, J., Freed, N. and K. Moore, "SMTP Service Extension for Message Size Declaration", STD 10, RFC 1870, November 1995.
[18] Klensin, J., Freed, N. and K. Moore、「メッセージサイズ宣言のSMTPサービス拡張」、STD 10、RFC 1870、1995年11月。
[19] Klensin, J., Freed, N., Rose, M., Stefferud, E. and D. Crocker, "SMTP Service Extensions", STD 10, RFC 1869, November 1995.
[19] Klensin, J., Freed, N., Rose, M., Stefferud, E. and D. Crocker、「SMTP Service Extensions」、STD 10、RFC 1869、1995年11月。
[20] Klensin, J., Freed, N., Rose, M., Stefferud, E. and D. Crocker, "SMTP Service Extension for 8bit-MIMEtransport", RFC 1652, July 1994.
[20] Klensin, J., Freed, N., Rose, M., Stefferud, E. and D. Crocker、「8bit-MimetransportのSMTPサービス拡張」、RFC 1652、1994年7月。
[21] Lambert, M., "PCMAIL: A distributed mail system for personal computers", RFC 1056, July 1988.
[21] Lambert, M.、「PCMail:パーソナルコンピューター用の分散郵便システム」、RFC 1056、1988年7月。
[22] Mockapetris, P., "Domain names - implementation and specification", STD 13, RFC 1035, November 1987.
[22] Mockapetris, P.、「ドメイン名 - 実装と仕様」、STD 13、RFC 1035、1987年11月。
Mockapetris, P., "Domain names - concepts and facilities", STD 13, RFC 1034, November 1987.
Mockapetris、P。、「ドメイン名 - 概念と施設」、STD 13、RFC 1034、1987年11月。
[23] Moore, K., "MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text", RFC 2047, December 1996.
[23] Moore, K.、「MIME(多目的インターネットメール拡張)パート3:ASSASCIIテキストのメッセージヘッダー拡張機能」、RFC 2047、1996年12月。
[24] Moore, K., "SMTP Service Extension for Delivery Status Notifications", RFC 1891, January 1996.
[24] Moore, K.、「配信ステータス通知のSMTPサービス拡張」、RFC 1891、1996年1月。
[25] Moore, K., and G. Vaudreuil, "An Extensible Message Format for Delivery Status Notifications", RFC 1894, January 1996.
[25] Moore, K., and G. Vaudreuil、「配信ステータス通知のための拡張可能なメッセージ形式」、RFC 1894、1996年1月。
[26] Myers, J. and M. Rose, "Post Office Protocol - Version 3", STD 53, RFC 1939, May 1996.
[26] Myers, J. and M. Rose、「郵便局プロトコル - バージョン3」、STD 53、RFC 1939、1996年5月。
[27] Partridge, C., "Mail routing and the domain system", RFC 974, January 1986.
[27] Partridge, C.、「メールルーティングとドメインシステム」、RFC 974、1986年1月。
[28] Partridge, C., "Duplicate messages and SMTP", RFC 1047, February 1988.
[28] Partridge, C.、「複製メッセージとSMTP」、RFC 1047、1988年2月。
[29] Postel, J., ed., "Transmission Control Protocol - DARPA Internet Program Protocol Specification", STD 7, RFC 793, September 1981.
[29] Postel、J.、ed。、「トランスミッションコントロールプロトコル-DARPAインターネットプログラムプロトコル仕様」、STD 7、RFC 793、1981年9月。
[30] Postel, J., "Simple Mail Transfer Protocol", RFC 821, August 1982.
[30] Postel, J.、「Simple Mail Transfer Protocol」、RFC 821、1982年8月。
[31] Ramsdell, B., Ed., "S/MIME Version 3 Message Specification", RFC 2633, June 1999.
[31] Ramsdell, B., Ed.、「S/MIMEバージョン3メッセージ仕様」、RFC 2633、1999年6月。
[32] Resnick, P., Ed., "Internet Message Format", RFC 2822, April 2001.
[32] Resnick, P., Ed.、「インターネットメッセージ形式」、RFC 2822、2001年4月。
[33] Vaudreuil, G., "SMTP Service Extensions for Transmission of Large and Binary MIME Messages", RFC 1830, August 1995.
[33] Vaudreuil, G.、「大型およびバイナリMIMEメッセージの送信用SMTPサービス拡張」、RFC 1830、1995年8月。
[34] Vaudreuil, G., "Enhanced Mail System Status Codes", RFC 1893, January 1996.
[34] Vaudreuil, G.、「Enhanced Mail System Status Codes」、RFC 1893、1996年1月。
John C. Klensin AT&T Laboratories 99 Bedford St Boston, MA 02111 USA
ジョンC.クレンシンAT&Tラボラトリー99ベッドフォードセントボストン、マサチューセッツ州02111 USA
Phone: 617-574-3076 EMail: klensin@research.att.com
電話:617-574-3076メール:klensin@research.att.com
Many people worked long and hard on the many iterations of this document. There was wide-ranging debate in the IETF DRUMS Working Group, both on its mailing list and in face to face discussions, about many technical issues and the role of a revised standard for Internet mail transport, and many contributors helped form the wording in this specification. The hundreds of participants in the many discussions since RFC 821 was produced are too numerous to mention, but they all helped this document become what it is.
多くの人々は、このドキュメントの多くの反復に長く一生懸命働いていました。IETFドラムワーキンググループでは、メーリングリストと対面討論の両方で、多くの技術的な問題とインターネットメールトランスポートの改訂された基準の役割について、幅広い議論があり、多くの貢献者がこれの言葉遣いを形成するのに役立ちました。仕様。RFC 821以来の多くの議論の何百人もの参加者は、言及するには多すぎますが、彼らはすべてこの文書がそれが何であるかになるのを助けました。
APPENDICES
付録
The TCP connection supports the transmission of 8-bit bytes. The SMTP data is 7-bit ASCII characters. Each character is transmitted as an 8-bit byte with the high-order bit cleared to zero. Service extensions may modify this rule to permit transmission of full 8-bit data bytes as part of the message body, but not in SMTP commands or responses.
TCP接続は、8ビットバイトの送信をサポートします。SMTPデータは7ビットASCII文字です。各文字は、高次ビットがゼロにクリアされた8ビットバイトとして送信されます。サービス拡張機能は、このルールを変更して、メッセージ本文の一部として完全な8ビットデータバイトの送信を許可する場合がありますが、SMTPコマンドや応答ではありません。
Some systems use RFC 822 headers (only) in a mail submission protocol, or otherwise generate SMTP commands from RFC 822 headers when such a message is handed to an MTA from a UA. While the MTA-UA protocol is a private matter, not covered by any Internet Standard, there are problems with this approach. For example, there have been repeated problems with proper handling of "bcc" copies and redistribution lists when information that conceptually belongs to a mail envelopes is not separated early in processing from header information (and kept separate).
一部のシステムは、メール送信プロトコルでRFC 822ヘッダーを使用します(のみ)、またはそのようなメッセージがUAからMTAに渡された場合、RFC 822ヘッダーからSMTPコマンドを生成します。MTA-UAプロトコルは個人的な問題であり、インターネット標準ではカバーされていませんが、このアプローチには問題があります。たとえば、概念的にメールエンベロープに属している情報がヘッダー情報から早期に分離されていない(および別々に保たれる)場合、「BCC」コピーと再配布リストの適切な取り扱いに繰り返し問題がありました。
It is recommended that the UA provide its initial ("submission client") MTA with an envelope separate from the message itself. However, if the envelope is not supplied, SMTP commands SHOULD be generated as follows:
UAは、最初の(「提出クライアント」)MTAに対して、メッセージ自体とは別のエンベロープを提供することが推奨されます。ただし、エンベロープが提供されない場合、SMTPコマンドは次のように生成されるべきです (SHOULD):
1. Each recipient address from a TO, CC, or BCC header field SHOULD be copied to a RCPT command (generating multiple message copies if that is required for queuing or delivery). This includes any addresses listed in a RFC 822 "group". Any BCC fields SHOULD then be removed from the headers. Once this process is completed, the remaining headers SHOULD be checked to verify that at least one To:, Cc:, or Bcc: header remains. If none do, then a bcc: header with no additional information SHOULD be inserted as specified in [32].
1. TO、CC、またはBCCヘッダーフィールドからの各受信者アドレスは、RCPTコマンドにコピーされるべきです (SHOULD)(キューイングまたは配信に必要な場合は、複数のメッセージコピーを生成します)。これには、RFC 822の「group」にリストされているすべてのアドレスが含まれます。その後、すべてのBCCフィールドはヘッダーから削除されるべきです (SHOULD)。このプロセスが完了したら、少なくとも1つのTo:、Cc:、またはBcc: ヘッダーが残っていることを確認するために、残りのヘッダーをチェックすべきです (SHOULD)。何も残っていない場合は、[32]で指定されているように、追加情報のないbcc: ヘッダーが挿入されるべきです (SHOULD)。
2. The return address in the MAIL command SHOULD, if possible, be derived from the system's identity for the submitting (local) user, and the "From:" header field otherwise. If there is a system identity available, it SHOULD also be copied to the Sender header field if it is different from the address in the From header field. (Any Sender field that was already there SHOULD be removed.) Systems may provide a way for submitters to override the envelope return address, but may want to restrict its use to privileged users. This will not prevent mail forgery, but may lessen its incidence; see section 7.1.
2. MAILコマンド内のリターンアドレスは、可能であれば提出(ローカル)ユーザーに対するシステムの識別情報から導出されるべきであり (SHOULD)、そうでない場合は「From:」ヘッダーフィールドから導出されるべきです。利用可能なシステム識別情報がある場合、それがFromヘッダーフィールドのアドレスと異なっていれば、Senderヘッダーフィールドにもコピーされるべきです (SHOULD)。(既に存在していたSenderフィールドは削除されるべきです (SHOULD)。)システムは提出者がエンベロープのリターンアドレスを上書きする方法を提供してもよいですが、その使用を特権ユーザーに制限したい場合があります。これはメールの偽造を防ぐものではありませんが、その発生率を減らす可能性があります。セクション7.1を参照してください。
When an MTA is being used in this way, it bears responsibility for ensuring that the message being transmitted is valid. The mechanisms for checking that validity, and for handling (or returning) messages that are not valid at the time of arrival, are part of the MUA-MTA interface and not covered by this specification.
この方法でMTAが使用されている場合、送信されるメッセージが有効であることを確認する責任があります。その有効性をチェックし、到着時に有効でないメッセージを処理(または返信する)メカニズムは、MUA-MTAインターフェイスの一部であり、この仕様ではカバーされていません。
A submission protocol based on Standard RFC 822 information alone MUST NOT be used to gateway a message from a foreign (non-SMTP) mail system into an SMTP environment. Additional information to construct an envelope must come from some source in the other environment, whether supplemental headers or the foreign system's envelope.
異種(非SMTP)メールシステムからSMTP環境へとメッセージをゲートウェイするために、標準RFC 822情報のみに基づく送信プロトコルを使用してはなりません (MUST NOT)。エンベロープを構築するための追加情報は、補足ヘッダーであれ異種システムのエンベロープであれ、他の環境内の何らかのソースから取得しなければなりません。
Attempts to gateway messages using only their header "to" and "cc" fields have repeatedly caused mail loops and other behavior adverse to the proper functioning of the Internet mail environment. These problems have been especially common when the message originates from an Internet mailing list and is distributed into the foreign environment using envelope information. When these messages are then processed by a header-only remailer, loops back to the Internet environment (and the mailing list) are almost inevitable.
ヘッダーの「to」と「cc」フィールドのみを使用して、インターネットメール環境の適切な機能に有害なメールループやその他の動作を繰り返し引き起こしたため、メッセージをゲートウェイしようとします。これらの問題は、メッセージがインターネットメーリングリストから発信され、エンベロープ情報を使用して外国環境に配布される場合に特に一般的です。これらのメッセージがヘッダーのみのremailerによって処理されると、インターネット環境(およびメーリングリスト)にループを戻すことはほとんど避けられません。
Historically, the <reverse-path> was a reverse source routing list of hosts and a source mailbox. The first host in the <reverse-path> SHOULD be the host sending the MAIL command. Similarly, the <forward-path> may be a source routing lists of hosts and a destination mailbox. However, in general, the <forward-path> SHOULD contain only a mailbox and domain name, relying on the domain name system to supply routing information if required. The use of source routes is deprecated; while servers MUST be prepared to receive and handle them as discussed in section 3.3 and F.2, clients SHOULD NOT transmit them and this section was included only to provide context.
歴史的に、<reverse-path>はホストのリバースソースルーティングリストと送信元メールボックスでした。<reverse-path>内の最初のホストは、MAILコマンドを送信するホストであるべきです (SHOULD)。同様に、<forward-path>はホストのソースルーティングリストと宛先メールボックスである場合があります。ただし一般的には、<forward-path>にはメールボックスとドメイン名のみを含めるべきであり (SHOULD)、必要に応じてルーティング情報を提供するためにドメインネームシステムに依存します。ソースルートの使用は非推奨です。セクション3.3およびF.2で説明されているように、サーバーはそれを受信して処理する準備をしておかなければなりませんが (MUST)、クライアントはそれらを送信すべきではなく (SHOULD NOT)、このセクションはコンテキストを提供するためだけに含まれました。
For relay purposes, the forward-path may be a source route of the form "@ONE,@TWO:JOE@THREE", where ONE, TWO, and THREE MUST BE fully-qualified domain names. This form is used to emphasize the distinction between an address and a route. The mailbox is an absolute address, and the route is information about how to get there. The two concepts should not be confused.
リレーの目的では、forward-pathは「@ONE,@TWO:JOE@THREE」という形式のソースルートである場合があり、ここでONE、TWO、およびTHREEは完全修飾ドメイン名でなければなりません (MUST)。この形式は、アドレスとルートの区別を強調するために使用されます。メールボックスは絶対アドレスであり、ルートはそこに到達する方法に関する情報です。この2つの概念を混同すべきではありません。
If source routes are used, RFC 821 and the text below should be consulted for the mechanisms for constructing and updating the forward- and reverse-paths.
ソースルートを使用する場合、RFC 821と以下のテキストは、前方および逆パスを構築および更新するためのメカニズムについて参照する必要があります。
The SMTP server transforms the command arguments by moving its own identifier (its domain name or that of any domain for which it is acting as a mail exchanger), if it appears, from the forward-path to the beginning of the reverse-path.
SMTPサーバーは、コマンドの引数を、独自の識別子(そのドメイン名またはメール交換器として機能しているドメインのドメイン名)を移動し、逆パスからリバースパスの先頭に表示されます。
Notice that the forward-path and reverse-path appear in the SMTP commands and replies, but not necessarily in the message. That is, there is no need for these paths and especially this syntax to appear in the "To:" , "From:", "CC:", etc. fields of the message header. Conversely, SMTP servers MUST NOT derive final message delivery information from message header fields.
forward-pathおよびreverse-pathはSMTPコマンドおよび応答に現れますが、必ずしもメッセージ内に現れるわけではないことに注意してください。すなわち、これらのパス、特にこの構文がメッセージヘッダーの「To:」、「From:」、「CC:」などのフィールドに現れる必要はありません。逆に、SMTPサーバーはメッセージヘッダーフィールドから最終的なメッセージ配信情報を導き出してはなりません (MUST NOT)。
When the list of hosts is present, it is a "reverse" source route and indicates that the mail was relayed through each host on the list (the first host in the list was the most recent relay). This list is used as a source route to return non-delivery notices to the sender. As each relay host adds itself to the beginning of the list, it MUST use its name as known in the transport environment to which it is relaying the mail rather than that of the transport environment from which the mail came (if they are different).
ホストのリストが存在する場合、それは「リバース」ソースルートであり、メールがリスト内の各ホストを介してリレーされたことを示します(リスト内の最初のホストは最新のリレーでした)。このリストは、送信者に不達通知を返送するためのソースルートとして使用されます。各リレーホストは自身をリストの先頭に追加するため、(それらが異なる場合)メールが届いたトランスポート環境の名前ではなく、メールをリレーするトランスポート環境において認識されている自身の名前を使用しなければなりません (MUST)。
This section presents complete scenarios of several types of SMTP sessions. In the examples, "C:" indicates what is said by the SMTP client, and "S:" indicates what is said by the SMTP server.
このセクションでは、いくつかのタイプのSMTPセッションの完全なシナリオを紹介します。例では、「C:」はSMTPクライアントが言っていることを示し、「S:」はSMTPサーバーで言われていることを示します。
This SMTP example shows mail sent by Smith at host bar.com, to Jones, Green, and Brown at host foo.com. Here we assume that host bar.com contacts host foo.com directly. The mail is accepted for Jones and Brown. Green does not have a mailbox at host foo.com.
このSMTPの例は、SmithがHost Bar.comで送信したメールを、Host foo.comでJones、Green、およびBrownに送信しています。ここでは、ホストbar.comはホストfoo.comに直接連絡すると想定しています。メールはジョーンズとブラウンに受け入れられています。Greenには、ホストfoo.comにメールボックスがありません。
S: 220 foo.com Simple Mail Transfer Service Ready
C: EHLO bar.com
S: 250-foo.com greets bar.com
S: 250-8BITMIME
S: 250-SIZE
S: 250-DSN
S: 250 HELP
C: MAIL FROM:<Smith@bar.com>
S: 250 OK
C: RCPT TO:<Jones@foo.com>
S: 250 OK
C: RCPT TO:<Green@foo.com>
S: 550 No such user here
C: RCPT TO:<Brown@foo.com>
S: 250 OK
C: DATA
S: 354 Start mail input; end with <CRLF>.<CRLF>
C: Blah blah blah...
C: ...etc. etc. etc.
C: .
S: 250 OK
C: QUIT
S: 221 foo.com Service closing transmission channel
S: 220 foo.com Simple Mail Transfer Service Ready
C: EHLO bar.com
S: 250-foo.com greets bar.com
S: 250-8BITMIME
S: 250-SIZE
S: 250-DSN
S: 250 HELP
C: MAIL FROM:<Smith@bar.com>
S: 250 OK
C: RCPT TO:<Jones@foo.com>
S: 250 OK
C: RCPT TO:<Green@foo.com>
S: 550 No such user here
C: RSET
S: 250 OK
C: QUIT
S: 221 foo.com Service closing transmission channel
Step 1 -- Source Host to Relay Host
ステップ1-リレーホストのソースホスト
S: 220 foo.com Simple Mail Transfer Service Ready
C: EHLO bar.com
S: 250-foo.com greets bar.com
S: 250-8BITMIME
S: 250-SIZE
S: 250-DSN
S: 250 HELP
C: MAIL FROM:<JQP@bar.com>
S: 250 OK
C: RCPT TO:<@foo.com:Jones@XYZ.COM>
S: 250 OK
C: DATA
S: 354 Start mail input; end with <CRLF>.<CRLF>
C: Date: Thu, 21 May 1998 05:33:29 -0700
C: From: John Q. Public <JQP@bar.com>
C: Subject: The Next Meeting of the Board
C: To: Jones@xyz.com
C:
C: Bill:
C: The next meeting of the board of directors will be
C: on Tuesday.
C: John.
C: .
S: 250 OK
C: QUIT
S: 221 foo.com Service closing transmission channel
Step 2 -- Relay Host to Destination Host
ステップ2-宛先ホストにホストを中継します
S: 220 xyz.com Simple Mail Transfer Service Ready
C: EHLO foo.com
S: 250 xyz.com is on the air
C: MAIL FROM:<@foo.com:JQP@bar.com>
S: 250 OK
C: RCPT TO:<Jones@XYZ.COM>
S: 250 OK
C: DATA
S: 354 Start mail input; end with <CRLF>.<CRLF>
C: Received: from bar.com by foo.com ; Thu, 21 May 1998
C: 05:33:29 -0700
C: Date: Thu, 21 May 1998 05:33:22 -0700
C: From: John Q. Public <JQP@bar.com>
C: Subject: The Next Meeting of the Board
C: To: Jones@xyz.com
C:
C: Bill:
C: The next meeting of the board of directors will be
C: on Tuesday.
C: John.
C: .
S: 250 OK
C: QUIT
S: 221 foo.com Service closing transmission channel
S: 220 foo.com Simple Mail Transfer Service Ready
C: EHLO bar.com
S: 250-foo.com greets bar.com
S: 250-8BITMIME
S: 250-SIZE
S: 250-DSN
S: 250-VRFY
S: 250 HELP
C: VRFY Crispin
S: 250 Mark Crispin <Admin.MRC@foo.com>
C: SEND FROM:<EAK@bar.com>
S: 250 OK
C: RCPT TO:<Admin.MRC@foo.com>
S: 250 OK
C: DATA
S: 354 Start mail input; end with <CRLF>.<CRLF>
C: Blah blah blah...
C: ...etc. etc. etc.
C: .
S: 250 OK
C: QUIT
S: 221 foo.com Service closing transmission channel
In general, gateways between the Internet and other mail systems SHOULD attempt to preserve any layering semantics across the boundaries between the two mail systems involved. Gateway-translation approaches that attempt to take shortcuts by mapping, (such as envelope information from one system to the message headers or body of another) have generally proven to be inadequate in important ways. Systems translating between environments that do not support both envelopes and headers and Internet mail must be written with the understanding that some information loss is almost inevitable.
一般に、インターネットと他のメールシステムとの間のゲートウェイは、関係する2つのメールシステム間の境界を越えてレイヤ化セマンティクスを保持するよう努めるべきです (SHOULD)。マッピングによってショートカットを取ろうとするゲートウェイ変換アプローチ(あるシステムからのエンベロープ情報を別のシステムのメッセージヘッダーや本文にマッピングするなど)は、一般に重要な点で不十分であることが証明されています。エンベロープとヘッダーの両方をサポートしていない環境とインターネットメールとの間で変換を行うシステムは、何らかの情報損失がほぼ避けられないという理解のもとで書かれなければなりません。
A few features of RFC 821 have proven to be problematic and SHOULD NOT be used in Internet mail.
RFC 821のいくつかの機能には問題があることが証明されており、インターネットメールでは使用すべきではありません (SHOULD NOT)。
This command, described in RFC 821, raises important security issues since, in the absence of strong authentication of the host requesting that the client and server switch roles, it can easily be used to divert mail from its correct destination. Its use is deprecated; SMTP systems SHOULD NOT use it unless the server can authenticate the client.
RFC 821で説明されているこのコマンドは、クライアントとサーバーが役割を切り替えることを要求しているホストの強力な認証がない場合、メールを正しい宛先から逸らすために容易に使用できるため、重要なセキュリティ上の問題を提起します。その使用は非推奨です。サーバーがクライアントを認証できる場合を除き、SMTPシステムはこれを使用すべきではありません (SHOULD NOT)。
RFC 821 utilized the concept of explicit source routing to get mail from one host to another via a series of relays. The requirement to utilize source routes in regular mail traffic was eliminated by the introduction of the domain name system "MX" record and the last significant justification for them was eliminated by the introduction, in RFC 1123, of a clear requirement that addresses following an "@" must all be fully-qualified domain names. Consequently, the only remaining justifications for the use of source routes are support for very old SMTP clients or MUAs and in mail system debugging. They can, however, still be useful in the latter circumstance and for routing mail around serious, but temporary, problems such as problems with the relevant DNS records.
RFC 821は、一連のリレーを介して、あるホストから別のホストにメールを取得するために、明示的なソースルーティングの概念を利用しました。通常のメールトラフィックでソースルートを利用するための要件は、ドメイン名システム「MX」レコードの導入によって排除され、それらの最後の重要な正当化は、RFC 1123の導入によって排除されました。@"すべてが完全に資格のあるドメイン名でなければなりません。その結果、ソースルートの使用に関する残りの唯一の正当化は、非常に古いSMTPクライアントまたはMUASおよび郵便システムのデバッグのサポートです。ただし、後者の状況でも、関連するDNSレコードの問題など、深刻で一時的な問題をめぐるメールをルーティングするためにも、それらは依然として役立ちます。
SMTP servers MUST continue to accept source route syntax as specified in the main body of this document and in RFC 1123. They MAY, if necessary, ignore the routes and utilize only the target domain in the address. If they do utilize the source route, the message MUST be sent to the first domain shown in the address. In particular, a server MUST NOT guess at shortcuts within the source route.
SMTPサーバーは、このドキュメントの本文およびRFC 1123で指定されているソースルート構文を受け入れ続けなければなりません (MUST)。必要に応じて、ルートを無視してアドレス内のターゲットドメインのみを利用してもよい (MAY)。ソースルートを利用する場合、メッセージはアドレスに示されている最初のドメインに送信されなければなりません (MUST)。特に、サーバーはソースルート内のショートカットを推測してはなりません (MUST NOT)。
Clients SHOULD NOT utilize explicit source routing except under unusual circumstances, such as debugging or potentially relaying around firewall or mail system configuration errors.
クライアントは、デバッグや、ファイアウォールまたはメールシステムの設定エラーを回避してリレーする可能性がある場合など、異常な状況下を除き、明示的なソースルーティングを利用すべきではありません (SHOULD NOT)。
As discussed in sections 3.1 and 4.1.1, EHLO is strongly preferred to HELO when the server will accept the former. Servers must continue to accept and process HELO in order to support older clients.
セクション3.1および4.1.1で説明したように、サーバーが前者を受け入れる場合、EHLOはHELOよりも強く好まれています。サーバーは、古いクライアントをサポートするために、HELOを受け入れ、処理し続ける必要があります。
RFC 821 provided for specifying an Internet address as a decimal integer host number prefixed by a pound sign, "#". In practice, that form has been obsolete since the introduction of TCP/IP. It is deprecated and MUST NOT be used.
RFC 821は、インターネットアドレスをシャープ記号「#」が前に付いた10進整数ホスト番号として指定することを規定していました。実際には、その形式はTCP/IPの導入以来廃止されています。これは非推奨であり、使用してはなりません (MUST NOT)。
When dates are inserted into messages by SMTP clients or servers (e.g., in trace fields), four-digit years MUST BE used. Two-digit years are deprecated; three-digit years were never permitted in the Internet mail system.
SMTPクライアントまたはサーバーによってメッセージに日付が挿入される場合(例: トレースフィールド内)、4桁の年が使用されなければなりません (MUST)。2桁の年は非推奨です。インターネットメールシステムでは3桁の年は決して許可されませんでした。
In addition to specifying a mechanism for delivering messages to user's mailboxes, RFC 821 provided additional, optional, commands to deliver messages directly to the user's terminal screen. These commands (SEND, SAML, SOML) were rarely implemented, and changes in workstation technology and the introduction of other protocols may have rendered them obsolete even where they are implemented.
ユーザーのメールボックスにメッセージを配信するメカニズムを指定することに加えて、RFC 821は、ユーザーの端末画面に直接メッセージを配信するための追加のオプションのコマンドを提供しました。 これらのコマンド(SEND、SAML、SOML)はめったに実装されず、ワークステーションテクノロジーの変更と他のプロトコルの導入により、実装された場所でさえ時代遅れになった可能性があります。
Clients SHOULD NOT provide SEND, SAML, or SOML as services. Servers MAY implement them. If they are implemented by servers, the implementation model specified in RFC 821 MUST be used and the command names MUST be published in the response to the EHLO command.
クライアントはSEND、SAML、またはSOMLをサービスとして提供すべきではありません (SHOULD NOT)。サーバーはそれらを実装してもよいです (MAY)。これらがサーバーによって実装されている場合、RFC 821で指定された実装モデルが使用されなければならず (MUST)、コマンド名はEHLOコマンドへの応答で公開されなければなりません (MUST)。
Copyright (C) The Internet Society (2001). All Rights Reserved.
Copyright(c)The Internet Society(2001)。無断転載を禁じます。
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English.
このドキュメントと翻訳は他の人にコピーされて提供される場合があります。また、それについてコメントまたは説明する派生作品、またはその実装を支援することは、いかなる種類の制限なしに、準備、コピー、公開、および部分的に配布される場合があります。、上記の著作権通知とこの段落がそのようなすべてのコピーとデリバティブ作品に含まれている場合。ただし、このドキュメント自体は、インターネット協会や他のインターネット組織への著作権通知や参照を削除するなど、いかなる方法でも変更できない場合があります。インターネット標準プロセスに従うか、英語以外の言語に翻訳するために必要な場合に従う必要があります。
The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.
上記の限られた許可は永続的であり、インターネット社会またはその後継者または譲受人によって取り消されることはありません。
This document and the information contained herein is provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
この文書と本書に含まれる情報は、「現状」に基づいて提供されており、インターネット社会とインターネットエンジニアリングタスクフォースは、ここにある情報の使用が行われないという保証を含むがこれらに限定されないすべての保証を否認します。特定の目的に対する商品性または適合性の権利または黙示的な保証を侵害します。
Acknowledgement
謝辞
Funding for the RFC Editor function is currently provided by the Internet Society.
RFCエディター機能の資金は現在、インターネット協会によって提供されています。