javax.mail.AuthenticationFailedException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • We have a pending PO for the JEMH plugin and have it installed and generally working. However, we have a possible show-stopper: multiple JEMH profiles using the same Jira mail server fail to get to the associated profile project likely due to the cap on simultaneous connections to a gmail inbox: https://support.google.com/mail/answer/97150?hl=en Here is our current setup: Incoming Mail: POP/IMAP Mail Servers; jira.something@my.domain Host: imap.gmail.com Username: jira.something@my.domain *Our mail is handled by google mail - so the above is a real mailbox. JEMH Profiles: the email addresses for the configured profiles are gmail groups where the above address (jira.something@my.domain) is a member. These profiles are set up to use the group address to send notifications to enable email-replies-to-ticket-comments. We have 18 profiles set up and only about 3 will work at any given time. I have gone through the configurations several times and find that they are in order. One work-around is to create a Jira Mail Server for each profile. However this is not cost-effective as we build games. Lots of games. So at this point we need a solution. Is there something I am overlooking? Maybe a config switch I forgot to turn on? An "any" key I forgot to press? Please see the below output from the error log. Regards Jesse Alvarez Error from the server logs: javax.mail.AuthenticationFailedException: [ALERT] Too many simultaneous connections. (Failure) at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665) at javax.mail.Service.connect(Service.java:295) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:201) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:252) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    via by Jesse Alvarez,
  • Oracle Webcenter Capture 11.1.1.8 Email Processor
    via by user1666637,
  • Invalid credentials with 2-legged OAuth
    via by Glen Holcomb,
  • Unable to connect to gmail using IMAP
    via Stack Overflow by KodeSeeker
    ,
    • javax.mail.AuthenticationFailedException: [ALERT] Too many simultaneous connections. (Failure) at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:665) at javax.mail.Service.connect(Service.java:295) at com.atlassian.jira.service.services.mail.MailFetcherService$MessageProviderImpl.getAndProcessMail(MailFetcherService.java:201) at com.atlassian.jira.service.services.mail.MailFetcherService.runImpl(MailFetcherService.java:356) at com.atlassian.jira.service.services.file.AbstractMessageHandlingService.run(AbstractMessageHandlingService.java:252) at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:61) at com.atlassian.jira.service.ServiceRunner.execute(ServiceRunner.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Users with the same issue

    Unknown visitor1 times, last one,
    mauritius
    27 times, last one,
    serious2monkeys
    3 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    16 more bugmates