How to delete mails from the outbound queue in Jira Data Center
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
For any reason you need to delete (not flush) the mails from mail queue. Thousands of e-mails are awaiting in mail queue to be sent.
This may be caused by adding a wrong inbox Email address for mail handler. If there are thousands of messages in this inbox, Jira reads them all, creates issues and sends notification to related users.
There are many other scenarios that may cause mass outbound notifications.
環境
All versions of Jira 7.x, 8.x, 9.x, and 10.x
ソリューション
A built-in solution has ben requested and can be tracked here:
JRASERVER-65784 - 課題詳細を取得中... ステータス
Please vote, watch and comment if this impacts you!
回避策
Jira outbound email is stored in-memory. If you're trying to clear Jira sending mail queue, restart Jira.
Following a Jira restart, all queued outgoing email will be cleared. There's no way to selectively clear email and leave others in the queue.
What if I'm on Data Center
In DC, outbound email is also stored in memory. Every DC node maintains its own queue.
You will need to inspect the outgoing mail queue on each node and see which one has the big number of emails. This node has to be restarted.
If all nodes have thousands of emails queued, do a rolling cluster restart (one node at a time) — you don't need to stop all nodes together.