Troubleshooting Jira incoming mail handler issues
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
The purpose of this KB article is to provide some diagnostic steps that can be followed to troubleshoot issues with Jira Incoming Mail Handlers configured in ⚙ > System > Incoming Mail, such as:
- New Jira issues are not created from incoming emails
- Comments are not added to existing Jira issues from incoming emails
Diagnosis
Begin with the initial assessment, and proceed to the advanced assessment if further diagnosis is required.
Initial Assessment
- Check to see if the message reaching the e-mail account. Have your mail server administrator confirm that e-mail sent to the JIRA application account is successfully reaching the account's Inbox.
- Check that the Create Or Comment Handler service configured correctly in the JIRA application. Please review Creating Issues and Comments from Email to assess this.
- Check that the permissions are set properly. Does the user submitting the issue have Create Issue permissions in the Permission Scheme? If you are having trouble adding comments, make sure your Issue Security Scheme is not restricting the user's access to the issue.
Advanced Assessment
- Enable debug logging in the JIRA application.
- Go to Logging and Profiling
- Click Enable for either incoming or outgoing mail logging and also Enable Debugging, depending on if you are troubleshooting incoming or outgoing mail.
- Alternate method: If these options are unavailable add DEBUG level for log packages com.atlassian.mail (for outgoing) and/or com.atlassian.mail.incoming (for incoming)
Send two e-mails to the email address that your JIRA application is checking for new issues and comments. Wait 5 minutes and then submit a support request that includes the JIRA application logs. This can be done from the following menu:
Administration -> System -> ServicesExample of Service Info
handler: Create Or Comment Handler
popserver: POP server - JSP
handler.params: project=JSP, issuetype=1, createusers=true, stripquotes=true, bulk=forward
usessl: No SSL
forwardEmail: jira-support@example.comRemember to check the Attach JIRA application logs box! Also, please note the e-mail address being used for testing and copy/paste the JIRA application service settings for this Create Or Comment handler.
Disable debug level logging for mail on Logging and Profiling
a. If using alternate method add log package again and set to WARN
Need blackbelt mail logging?
These resources can really help experts and full-time dedicated staff to do root-cause analysis:
- Log on a protocol level (IMAP, POP3 or SMTP). Set the property
-Dmail.debug=true
. Please refer to Setting Properties and Options on Startup.
As always, please open a support ticket including the information above, with any mail or mail handler issue.
Common Causes for mail and mail handlers issues
Expand the titles below to see the common causes for mail and mail handler issues: