IMAP Mail Server setup fails

I am trying to configure an IMAP-Account in order to create/comment issues in JIRA via email.

After following the documentation, it is still not working. Following is my setup:

Name: Exchange 2013
Description: xyz
Protocol: IMAP
Host name:10.50.1.10
IMAP Port: 143
Timeout: 10000
Username: xyz
Password: xyz
"Test connection" returns the following error:

Unfortunately no connection was possible. Review the errors below and rectify:

  • ProtocolException: No login methods supported!



1 answer

1 accepted

This widget could not be displayed.

That usually means that your mail server requires a certain type of login, which is not what you have configured.  Or that it simply is not set up for IMAP at all.  You'll need to talk to the server admins.  Exchange 2013 sadly ships with IMAP disabled in favour of the inferior MAPI protocol, so it could be that.

The only way I got Incoming Mail to work is if I set the authentication in Exchange for IMAP to Basic Authentication (Plain Text). Is there any way to get it to work using Secure TLS authentication

Ah, sorry, I really should have remembered that as well, as I never recommend using an unencrypted connection - should always be StartTLS or IMAPS. Problem with StartTLS is that Java doesn't do it unless you explicitly kick it into working. To do that, add -Dmail.imap.starttls.enable=true to the startup parameters in setenv.sh

I was able to add this parameter by following this link https://confluence.atlassian.com/display/JIRAKB/%27javax.mail.MessagingException+No+login+methods+supported%27+Due+to+IMAP+over+SSL Now I'm getting error "SunCertPathBuilderException: unable to find valid certification path to requested target". I tried to follow the instructions of the link "Connecting to SSL services" in the document referenced above by using the JIRA SSL Atlassian plugin referenced on that page but I'm getting error "class javax.net.ssl.SSLException during connection to..." Jira is installed locally on a windows server 2012

So the -D parameter works and enables StartTLS, but now your certificates are not installed correctly. You'll need to import the right certificates into the java keystore, and ensure the process running Jira has the correct permissions to read/write it...

After importing SSL certificates for the wembail server using the JIRA SSL Atlassian plugin and restating Jira the connection was successful.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

203 views 1 3
Join discussion

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