Details
-
Bug
-
Resolution: Fixed
-
Low
-
7.2.2, 7.2.3
-
None
-
3
-
Severity 2 - Major
-
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
- Configure an email service using MS Exchange email server with no authentication (no user or pass configured in Bamboo)
- 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
- Stop Bamboo.
- In the folder <installation-directory>/atlassian-bamboo/WEB-INF/lib, backup and delete the file atlassian-mail-5.0.4.
- Download atlassian-mail-5.0.0.jar and place it in that same folder.
- Start Bamboo and configure your email service again.
Attachments
Issue Links
- Discovered while testing
-
BDEV-16012 Loading...