Jira is not processing new incoming emails (or processing them with a long delay)

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問


プラットフォームについて: 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 は除く

    

症状


The Jira Core Mail Handler is not processing new incoming emails, or processing them with a very long delay.

診断

  • Jira application is configured with mail handlers under ⚙> System > Incoming mail > Mail Handlers
  • The issue doesn't happen for all mail handlers
  • After enabling debugging for Incoming mail in ⚙> System > Logging and profiling, atlassian-jira-incoming-mail.log shows many emails found for processing in the affected mailbox:
2021-06-24 11:37:59,599+0300 DEBUG [ABC mail server ] Caesium-1-2 anonymous ABC Emails ABC Emails[11600]: Found 2790 unprocessed message(s) in the imaps folder

atlassian-jira-incoming-mail.log also contains a lot of events like below: 

シナリオ 1

2021-06-24 11:38:04,335+0300 DEBUG [ABC mail server ] Caesium-1-2 anonymous ABC Emails ABC Emails[11600]: The message has been rejected (Rejecting message due to failed bulk check.): From :[Anonymous <anonymous@domain.com>], Subject: Random subject, Date:...

シナリオ 2

2013-05-28 06:44:48,156 INFO [POP Mail for ABC] QuartzWorker-1 ServiceRunner Create Issue / Comment for Project ABC The message has been rejected: The messages recipient(s) does not match catch mail list.


原因

Scenario 1  happens when the mailbox contains a lot of auto-generated emails which Jira categorises as bulk emails, and when the Incoming Mail Handler is configured with the Bulk setting set to ignore the email and do nothing.

Scenario 2 happens when you specify an email address in the Catch Email Address field of an Incoming Mail Handler, and the recipient(s) email does not match the Catch Email Address field.

In both cases, the mail handler keeps the incoming emails as "UNREAD" instead of marking is as "READ" in the mailbox. As a result, whenever the mail handler scans the mailbox, it will keep processing these emails over and over, resulting in the following consequences:

  • the Jira incoming Mail logs will get flooded with WARN/INFO logs saying "The message has been rejected:"
  • if the mailbox contains a huge amount of those emails, the mail handler will run very slowly (as it needs to scan over and over these same emails).

This issue is a result of the bug from below:

ソリューション

Clean the mailbox from the unwanted emails. 

For scenario where the email was rejected due to the bulk detection, the long term solution is to change the mail handler configuration by setting the Bulk field to Delete the email permanently.


To change the mail handler configuration:

  • Click the Edit button on mail handler configuration in the Incoming Mail configuration page


  • Click Next button on the mail handler configuration

  • Select "Delete the email permanently" in Bulk setting.





最終更新日 2023 年 4 月 14 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.