Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-21246

Upgrade of library atlassian-mail causes Bamboo to stop sending emails

    XMLWordPrintable

Details

    Description

      Issue Summary

      Bamboo's email service fails to authenticate (or rather, attempts to authenticate when no user/pass has been specified) after upgrading the library atlassian-mail. This behavior was observed with MS Exchange.

      Steps to Reproduce

      1. Configure an email service using MS Exchange email server with no authentication (no user or pass configured in Bamboo)
      2. Test connection

      Expected Results

      Connection successful

      Actual Results

      Connection will fail. In the logs you will see:

      2021-02-05 10:48:58,275 WARN [mail-queue-processor] [EmailService] Uncaught exception while processing mail queue
      com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful
      
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:222)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:174)
      	at com.atlassian.bamboo.mail.EmailService.sendEmailSynchronously(EmailService.java:115)
      	at com.atlassian.bamboo.mail.EmailService$MailQueueProcessor.run(EmailService.java:67)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: javax.mail.AuthenticationFailedException: 535 5.7.3 Authentication unsuccessful
      
      	at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:892)
      	at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:814)
      	at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:728)
      	at javax.mail.Service.connect(Service.java:366)
      	at javax.mail.Service.connect(Service.java:246)
      	at javax.mail.Service.connect(Service.java:267)
      	at com.atlassian.mail.server.InternalAuthenticationContext.connectService(InternalAuthenticationContext.java:58)
      	at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:194)
      	... 4 more
      

      Workaround

      1. Stop Bamboo.
      2. In the folder <installation-directory>/atlassian-bamboo/WEB-INF/lib, backup and delete the file atlassian-mail-5.0.4.
      3. Download atlassian-mail-5.0.0.jar and place it in that same folder.
      4. Start Bamboo and configure your email service again.

      Attachments

        Issue Links

          Activity

            People

              achystoprudov Alexey Chystoprudov
              pdemitrio Patricio
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: