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:
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

0 votes
Accepted answer

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

I was able to add this parameter by following this link 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 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
Published Nov 29, 2018 in Jira

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,088 views 0 8
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