Too many login attempts error using Google SMTP with Jira server

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

Multiple mail messages go to the "Error Queue" under Administration > System > Mail Queue.

The below stack trace can be seen on atlassian-jira-outgoing-mail.log when debugging for Outgoing Mail is enabled through Administration > Logging & Profiling. Also, as described on this bug report, it might be necessary to manually enable protocol-level mail debugging through startup arguments.

2015-08-24 08:43:21,234 ERROR [Google] Sending mailitem To='user@example.com' Subject='(ISSUE-1) Check mail throttling' From='null' FromName='John Doe (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.23457.6329402852030@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@4a88836b' MessageId='null' ServiceRunner    Mail Queue Service Error occurred in sending e-mail: To='user@example.com' Subject='(ISSUE-1) Check mail throttling' From='null' FromName='John Doe (JIRA)' Cc='null' Bcc='null' ReplyTo='null' InReplyTo='<JIRA.23457.6329402852030@Atlassian.JIRA>' MimeType='text/html' Encoding='UTF-8' Multipart='javax.mail.internet.MimeMultipart@4a88836b' MessageId='null'
com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 454 4.7.0 Too many login attempts, please try again later. y18sm18170739ywa.8 - gsmtp

    at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:201)
    at com.atlassian.mail.queue.SingleMailQueueItem.send(SingleMailQueueItem.java:44)
    at com.atlassian.mail.queue.MailQueueImpl.sendBuffer(MailQueueImpl.java:66)
    at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:57)
    at com.atlassian.jira.mail.JiraMailQueue$1.apply(JiraMailQueue.java:53)
    at com.atlassian.jira.util.velocity.DefaultVelocityRequestContextFactory.runWithStaticBaseUrl(DefaultVelocityRequestContextFactory.java:127)
    at com.atlassian.jira.util.DefaultBaseUrl.runWithStaticBaseUrl(DefaultBaseUrl.java:41)
    at com.atlassian.jira.mail.JiraMailQueue.sendBuffer(JiraMailQueue.java:52)
    at com.atlassian.jira.service.services.mail.MailQueueService.run(MailQueueService.java:28)
    at com.atlassian.jira.service.JiraServiceContainerImpl.run(JiraServiceContainerImpl.java:66)
    at com.atlassian.jira.service.ServiceRunner.runService(ServiceRunner.java:75)
    at com.atlassian.jira.service.ServiceRunner.runServiceId(ServiceRunner.java:53)
    at com.atlassian.jira.service.ServiceRunner.runJob(ServiceRunner.java:36)
    at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135)
    at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)
    at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)
    at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:223)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
Caused by: javax.mail.AuthenticationFailedException: 454 4.7.0 Too many login attempts, please try again later. y18sm18170739ywa.8 - gsmtp

    at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:823)
    at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:756)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:673)
    at javax.mail.Service.connect(Service.java:317)
    at javax.mail.Service.connect(Service.java:176)
    at javax.mail.Service.connect(Service.java:125)
    at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:172)
    ... 18 more

診断

  • Your instance has a Google SMTP server configured for Outgoing Mail;
  • There is a high volume of e-mails being sent constantly;

原因

When JIRA tries to send multiple messages through an e-mail account using Google's SMTP server, it may exceed the sending limits, therefore the operation will be throttled until additional limit is available to the user (the limit is valid for a rolling window of 24 hours).

A suggestion for implementing better support to throttling mail servers in JIRA has already been filed. You can watch for updates in the below issue raised at our development-tracking platform.

JRA-38806 - 課題詳細を取得中... ステータス

回避策

There are some ways to mitigate this problem:

説明 Multiple mail messages go to the "Error Queue" under Administration > System > Mail Queue. Also, as described on this bug report, it might be necessary to manually enable protocol-level mail debugging through startup arguments.
製品Jira
プラットフォームServer
最終更新日 2019 年 9 月 25 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.