AuthenticationFailedException: AUTHENTICATE failed

I'm evaluating JIRA Service Desk and I cannot get my exchange server connected in as the incoming mail source. When I enter the information for my server and test it I get the error: "AuthenticationFailedException: AUTHENTICATE failed."

I searched the knowledge base and found this article: https://confluence.atlassian.com/display/JIRAKB/Authenticate+Failed+Error+when+Connecting+to+Exchange

I then added -Dmail.imap.auth.plain.disable=true and -Dmail.imaps.auth.plain.disable=true to the setenv.sh file in the JVM_SUPPORT_RECOMMENDED_ARGS section. Then restarted the JIRA service. This did not work, same error message.

I turned on email debugging by adding the -Dmail.debug into the same section and file referenced above. (The setenv.sh file I'm working on is located in /opt/atlassian/jira/bin by the way). Then I tried to test again and got the same error message.

After combing through the logs I pulled this line out: 

http-bio-8080-exec-11 ERROR <username> 911x91x1 1u33boo <my ip address> /secure/admin/VerifyPopServerConnection!update.jspa [plugins.mail.webwork.VerifyMailServer] Unable to connect to the server at <email server name> due to the following exception: javax.mail.AuthenticationFailedException: AUTHENTICATE failed.

I'm combing through the knowledge base and forums and cannot find anything relevant. My JIRA server is linux, my exchange is 2007 and I'm trying to connect via IMAP. 

I've tried different user names, that doesn't change the error. I've tried referencing the email server by ip address and by DNS name, that doesn't change the error. My server can ping the email server. The username I'm using has full admin rights on the mail server.

Any help is appreciated as I'd really like to try this software out.

2 answers

After searching my server I find only one setenv.sh file. Also the log file I'm looking at is catalina.out inside /opt/atlassian/jira/logs/

0 vote
Andy Brook Community Champion Dec 18, 2014

The article you link indicates that Exchange has been configured to deny plain auth.  You can't fix that with and configuration of JIRA, its an exchange setting, perhaps this helps:

 

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Feb 15, 2018 in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

1,181 views 6 19
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot