AuthenticationFailedException when connecting to Gmail as SMTP server
Platform Notice: Cloud and Data Center - This article applies equally to both cloud and data center platforms.
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.
*Except Fisheye and Crucible
Problem
When trying to connect to Gmail server as a SMTP provider, the following error will be thrown in the UI:
1
2
3
4
5
6
7
8
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
Cause
Recently, Google services has been received several authentication features which are not supported in JIRA.
Resolution
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.
Was this helpful?