ietf-corpus

rfc-822

STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES

D. Crocker
date1982-08 streamLegacy statusINTERNET STANDARD pages49 canonicalhttps://www.rfc-editor.org/rfc/rfc822 doi10.17487/RFC0822 errataview
This document revises the specifications in RFC 733, in order to serve the needs of the larger and more complex ARPA Internet. Some of RFC 733's features failed to gain adequate acceptance. In order to simplify the standard and the software that follows it, these features have been removed. A different addressing scheme is used, to handle the case of internetwork mail; and the concept of re-transmission has been introduced. Obsoletes RFC 733, NIC 41952.

obsoleted by

obsoletes

updated by

also

Extracted elements (40)

design-rationale §4.7.4

Extension-fields are explicitly prohibited from using names beginning with 'X-', reserving that prefix exclusively for user-defined fields. This ensures users have a protected namespace that will never be preempted by formally published extensions.

email

design-rationale §6.2.7

Source routing via the route component of route-addr is discouraged because the choice of transmission route should normally be left to the mail transport service. Source routing is provided only for cases where the sender has special need of path restriction.

email

design-rationale §1.1

The standard separates envelope information (handled by the transport service) from message contents (governed by this spec), and deliberately contains no specification of envelope format. This separation allows the standard to be applied across different mail transport environments.

email

design-rationale §3.4.2

The use of ASCII HT (horizontal tab) characters in message headers, though permitted, is discouraged because there is no network-wide definition of the visual effect of tabs at remote hosts, leading to unpredictable rendering.

email

design-rationale §6.2.3

The use of domain-literals (e.g., [10.0.3.19]) is strongly discouraged. They are permitted only as a temporary means of bypassing system limitations such as incomplete name tables, not as a routine addressing mechanism.

email, ip

interoperability-note §6.2.2

Abbreviated domain specifications are permitted only within a sub-domain when sender and recipient share common right-hand sub-domain components. When messages cross domain boundaries, all addresses must be fully qualified. Mail relays are responsible for expansion but may not find abbreviations in message bodies.

email

interoperability-note §3.4.7

Field-names and most structured-field syntactic units are case-insensitive. The only units requiring case preservation are: text, qtext, dtext, ctext, quoted-pair, and local-part (except that 'Postmaster' must be accepted in any case).

email

interoperability-note §3.4.10

When messages cross heterogeneous network boundaries, the sending gateway must reverse the current network's idiosyncratic transformations (restoring canonical form) and then impose the next network's requirements. This two-step process prevents format corruption across network boundaries.

email

normative-requirement §3.4.3 MUST NOT

Comments must NOT be included during protocol exchanges with mail servers. Comments are retained while the message is subject to interpretation according to this standard, but stripped before passing to mail transport services.

email

normative-requirement §4.7.4 MUST NOT

Extension-fields will never have names beginning with the string 'X-', reserving that prefix as a protected namespace for user-defined fields.

email

normative-requirement §4.4.1 MUST

If the 'From' field is not defaulted to a single authenticated machine address of the actual sender, the 'Sender' field MUST be present. The 'Sender' field MUST be present if it is NOT the same as the 'From' field.

email

normative-requirement §6.2.6 MUST NOT

Recursive specification of groups within groups is not permitted. The group construct allows listing individual mailboxes within the colon-semicolon bracket pair, but nesting groups inside groups is disallowed.

email

normative-requirement §3.1 REQUIRED

The message body MUST occur AFTER the headers. The body is separated from the headers by a null line (a line with nothing preceding the CRLF).

email

normative-requirement §6.3 MUST

The 'Postmaster' reserved address MUST be matched without sensitivity to alphabetic case, so that 'POSTMASTER', 'postmaster', and any mixture must be accepted.

email

normative-requirement §6.3 REQUIRED

The reserved local-part address 'Postmaster' MUST be valid at each site, so that 'Postmaster@domain' is a required valid address routed to the responsible mail administrator.

email

normative-requirement §4.4.4 MUST NOT

The 'Sender' field mailbox should NEVER be used automatically in a recipient's reply message. Replies should go to 'Reply-To' if present, otherwise to 'From'.

email

normative-requirement §6.2.2 MUST

When a message crosses a domain boundary, all addresses must be specified in full format ending with the top-level name-domain in the right-most field. Mail forwarding services are responsible for expanding abbreviated addresses to full form.

email

normative-requirement §3.4.2 SHOULD NOT

When passing text to processes that do not interpret data according to this standard (e.g., mail protocol servers), NO linear-white-space characters should occur between a period or at-sign and a word; exactly ONE SPACE should replace arbitrary whitespace and comment sequences.

email

normative-requirement §3.4.1 REQUIRED

