Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Jira mail handler not working

최경환
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 10, 2022

I am using Jira Service Management version 8.20.2. I am trying to create an issue through a mail receive handler. But it doesn't work properly. 

https://confluence.atlassian.com/jirakb/imap-fails-with-a3-bad-user-is-authenticated-but-not-connected-error-in-jira-server-integrated-with-office365-665420269.

I tried a few things by looking at the html link.

1. Make sure "IMAP4" is added to Client Access Rules in O365, and when testing the input in O365 using Jira context, the test is completed successfully.

스크린샷, 2022-02-10 17-36-23.png

2. You can solve this problem by using OAuth 2.0, which is supported in Jira 8.10 and later. 

스크린샷, 2022-02-10 17-46-17.png

 

But when I test the mail handler I get an error.

```

Messaging Exception in service 'com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl' when getting mail: QE3 BAD User is authenticated but not connected.javax.mail.MessagingException: QE3 BAD User is authenticated but not connected.
The connection is no longer open, messages marked as deleted will not be purged from the remote server: outlook.office365.com until the next run.

```

I would appreciate it if you could tell me how to solve it.

4 answers

0 votes
Johannes March 22, 2023

For me the solution was to use a new private (inkognito) browser window for each newly added mail account which gets connected with OAuth and then clicking on "Authorize". This is to make sure that the correct account will be used for the authorization.

I also used the mail address in the username field instead of the service user id.

0 votes
Ali Rahman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 23, 2023

A similar issue to this and I found it turned out to be the number of emails in the inbox, which is the folder that it was looking at. I moved the bulk of the emails to another folder. And move them in chunk by chunk. That seemed to be OK for me and it worked for me.

0 votes
Fernando Passos September 23, 2022

Hi Guys.

I have the same problem, does anyone find out how to solve it?

Thanks!

0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 14, 2022

This is posted in JSM collection. If indeed you are using JSM then your incoming mail is configured under Project settings > email requests. If you actually are working with JSW here and not JSM please let me know.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events