AuthenticationFailedException when connecting to Gmail as SMTP server
Platform Notice: Cloud, Server, and Data Center - This article applies equally to all platforms.
Support for Server* products will end after 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.
*Except Fisheye and Crucible
When trying to connect to Gmail server as a SMTP provider, the following error will be thrown in the UI:
com.atlassian.mail.MailException: javax.mail.AuthenticationFailedException: 534-5.7.14 <https://accounts.google.com/signin/continue?sarp=1&scc=1&plt=AKgnsbtv 534-5.7.14 PZxvxLlobQ_V5PG1i5icYEi2YuYU7Vl__dz2yhz5rAnD2GhQdv9YGYsq5ocia9mZvqz0Dl 534-5.7.14 1kmW1cfineB1BHqGjM_XwGRUNMwRLSXeOXVF4-Xvq0MSVCREmcHWeRE2jal7VpiLfygD8g 534-5.7.14 Rq0qYeihSq-lkVh_LijQtP0rAL-zvywM2y7nQQ5Ewd9xobeeyxUxyBPckonrg1LIoJDZGq 534-5.7.14 QTr0i7Qgd3V3_pctrfBYPYWNVp-MA> Please log in via your web browser and 534-5.7.14 then try again. 534-5.7.14 Learn more at 534 5.7.14 https://support.google.com/mail/answer/78754 g27sm49103462pfd.25 - gsmtp
Recently, Google services has been received several authentication features which are not supported in JIRA.
- If you've turned on 2-Step Verification for your account, you might need to enter an App password.
- Visit http://www.google.com/accounts/DisplayUnlockCaptcha and sign in with your Gmail username and password.
- Allow less secure apps access to your account.
In case you are still facing the same error, please, contact Google support.