Unable to create incoming mail POP / IMAP Mail Server

Richard Cain December 22, 2015

Hi All

I am trying to set up an incoming mail server on Jira. However, I am receiving this error when trying to test the connection, see UI below:

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

I have tried adding the following parameters in the JVM System property however no joy:

-Dmail.imap.auth.plain.disable=true
-Dmail.imap.auth.ntlm.disable=true
-Dmail.imap.auth.gssapi.disable=true

The log file is as follows:

*********
debug mail 3
*********

2015-12-22 12:45:42,402 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa Getting session
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa Debug messages from JavaMail session initialization will not appear in this log. These messages are sent to standard out.
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa Session providers: [[javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc]]]
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa Session addressMap: [{rfc822=smtp}]
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: mail.imap.fetchsize: 16384
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: mail.imap.statuscachetimeout: 1000
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: mail.imap.appendbuffersize: -1
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: mail.imap.minidletime: 10
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: disable AUTH=PLAIN
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: disable AUTH=NTLM
2015-12-22 12:45:42,418 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: trying to connect to host "x.x.x.x", port xxx, isSSL false
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa * OK The Microsoft Exchange IMAP4 service is ready.
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa A0 CAPABILITY
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa * CAPABILITY IMAP4 IMAP4rev1 AUTH=NTLM AUTH=GSSAPI AUTH=PLAIN STARTTLS IDLE NAMESPACE LITERAL+
A0 OK CAPABILITY completed.
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG IMAP: AUTH: NTLM
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG IMAP: AUTH: GSSAPI
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG IMAP: AUTH: PLAIN
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG: protocolConnect login, host=x.x.x.x, user=first.lastname@helloworld.com, password=<non-null>
2015-12-22 12:45:42,433 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG IMAP: LOGIN command trace suppressed
2015-12-22 12:45:47,020 DEBUG [Incoming Mail] http-nio-8080-exec-14 first.lastname 765x149x1 jz895c x.x.x.x /secure/admin/VerifyPopServerConnection!update.jspa DEBUG IMAP: LOGIN command result: A1 NO LOGIN failed.

Any help would be much appreciated

Thanks,

Richard.

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 22, 2015

I've seen this a couple of times, with different causes, and the only way to debug it properly is to ask the Exchange admins to debug it on their side.  In both cases, it was a setting on the server side as well (I can't remember what the second one was, but the first time, it was because the account had only been set up to be used by Outlook, which is a monumentally dumb setting to allow in a mail server)

Suggest an answer

Log in or Sign up to answer