Skip to content

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.

Two automatic replies bouncing back and forth in a loop, with a stop sign breaking the cycle before it reaches the support queue

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-Submitted field has any value other than no (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-replied so 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:

  1. Do not acknowledge automatic mail. Skip messages with Auto-Submitted other than no, an empty return path, a multipart/report content type, list headers, or Precedence: bulk/junk/list.
  2. 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".
  3. 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).
  4. Mark your acknowledgement as automatic. Include Auto-Submitted: auto-replied so well-behaved responders on the other side stay quiet. Including In-Reply-To and References pointing to the customer's message is also recommended (RFC 3834, section 3.1.6).
  5. 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.
  6. Never acknowledge your own addresses. Exclude every address your help desk sends from, so it cannot answer itself.
  7. 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

  1. Switch off the automatic acknowledgement (and any automation that sends email) first. That stops your side of the loop immediately.
  2. Identify the other party: the sender address and the headers of their automatic message.
  3. Add a block or exclusion for that address in your acknowledgement rules.
  4. Bulk-close or merge the tickets the loop created, leaving one with an internal note explaining what happened.
  5. 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).
  6. 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

See Convoray with your own questions

We are onboarding a small number of pilot businesses with hands-on setup. Tell us about your support and we will arrange a demo.