rfc-3834

Recommendations for Automatic Responses to Electronic Mail

K. Moore
date2004-08 streamIETF wgnon working group statusPROPOSED STANDARD pages22 canonicalhttps://www.rfc-editor.org/rfc/rfc3834 doi10.17487/RFC3834 errataview
This memo makes recommendations for software that automatically responds to incoming electronic mail messages, including "out of the office" or "vacation" response generators, mail filtering software, email-based information services, and other automatic responders. The purpose of these recommendations is to discourage undesirable behavior which is caused or aggravated by such software, to encourage uniform behavior (where appropriate) among automatic mail responders, and to clear up some sources of confusion among implementors of automatic email responders. [STANDARDS-TRACK]

updated by

Extracted elements (30)

design-rationale §9

The Auto-Submitted field concept originates from X.400/MHS (X.420); RFC 2156 defined an 'Autosubmitted' field for X.400-to-Internet gatewaying. The RFC 3834 definition is a simplification of a prior Internet-draft by Jacob Palme that passed Last Call but stalled on non-substantial objections.

email

design-rationale §4

The Return-Path address is the only message header field that can be expected, as a matter of protocol, to be suitable for automatic responses not anticipated by the sender. The From and Reply-To fields are used in too many context-dependent ways for reliable automatic use.

email

design-rationale §3.1.5

The Subject field prefix 'Auto:' is specified only as an aid to humans and SHOULD NOT be machine-parsed as proof of automatic submission, because mail user agents may translate it just as they translate 'Re:' — making it an unreliable programmatic signal.

email

interoperability-note §3.2.1

DSNs (RFC 3464) and MDNs (RFC 3798) are separate specifications governing their own generation and format; this document does not alter those specifications. Responses that fit DSN or MDN criteria should be generated per those specs rather than per RFC 3834.

email

interoperability-note §5.2

Some widely-deployed SMTP implementations incorrectly use the 'auto-generated' keyword to label non-delivery reports; these should be changed to use 'auto-replied' instead, per the semantics defined in this document.

email

normative-requirement §2 MUST NOT

An automatic responder MUST NOT blindly send a response for every message received. Reasons include loop prevention, avoiding spam amplification, and thwarting denial-of-service attacks.

email, security

normative-requirement §4 SHOULD

Automatic responses SHOULD be sent to the Return-Path field if generated after delivery; if generated prior to delivery, they SHOULD be sent to the reverse-path from the SMTP MAIL FROM command.

email

normative-requirement §2 SHOULD NOT

Automatic responses SHOULD NOT be issued in response to any message which contains an Auto-Submitted header field with any value other than 'no', to prevent response loops between automatic responders.

email

normative-requirement §3.1.1 SHOULD

For responses from Service Responders, the From field SHOULD contain an address to reach the human maintainer of the service; for Personal Responders it SHOULD contain the recipient's name and a recognizable address.

email

normative-requirement §3.1.2 MUST

If a reply is expected by the responder, the Reply-To field SHOULD be set to the address at which the reply is expected. Responders which request replies to be sent to other responders MUST prevent mail loops and sorcerer's apprentice mode.

email

normative-requirement §5.2 REQUIRED

New Auto-Submitted extension keywords and optional parameters must be published as RFCs and approved using the IETF Consensus process. Keywords beginning with 'x-' are reserved for experiments and consenting parties.

email, registry, process

normative-requirement §2 SHOULD NOT

Personal and Group absence-notification responders SHOULD NOT be issued unless a valid address for the recipient is explicitly included in a To, Cc, Bcc, Resent-To, Resent-Cc, or Resent-Bcc field of the subject message.

email

normative-requirement §2 SHOULD NOT

Personal and Group responses intended to notify the sender of a recipient's temporary absence SHOULD NOT issue the same response to the same sender more than once within a period of several days; a 7-day period is RECOMMENDED as a default.

email

normative-requirement §3.1.1 MUST

