SMTP Oauth Config

Gitlab SMTP config uses basic authentication. Recently we had an issue of authentication error with Google SMTP server. After troubleshooting this issue we found a notice from Google which states that

March 14, 2025

  • Access to less secure apps will be turned off for all Google Accounts.
  • CalDAV, CardDAV, IMAP, SMTP, and POP will no longer work with legacy passwords (basic authentication).

Currently there is no Oauth configuration documented, is there any way to circumvent this, or is there some solution on the way?

Have you tried using app passwords instead? See: SMTP settings | GitLab Docs or Sign in with app passwords - Gmail Help

Thanks a lot! Glanced over it and did not catch app passwords.
Works with it.

1 Like