Preventing duplicate tickets and auto-reply loops
How auto-reply loops and duplicate tickets start, which email headers identify automatic mail, and the rules that make automatic acknowledgements safe.
Auto-reply loops happen when two automatic systems answer each other, for example your help desk's "we have received your request" message and a customer's out-of-office reply. Duplicate tickets happen when the same message reaches the help desk more than once, through two connected addresses, a forwarding rule plus direct delivery, or a re-import. You prevent loops by never sending an automatic reply to automatic mail (identified by headers such as Auto-Submitted, an empty return path or mailing-list headers), by limiting how often any one address gets an automatic reply, and by marking your own automatic mail as automatic. You prevent duplicates by de-duplicating on Message-ID and by giving each message exactly one path into the help desk.
How a loop starts
Example (hypothetical): A customer writes to support@example.com on a Friday evening. The help desk sends an automatic acknowledgement. The customer's mailbox answers that with an out-of-office reply. If the help desk treats the out-of-office reply as a new customer message, it opens a ticket and acknowledges again. The out-of-office system replies again, and the two keep going until someone notices hundreds of tickets on Monday.
That story ignores several recommendations in RFC 3834, the IETF recommendations for automatic email responses:
- responders "MUST NOT blindly send a response for every message received" (section 2);
- they "SHOULD NOT" respond to a message whose
Auto-Submittedfield has any value other thanno(section 2); - notices telling a sender that the recipient cannot read or reply to their mail should not go to the same sender more than once within "a period of several days", with 7 days recommended as the default (section 2);
- the automatic reply itself should carry
Auto-Submitted: auto-repliedso other systems can recognise it (section 5).
The headers that identify automatic mail
| Header or signal | What it means | Defined in |
|---|---|---|
Auto-Submitted: auto-replied |
Sent by an automatic process in direct response to another message (out-of-office, acknowledgement) | RFC 3834, section 5 |
Auto-Submitted: auto-generated |
Sent by an automatic process that is not a reply (alerts, reports, notifications) | RFC 3834, section 5 |
Auto-Submitted: no |
Explicitly human; any other value lets you assume no human sent it | RFC 3834, section 5 |
Empty return path (Return-Path: <>) |
Typical of bounces and other notifications; responders "MUST NOT" reply when the return address is null | RFC 3834, section 2; RFC 3464, section 2 |
Content-Type: multipart/report; report-type=delivery-status |
A bounce (delivery status notification) | RFC 3464, section 2 |
Sender such as MAILER-DAEMON, owner-*, *-request |
Mail system or list administration addresses; responders "MAY" refuse to reply to them | RFC 3834, section 2 |
List-Id and other List-* headers |
The message came through a mailing list | RFC 2919; RFC 3834 section 2 allows ignoring them |
Precedence: bulk, junk or list |
Non-standard marker for bulk or automatic mail; RFC 3834 says its interpretation "varies widely" and recommends no particular behaviour for it | RFC 3834, sections 2 and 3.1.8 |
X-Auto-Response-Suppress |
Microsoft-specific request to suppress certain automatic responses (values such as OOF, AutoReply, All) |
MS-OXCMAIL: Auto Response Suppress |
Not every system sets these headers, so treat them as strong signals, not a complete defence. That is why rate limits matter too.
Rules for a safe automatic acknowledgement
If you send an acknowledgement for new tickets, configure (or confirm with your vendor) the following:
- Do not acknowledge automatic mail. Skip messages with
Auto-Submittedother thanno, an empty return path, amultipart/reportcontent type, list headers, orPrecedence: bulk/junk/list. - Do not acknowledge replies to existing tickets. An acknowledgement is for a new request. A customer's third message on an open ticket does not need another "we got it".
- Rate-limit per address. At most one acknowledgement per sender per period. RFC 3834 recommends 7 days for "I can't read your mail" style notices; for a help desk, a shorter window such as one per address per day is a common compromise (an assumption, not a standard value).
- Mark your acknowledgement as automatic. Include
Auto-Submitted: auto-repliedso well-behaved responders on the other side stay quiet. IncludingIn-Reply-ToandReferencespointing to the customer's message is also recommended (RFC 3834, section 3.1.6). - Say it is automatic in the subject. RFC 3834 suggests the subject briefly indicates an automatic reply, for example starting with
Auto:(section 3.1.5). It also says software should not rely on that prefix; the header is what counts. - Never acknowledge your own addresses. Exclude every address your help desk sends from, so it cannot answer itself.
- Keep it useful. An acknowledgement should tell the customer something: expected response time, a reference, or a help-centre link. If it adds nothing, consider not sending one.
Where duplicate tickets come from
| Cause | How it shows up | Fix |
|---|---|---|
| Customer writes to two connected addresses (e.g. sales@ and support@ in To and Cc) | Two tickets with identical content and the same Message-ID |
De-duplicate on Message-ID across all connected mailboxes |
| Mailbox forwards to the help desk and the help desk also reads the mailbox | Every message appears twice | Choose one path: forwarding or a mailbox connection, not both |
| Alias or group expansion delivers several copies to one mailbox | Duplicates for messages sent to a group address | Point the help desk at one destination for the group |
| Re-import after reconnecting a mailbox | A batch of older messages reappears as new tickets | Confirm how your tool decides what is "new" before reconnecting; if the server's UIDVALIDITY value changes, previously stored IMAP message identifiers no longer apply (RFC 9051, section 2.3.1.1) |
| Automated sender emails support on every event (monitoring alerts, form submissions) | Dozens of near-identical tickets from one address | Route those senders to a separate address or rule; do not auto-acknowledge them |
| Customer resends because they got no answer | Two tickets, different Message-ID, similar subject |
Not a system fault; merge and reply once. Check that your acknowledgement and replies are actually being delivered |
De-duplicating on Message-ID, with care
RFC 5322 requires the Message-ID to be "a globally unique identifier for a message" (section 3.6.4), so the same ID arriving twice almost always means the same message arrived twice. In practice, uniqueness depends on the sending software. Microsoft's message trace documentation notes that the value "is supposed to be unique, but not all email systems strictly follow this requirement" (Microsoft Learn: Message trace). A sensible rule is: same Message-ID and same sender within a short time window means duplicate; otherwise treat it as a new message.
Emergency checklist: a loop is running now
- Switch off the automatic acknowledgement (and any automation that sends email) first. That stops your side of the loop immediately.
- Identify the other party: the sender address and the headers of their automatic message.
- Add a block or exclusion for that address in your acknowledgement rules.
- Bulk-close or merge the tickets the loop created, leaving one with an internal note explaining what happened.
- Fix the rule that allowed it using the checklist above (for example: automatic mail was not excluded, or there was no per-address rate limit).
- Switch the acknowledgement back on and send a test from an address with an out-of-office reply enabled.
SMTP itself has a last-resort loop defence: servers counting Received headers "SHOULD use a large rejection threshold, normally at least 100" (RFC 5321, section 6.3). That catches routing loops between mail servers, not help-desk-to-autoresponder loops, because each automatic reply is a brand-new message. Your help desk rules are the only real protection.
Related reading: how an email becomes a support ticket and why customer replies create new tickets.
How this works in Convoray
- Available in this release The automatic acknowledgement email is optional, so you decide whether new email conversations get one.
- Available in this release Only mail that arrives after you connect the support mailbox becomes conversations; there is no history import.
- Available in this release Automation rules can assign, tag, change status, send an email or call a web address. Review any rule that sends email with the checklist above before switching it on.
- Available in this release Duplicate customers can be merged, and statuses (Open, Pending, Resolved, Locked) help you tidy up after an incident. See assigning conversations and using statuses.
More on the email channel: how email conversations work.
Sources
- RFC 3834: Recommendations for Automatic Responses to Electronic Mail — IETF, when not to respond, frequency limits, Auto-Submitted values, Precedence, subject and reply headers for automatic responses
- RFC 3464: An Extensible Message Format for Delivery Status Notifications — IETF, multipart/report bounce format and null return address
- RFC 2919: List-Id — IETF, mailing-list identification header
- RFC 5322: Internet Message Format — IETF, Message-ID uniqueness (section 3.6.4)
- RFC 5321: Simple Mail Transfer Protocol — IETF, Received-header loop detection threshold (section 6.3)
- RFC 9051: IMAP4rev2 — IETF, UIDs and UIDVALIDITY (section 2.3.1.1)
- MS-OXCMAIL: Auto Response Suppress — Microsoft Learn, X-Auto-Response-Suppress values
- Message trace in the new EAC in Exchange Online — Microsoft Learn, note that Message-ID uniqueness is not always respected (checked 30 November 2026)