Guide · SMTP and headers
Auto-Submitted email header: auto-generated vs. auto-replied
An out-of-office message and a scheduled account report both come from software. What differs is what started them. The out-of-office message is a direct response to incoming mail, so it is marked Auto-Submitted: auto-replied. The scheduled report answers nothing, so it is marked Auto-Submitted: auto-generated. Both are reasons not to send another automatic reply, but they may belong to different parts of your system.
- Reading time
- 5 min
What Auto-Submitted tells you
Auto-Submitted is a header field that says whether, and how, an automatic process produced a message (RFC 3834, section 5). A vacation responder or a shared support inbox can use it to avoid answering mail that a machine sent, and you can use it to route system notices away from human correspondence. A message may contain at most one Auto-Submitted field (section 5.1).
The field does not show who controls the From address, whether the sender may contact you, or whether the message is safe. The sending software writes it like any other header field. Treat it as what the message says about its origin, not as proof.
The values at a glance
| Value | Meaning | What to do |
|---|---|---|
auto-generated | Made by an automatic, often periodic, process, not in direct response to another message (RFC 3834, section 5.2). Example: a weekly usage report. | Route it as a notice or report. Send no automatic acknowledgment. |
auto-replied | An automatic response to another message (section 5.2). Example: a vacation notice. | Send no automatic reply. If useful, note that the sender may be away. |
no | Declares that a person wrote it (section 5.2). The IANA registry and RFC 5436 (section 6.3) call it the equivalent of no field at all. | Auto-Submitted gives no reason to hold back; your other reply rules still apply. |
auto-notified | A notification sent by a Sieve mail filter script (RFC 5436, section 2.7.1). A registered extension, not another name for auto-replied. | Send no automatic reply to it. |
| Any other keyword | A possible extension (RFC 3834, section 5.1). | Keep it visible in logs and send no automatic reply: RFC 3834 covers every value other than no. |
| No field | No declaration. Some automatic senders leave it out. | Do not label the message human because the field is missing. |
These choices are about automatic replies only. They need not hide a message from an inbox, stop a person from answering where that makes sense, or stop a parser that processes reports.
A bounce needs its own parser
RFC 3834 (section 5.2) allows auto-replied on delivery status notifications (DSNs) and message disposition notifications (MDNs), and forbids auto-generated on them. But auto-replied alone cannot tell you whether a message is a vacation notice, a delivery failure or some other automatic response, and a sender can leave the field out.
To learn whether delivery failed, read the structured DSN content and its per-recipient action and status. One report can hold a delay for one recipient and a permanent failure for another; Auto-Submitted carries neither result. If the failure happened before a server accepted the message, the answer may be in the sender's SMTP log instead. For the format, and for when to retry or suppress an address, see bounce processing and DSNs.
Parse keywords and parameters, not three fixed strings
IANA keeps the registry of Auto-Submitted keywords. It lists no, auto-generated and auto-replied from RFC 3834 and auto-notified from RFC 5436. A keyword can be followed by parameters separated by semicolons (RFC 3834, section 5.1). A Sieve notification must include one or both of the parameters owner-email and owner-token (RFC 5436, section 2.7.1); the opaque owner-token lets the script's owner be identified while protecting their privacy. Neither parameter is an invitation to contact the owner.
Three fictional excerpts, from three different messages:
Subject: Weekly account usage
Auto-Submitted: auto-generated
Subject: Away until Tuesday
Auto-Submitted: auto-replied
Subject: Mail rule notification
Auto-Submitted: auto-notified; owner-token=exampleToken01Parse the field as a keyword plus optional parameters. A parser that compares the whole value with three fixed strings would miss the Sieve example, although its keyword is registered. If you see two fields or broken syntax, record the problem and, as a cautious local choice, send no automatic response. The one-field rule does not tell you which of two conflicting values to believe.
Decide whether to send an automatic reply
RFC 3834 (section 2) says automatic responses should not be sent to any message whose Auto-Submitted field has any value other than no, and that a responder must not blindly answer every message it receives. Otherwise two responders can answer each other in a loop. Decide in this order:
- Read the field. Send no automatic reply when it holds any value other than
no. Route delivery reports and other system messages to the right processor instead of back to the sender. - If the field says
noor is missing, apply the rest of your policy. Never reply to a null return path: RFC 3834 (section 2) forbids responses to an address such asMAIL FROM:<>. A personal responder that says you are away or cannot reply should not send the same response to the same sender more than once within several days; 7 days is the recommended default (section 2). Check that the message fits the workflow you meant to answer. - Keep uncertain messages for review. Record why no reply was sent, without exposing raw headers, real addresses or an
owner-tokenin public logs or support examples.
Sieve has the same rule for its own notifications: RFC 5436 (section 2.7) says they should not be triggered by messages with an Auto-Submitted value other than no.
To test your implementation, use four local samples: a periodic report, an out-of-office reply, a Sieve notification with a parameter, and a message without the field. The first three should get no automatic reply; the fourth should go on to your other checks. Test a DSN sample separately, to be sure that switching off automatic acknowledgments does not also switch off bounce processing.
Questions
What is the difference between auto-generated and auto-replied?
auto-generated is for automatic messages that answer nothing, such as scheduled reports. auto-replied is for automatic responses to another message, such as vacation notices (RFC 3834, section 5.2).
Should an autoresponder answer a message with Auto-Submitted: no?
It may, if your other rules allow it. no declares that a person wrote the message, which is the same as having no field.
Does a missing Auto-Submitted field mean a person sent the message?
No. Some automatic senders leave it out. A missing field leaves the question open.
Try it
Check an address with the free email checker, or look up a bounce reply in the bounce code dictionary.
Related
Related guides
- Bounce processing and DSNs explained
- List-ID vs. List-Unsubscribe: identify the newsletter, not the address
- Message-ID vs. SMTP queue ID: what to send support
- SMTP envelope sender vs. From header: which address goes where?
- Transactional vs marketing email
- All guides
Sources
- IETF: RFC 3834, Recommendations for Automatic Responses to Electronic Mail: sections 2 (when to respond), 5.1 (syntax, one field), 5.2 (the values).
- IANA: Auto-Submitted header field keywords.
- IETF: RFC 5436, Sieve Notification Mechanism: mailto: sections 2.7 and 2.7.1 (auto-notified and its parameters), 6.3 (the registration).
How we wrote this: drafted by the email-validation.org team with the help of AI writing tools, from our product documentation and the sources linked in the text.