Personal Responders MUST allow the From field of a Personal Response to be set by the recipient on whose behalf the responder is acting, to protect privacy (e.g., not exposing login names or server hostnames).

email, privacy

normative-requirement §2 MUST NOT

Responders MUST NOT generate any response for which the destination would be a null address (e.g., SMTP MAIL FROM or Return-Path is <>), since such a response would not be delivered to a useful destination.

email

normative-requirement §2 SHOULD NOT

Service Responders SHOULD NOT return large responses (more than a few kilobytes) without specific knowledge that the request was actually authorized by the party associated with the response destination address, to avoid being used for denial-of-service attacks.

email, security

normative-requirement §5.2 MUST NOT

The auto-generated keyword MUST NOT be used on manually generated messages, on messages issued in direct response to another message, or to label DSNs or MDNs.

email

normative-requirement §5.2 MUST NOT

The auto-replied keyword MUST NOT be used on manually generated messages or on messages generated by automatic periodic processes that are not responses to other messages.

email

normative-requirement §3.1.7 SHOULD

The Auto-Submitted field with a value of 'auto-replied' SHOULD be included in the message header of any automatic response, to facilitate automatic filtering of such messages.

email

normative-requirement §4 SHOULD NOT

The From field and the Sender field SHOULD NOT be used as the destination for automatic responses, as these fields are used in varied ways and may list multiple addresses.

email

normative-requirement §4 SHOULD NOT

The Reply-To field SHOULD NOT be used as the destination for automatic responses from Personal or Group Responders, because it may target mailing lists or multiple recipients and the responder lacks context to interpret sender intent.

email

normative-requirement §3.3 RECOMMENDED

The SMTP MAIL FROM address SHOULD be chosen to make mail loops unlikely; a MAIL FROM of <> MAY be used. The NOTIFY=NEVER parameter of the RCPT command is RECOMMENDED if the SMTP server supports DSN.

email

normative-requirement §3.1.3 SHOULD

The To header field SHOULD indicate the recipient of the response, and there SHOULD be only one recipient of any automatic response, to minimize the potential for sorcerer's apprentice mode and denial-of-service attacks.

email, security

protocol-element §5

The Auto-Submitted header field indicates that a message was originated by an automatic process rather than a human. Its defined keyword values are 'no', 'auto-generated', and 'auto-replied', with optional parameters and extension keywords also permitted.

email

protocol-element §1.1

Three classes of automatic responders are defined: Service Responders (permanently associated with a service address), Personal Responders (acting on behalf of a single recipient), and Group Responders (acting for a significant set of recipients). Appropriate behavior differs per class.

email

registry §8

Section 8 notes that if new Auto-Submitted keywords or optional parameters are approved through IETF Consensus in the future, it may be appropriate for IANA to create a registry for such keywords or parameters. No registry is formally created by this document.

email, registry

security-consideration §6

Automatic responders can be exploited to relay harmful content (worms, viruses, spam), mount denial-of-service attacks by flooding mailboxes, construct mail loops, enumerate valid addresses, and disclose personal information about recipients including their mailbox usage patterns.

email, security

security-consideration §6 SHOULD NOT

Automatically-generated responses SHOULD NOT include personal information about the recipient that is not already known to the sender, such as personal telephone numbers. User interfaces for configuring response text SHOULD warn that the text will be exposed to the entire Internet.

email, security, privacy

security-consideration §6

Because email addresses are easily forged, attacks remain possible for any responder that does not limit access and require authentication. The recommended mitigations (rate limiting, brief plain-text responses, Auto-Submitted marking) limit damage but cannot entirely prevent attacks.

email, security

wire-format §5.1

The Auto-Submitted field is defined using ABNF: 'Auto-Submitted:' followed by one of 'no', 'auto-generated', 'auto-replied', or an extension token, optionally followed by a semicolon-delimited parameter list. At most one Auto-Submitted field may appear in a message header.

email