How to delete mails from the Jira outbound queue

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

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.

*Except Fisheye and Crucible

Summary

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.


Environment

All versions of Jira Core 7.x and 8.x.


Solution

A built-in solution has ben requested and can be tracked here:

JRASERVER-65784 - Getting issue details... STATUS

Please vote, watch and comment if this impacts you!

Workaround

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.



Last modified on Sep 24, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.