This is the incident that produced the first rule in the migration runbook. The ways the app fails silently in normal running are in When Your Jira Mail Handler Works But No Email Arrives. I link to both rather than repeat them.
One ticket on a Jira Service Management Cloud service desk collected several hundred identical comments in about ninety minutes. The helpdesk mailbox was receiving copies of the system's own notifications and feeding them back into the ticket as new comments. Two separate systems were configured to read the same mailbox, and Jira says nothing when that happens.
No customer saw any of it. The ticket had no external participants. I am writing it up because the cause is easy to create during any mailbox migration, the symptoms point away from it, and part of the diagnosis is a method worth reusing. I am also marking the places where my own reasoning is weaker than it first looked, because they are the useful part.
What Happened
I have left out clock times on purpose. The spacing matters more than the hour.
- The incoming mail handler was migrated to Email This Issue (ETI) using Microsoft Graph and OAuth2. The connection test passed.
- Shortly afterwards, a single ticket began accumulating identical comments.
- Comment events were recorded at irregular intervals of between one and twenty-one minutes, over roughly ninety minutes.
- I paused the ETI incoming handler.
- Mail kept arriving in the mailbox for a further period after the pause.
- Then nothing in or out for over seventy minutes, against a longest gap of twenty-one minutes during the event. I treated it as stopped.
By the time I began investigating, the loop had in fact already ended. The helpdesk address had been removed from the built-in email channel earlier, for an unrelated reason: it had been making ETI awkward to get working. What I was watching was the tail of a queue draining, not a loop in progress. The person who removed the address did not know it was also the cause of the flood, and nothing had been written down about why it was removed.
How the Loop Worked
The cycle, once both readers were live on one mailbox:
- A comment is added to the ticket.
- Jira's notification engine notifies the ticket's reporter.
- That notification lands in the helpdesk mailbox.
- The second reader, the built-in email channel, ingests it as a new inbound message.
- It becomes a comment on the ticket, and the cycle repeats from step 2.
One detail made step 2 possible. The reporter on the affected ticket was the helpdesk address itself, so every comment notified the mailbox that was feeding the ticket. That is why a single ticket looped and the rest of the desk did not. It is also still true today, and is on the outstanding list at the end.
Diagnosis: Two Steps, One of Them Weaker Than I First Thought
Step 1: read the raw headers
The looping messages carried:
Precedence: bulk
Auto-Submitted: auto-generated
I took that to mean the mail was Jira's own notification engine, not ETI's outbound sending, and it redirected the investigation away from ETI's configuration and towards what was notifying and what was ingesting. That redirection was right. The reasoning behind it needs a correction, though.
Those two headers say the message was machine-generated. They do not say which system generated it. Jira stamps Auto-Submitted on its own notifications by default, and ETI's Advanced Email Configuration has toggles to add both headers to its outbound mail as well. The two headers that do discriminate are X-JETI-Fingerprint (sent by ETI) and X-JIRA-Fingerprint (sent by Jira), which I cover in the silent-failures post. My notes from the incident record the first pair and not a fingerprint header, so I cannot now say which sender the loop's mail carried.
It does not matter for the conclusion, and that is worth seeing. ETI's Filter out emails sent from Jira toggle rejects a message if either fingerprint header is present. Whichever system sent the looping mail, ETI would have discarded it. So whatever was turning it into comments, it was not ETI. The attribution to Jira's notification engine is probable; the attribution of the ingester to the other reader does not depend on it.
Step 2: look at the shape of the timing
The ticket's History tab showed paired entries from Automation for Jira updating two metric fields on each inbound comment. Those entries were downstream of the problem rather than causing it, but they gave me timestamps, and the timestamps gave me the gaps: between one and twenty-one minutes, irregular.
My first reading was that this is the wrong shape for a live loop. A loop, I reasoned, runs at machine speed, because each comment immediately triggers the next notification, whereas irregular multi-minute gaps look like a queue draining as messages arrive and are processed. That told me the event was probably over, which changed the urgency a great deal.
I now think that argument is weaker than I presented it. A loop through a polled mailbox is not machine-speed: the notification has to be sent, delivered, then picked up on the reader's next poll, and each stage adds delay. Gaps of a few minutes could be a live loop at its natural pace. What actually supports “it had already ended” is the sequence of events, the address having been removed from the channel before I looked, followed by more than seventy quiet minutes. I would still use cadence as a prompt to ask is this still going?, but I would confirm with the sequence, not trust the gap sizes.
Root Cause, and Why Nothing Warned Me
Two readers on one mailbox. The built-in email channel had the helpdesk address configured, alongside the ETI incoming connection, and both were ingesting from the same inbox. ETI's reject filters were enabled throughout and were correctly discarding Jira-generated mail, so ETI was never the thing creating the comments. The other reader was.
One honest limit: I did not capture a log line that says “this comment was created by the channel, not by ETI.” The conclusion rests on elimination: ETI's filters were on and would have rejected the mail, the loop stopped when the channel's address was removed, and nothing else was reading the box once I had checked. I am confident in it, but it is an inference, not a recording.
The failure was silent in both directions. The same misconfiguration made ETI awkward to get working in the first place, and later produced the flood. Neither symptom pointed at the cause, and nothing in either product warns that two readers are configured against one address.
Atlassian does document a built-in mail loop detector, which blocks a sender once more than a configured number of messages arrive within fifteen minutes, and logs it under Processing Logs. I did not check whether it fired. It is covered under what I could not establish.
Resolution: Checking Three Places
The address was already off the channel. What remained was proving no other reader was left, in all three places one can hide:
- Settings cog → System → Incoming Mail. No handler, and no orphaned mail server entry.
- The space's Channels & self service → Email. Address not configured.
- Settings cog → Products → Jira Service Management → Email requests. Address not listed.
Deleting a handler does not always delete the mail server entry underneath it, so the first check has to look for both separately. This checklist is now the first step of the migration runbook.
The Three Layers That Stop It Recurring
These are independent. None should be removed without understanding what it does.
Layer 1: ETI inbound reject filters
On the mail handler's Filter emails tab. Green means block. The labels are inconsistent between toggles, some reading as bare nouns and others spelling out “Filter out”, but they are all reject filters. I had four on:
| Toggle | What it checks |
|---|---|
| Emails sent from Jira | X-JIRA-Fingerprint or X-JETI-Fingerprint, rejected if either is present. The most important of the four, because it catches both Jira's notifications and ETI's own outbound. |
| Bulk emails | Precedence: bulk |
| Auto reply emails | Auto-Submitted with a value other than no |
| Delivery status notifications | A delivery status report (multipart/report) |
The checks are as the vendor's filtering documentation describes them. The same page lists further filters, including one for unknown senders, which I did not use for this purpose.
Layer 2: stamping ETI's own outbound
In the Advanced Email Configuration, per project, Add Bulk header and Add auto-generated header are both on. That stamps ETI's own mail with the headers Layer 1 looks for, so if ETI's output ever returns to the mailbox it is rejected. The fingerprint check covers it already, so this is a belt-and-braces layer. Together, Layers 1 and 2 form a closed circuit that does not depend on anything else being configured correctly.
Layer 3: Recipient Restrictions
The ingest mailbox addresses are on the blacklist as escaped regular expressions, so ETI never sends to its own ingest address. That is the reply-all protection.
There is a side effect worth knowing. You cannot test the round trip by emailing in from the ingest address, because ETI removes it at delivery, silently, and nothing appears in the audit log. I cover that in the silent-failures post.
What I Could Not Establish
- Whether Jira's mail loop detector fired. The vendor documents one, and says where its log lives. I did not look at the time, and the answer would say whether it is a useful backstop against this specific failure or not.
- Which fingerprint the looping mail carried. Not recorded, as above. It does not change the conclusion, but it would have tidied the story.
- Whether the timing really rules out a live loop. I argue above that it does not, on its own.
- Why one of the two Automation counters began incrementing only partway through. The ticket's Number of Contacts metric appears to undercount the event as a result. Logged as a separate item, not investigated.
Lessons
One reader per mailbox, verified before enabling anything. Three separate places can hold a reader, and Jira warns about none of them.
Disable before enable, never overlap. At any cutover, stop the old reader, confirm it has stopped, then start the new one. Both enabled at once is the one mistake that is not a clean rollback.
Check the headers before theorising, but know which ones answer which question. Headers cut the guesswork short. Just do not take a generic one as proof of origin when a specific one exists.
Timing is a prompt, not a verdict. Gap sizes made me ask whether the event was over. The sequence of what had been changed, and when, is what answered it.
Institutional knowledge does not survive migrations. Someone had already removed the address from the channel without recording why. Had that been written down, the flood would have been explicable in minutes rather than hours.
Detection matters more than prevention here. The event ran for ninety minutes with nobody watching. The controls above make a recurrence unlikely, but something novel will eventually happen, and the only thing that limits the damage is noticing early.
Still Outstanding
| Action | Status | Notes |
|---|---|---|
| Comment spike alert | Not started | Flag any issue receiving more than roughly twenty comments in an hour. Jira automation has no native rate-based condition, so it needs a counter field or a scheduled JQL rule. This is the item that would have turned ninety minutes into five. |
| Exchange transport rule | Not started | Scoped on Precedence: bulk or Auto-Submitted, redirecting to a review mailbox. Redirect rather than delete, because a deleted message is a lost customer reply nobody will know about. It would work even if every Jira-side control were misconfigured. Because ETI can stamp the same headers on its own outbound, the rule needs testing before it goes live. |
| Reporter on the affected ticket | Outstanding | Still shows the helpdesk address. Harmless while only ETI reads that mailbox, but it is a live trigger if anything is ever reconfigured against it. |
| Number of Contacts metric | Outstanding | Appears to undercount. Only began incrementing partway through the event. |
The first two are the same recommendations I make, and say I have not built, in the migration runbook.
Closing Thoughts
The fix took a few minutes: one address, three places to check. The hard part was that nothing connected the symptoms to the cause, in either product, and that the one person who had touched the setting did not know it mattered. If you take one thing from this, make it the three-place check before you enable any incoming connection. Everything else here is what to do when you did not.
← All guides