Within quoted-strings, domain-literals, and comments, quoting (backslash preceding the character) is REQUIRED for CR and backslash, and for the characters that delimit the token (e.g., parentheses in comments). Quoting is permitted for any character.

email

privacy-consideration §4.5.3

The BCC mechanism provides a limited form of recipient privacy by omitting BCC addresses from message copies sent to To and CC recipients. However, the headers (including From, Subject) remain in cleartext and visible to all recipients and intermediate relays.

email, privacy

protocol-element §6.2.6

A group address has the form 'phrase : [#mailbox] ;', allowing a named distribution list. Groups may not be nested within groups. An empty group (name:;) serves as a group-distribution indicator without listing members.

email

protocol-element §3.1.2

A header field consists of a field-name (printable ASCII, excluding colon and CTLs), followed by a colon, an optional field-body, and a terminating CRLF. Field-names are case-insensitive. The field-body may be folded across multiple lines.

email

protocol-element §4.1

A message consists of structured header fields followed by an optional body. The minimum required fields are: an origination date (Date:), an originator (From:), and at least one destination address. All other fields are optional.

email

protocol-element §4.5.3

The BCC field contains the identity of additional recipients whose addresses are not disclosed to primary and secondary recipients. Some systems include BCC text only in the author's copy; others include it in copies sent to BCC recipients.

email

protocol-element §4.7.3

The Encrypted field optionally notes that the message body has been encrypted. The first word parameter identifies the encryption software; the optional second word is a key index hint for the recipient.

email, security

protocol-element §4.4

The From field contains the identity of the person(s) who wished the message to be sent. The Sender field contains the authenticated identity of the agent that actually submits the message. Reply-To directs replies to specified mailboxes.

email

protocol-element §4.6.1

The Message-ID field contains a unique identifier in the form '<addr-spec>' that refers to exactly one instantiation of a particular message. Uniqueness is guaranteed by the generating host. Subsequent revisions receive new message identifiers.

email

protocol-element §4.3.2

The Received field is added by each transport service that relays the message, recording the sending host, receiving host, time-of-receipt, physical mechanism (via), mail protocol (with), internal message ID (id), and original destination address (for).

email

protocol-element §4.2

The Resent- prefix on field names (e.g., Resent-From, Resent-To, Resent-Date) indicates forwarded mail. Resent- fields carry the same semantics as their un-prefixed equivalents but represent the forwarder's information and take precedence over the original fields.

email

protocol-element §4.3.1

The Return-Path field is added by the final transport system delivering the message, and is intended to contain definitive information about the address and route back to the message originator.

email

registry §4.7.3

Names of encryption software referenced in the Encrypted field are registered with the Network Information Center, SRI International. Names of extension-fields are similarly registered with NIC.

email, registry

registry §6.2.3

The names of top-level domains and domains under the ARPA Internet are registered with the Network Information Center, SRI International, Menlo Park, California.

email, registry, dns

registry §4.3

The values for 'via' and 'with' parameters in Received fields (indicating physical mechanisms and mail/connection-level protocols) are registered with the Network Information Center, SRI International.

email, registry

security-consideration §4.7.3

Headers must remain unencrypted so that mail transport services may access them. Because names, addresses, and Subject field contents may contain sensitive information, this requirement limits total message privacy.

email, security, privacy

security-consideration §4.4.2

When a computer program generates a message, it is strongly recommended that the human responsible for that program be referenced as part of the Sender field mailbox specification, since programs cannot be held accountable for their behavior.

email, security

wire-format §6.2.3

A domain-literal is encoded as '[' followed by dtext or quoted-pair characters and terminated by ']'. In the ARPA Internet, domain-literals encode 32-bit IPv4 addresses as four decimal octets, e.g., [10.0.3.19].

email, ip

wire-format §6.1

A route-addr is encoded as '<' followed by an optional route ('1#("@" domain) ":"') and an addr-spec, terminated by '>'. Source routing via the route component is discouraged in favor of leaving routing to the mail transport service.

email

wire-format §6.1

An addr-spec is encoded as 'local-part "@" domain', where local-part is one or more dot-separated words and domain is a sequence of dot-separated sub-domains. The local-part is case-preserved and treated as uninterpreted by intermediate mail systems.

email

wire-format §5.1

Date-time is encoded as '[ day "," ] date time', where date is '1*2DIGIT month 2DIGIT' (e.g., '20 Jun 82'), time is 'HH:MM[:SS]', and zone is a named zone (UT, GMT, EST/EDT, etc.), a single military letter, or a signed 4-digit offset (e.g., +0530).

email

wire-format §3.1.1

Long header field-bodies may be folded across multiple lines by inserting a CRLF immediately followed by at least one LWSP-char (SPACE or HTAB) wherever linear-white-space is permitted. Unfolding reverses this by treating CRLF+LWSP-char as equivalent to the LWSP-char alone.

email