SMTP with Gmail suddenly stopped working #2

Closed
opened 2025-07-08 08:37:08 -04:00 by AtHeartEngineer · 0 comments

Originally created by @yurividal on 7/7/2025

Vaultwarden Support String

I've had SMTP with gmail setup and running fine with vaultwarden for almost 2 years. It has a;ways worked fine. Today, i noticed it stoped working.
My logs show this:

[2025-07-07 19:40:48.918][vaultwarden::mail][ERROR] SMTP 5xx error: permanent error (535): 5.7.8 Username and Password not accepted. For more information, go to5.7.8  https://support.google.com/mail/?p=BadCredentials ffacd0b85a97d-3b47030bd4dsm10815241f8f.7 - gsmtp - Authentication credentials invalid

[2025-07-07 19:40:48.918][vaultwarden::api::core::two_factor][ERROR] Error sending incomplete 2FA email: SMTP 5xx error: permanent error (535): 5.7.8 Username and Password not accepted. For more information, go to5.7.8  https://support.google.com/mail/?p=BadCredentials ffacd0b85a97d-3b47030bd4dsm10815241f8f.7 - gsmtp - Authentication credentials invalid

I am using app passwords, and I even tried generating a new one, in case my original one somehow expired.

Image

Here is the relevant part of my docker-compose:

      - SMTP_SECURITY=force_tls
      - SMTP_HOST=smtp.gmail.com
      - SMTP_PORT=587
      - SMTP_USERNAME=<redacted>@gmail.com
      - SMTP_PASSWORD=<redacted app password, with no spaces>
      - SMTP_FROM=<redacted>@gmail.com

Vaultwarden Build Version

1.34.1-3b48e6e9

Deployment method

Official Container Image

Custom deployment method

No response

Reverse Proxy

nginx

Host/Server Operating System

Linux

Operating System Version

22.04

*Originally created by @yurividal on 7/7/2025* ### Vaultwarden Support String I've had SMTP with gmail setup and running fine with vaultwarden for almost 2 years. It has a;ways worked fine. Today, i noticed it stoped working. My logs show this: ```` [2025-07-07 19:40:48.918][vaultwarden::mail][ERROR] SMTP 5xx error: permanent error (535): 5.7.8 Username and Password not accepted. For more information, go to5.7.8 https://support.google.com/mail/?p=BadCredentials ffacd0b85a97d-3b47030bd4dsm10815241f8f.7 - gsmtp - Authentication credentials invalid [2025-07-07 19:40:48.918][vaultwarden::api::core::two_factor][ERROR] Error sending incomplete 2FA email: SMTP 5xx error: permanent error (535): 5.7.8 Username and Password not accepted. For more information, go to5.7.8 https://support.google.com/mail/?p=BadCredentials ffacd0b85a97d-3b47030bd4dsm10815241f8f.7 - gsmtp - Authentication credentials invalid ```` I am using app passwords, and I even tried generating a new one, in case my original one somehow expired. <img width="1076" height="295" alt="Image" src="https://github.com/user-attachments/assets/584ca877-d798-44e8-87a8-a00531246103" /> Here is the relevant part of my docker-compose: ```` - SMTP_SECURITY=force_tls - SMTP_HOST=smtp.gmail.com - SMTP_PORT=587 - SMTP_USERNAME=<redacted>@gmail.com - SMTP_PASSWORD=<redacted app password, with no spaces> - SMTP_FROM=<redacted>@gmail.com ```` ### Vaultwarden Build Version 1.34.1-3b48e6e9 ### Deployment method Official Container Image ### Custom deployment method _No response_ ### Reverse Proxy nginx ### Host/Server Operating System Linux ### Operating System Version 22.04
AtHeartEngineer added the bugbug labels 2025-07-08 08:37:09 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#2