Jira Server throws AuthenticationFailedException when connecting to Exchange over SSL
JIRA is not retrieving mails from MS Exchange 2010 and the following appears in the
2014-04-04 15:34:11,888 QuartzWorker-0 ERROR ServiceRunner Create Issue [atlassian.mail.incoming.mailfetcherservice] Create Issue : Error connecting to host 'mailserver.mycompany.com' as user 'niceuser' via protocol 'pop3': javax.mail.AuthenticationFailedException: Command is not valid in this state. javax.mail.AuthenticationFailedException: Command is not valid in this state.
JIRA is not being able to authenticate on the mail server because the SSL certificate of the mail server is not present in JIRA's keystore.
- Stop JIRA
- Import the SSL Certificate of your mail server into JIRA's keystore (follow the instructions of connecting JIRA to SSL Services)
- Start JIRA