SMTP Gmail valid configuration? #795

Closed
opened 2025-11-07 06:48:47 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @ghost on GitHub (Sep 10, 2020).

HI all,

i've been trying to setup SMTP with a GMAIL account with no success. I've been going through all the issues but i couldn't find a recommended gmail settings.

I'm facing different errors with different configurations, so, anybody can post me a valid (working for him) Gmail classical smtp settings ?

Thanks in advance,

Originally created by @ghost on GitHub (Sep 10, 2020). HI all, i've been trying to setup SMTP with a GMAIL account with no success. I've been going through all the issues but i couldn't find a recommended gmail settings. I'm facing different errors with different configurations, so, anybody can post me a valid (working for him) Gmail classical smtp settings ? Thanks in advance,
GiteaMirror added the better for forum label 2025-11-07 06:48:47 -06:00
Author
Owner

@GasperSB commented on GitHub (Sep 11, 2020):

Hi!

Have you checked Google account settings for the GMAIL account you plan to use?

Google Account -> Security -> scroll down until you hit Less secure app access -> make sure it is enabled (On)
by default less secure app access is disabled and this causes an SMTP error.

My SMTP Email Settings on the BW admin page are the following:

Enabled: checked (default: true)
Host: smtp.gmail.com
Enable SSL: checked (default: true)
Use explicit TLS: unchecked(default: false)
Port: 587
From Address: example@gmail.com (gmail account that is going to be used for sending emails)
From Name: Bitwarden_RS
Username: username for the above account
Password: password for the above account

@GasperSB commented on GitHub (Sep 11, 2020): Hi! Have you checked Google account settings for the GMAIL account you plan to use? Google Account -> Security -> scroll down until you hit Less secure app access -> make sure it is enabled (On) by default less secure app access is disabled and this causes an SMTP error. My SMTP Email Settings on the BW admin page are the following: Enabled: checked (default: true) Host: smtp.gmail.com Enable SSL: checked (default: true) Use explicit TLS: unchecked(default: false) Port: 587 From Address: example@gmail.com (gmail account that is going to be used for sending emails) From Name: Bitwarden_RS Username: username for the above account Password: password for the above account
Author
Owner

@ghost commented on GitHub (Sep 16, 2020):

I had the less secure apps marked, using your combo of settings it's working, so thankyou very much for your help @GasperSB .

@ghost commented on GitHub (Sep 16, 2020): I had the less secure apps marked, using your combo of settings it's working, so thankyou very much for your help @GasperSB .
Author
Owner

@khongi commented on GitHub (Jan 6, 2021):

@GasperSB thank you, it's working with your config. For anyone else wandering here, I left blank the following fields:

  • SMTP Ath mechanism
  • Server name sent during HELO
@khongi commented on GitHub (Jan 6, 2021): @GasperSB thank you, it's working with your config. For anyone else wandering here, I left blank the following fields: - SMTP Ath mechanism - Server name sent during HELO
Author
Owner

@ebanDev commented on GitHub (Oct 30, 2023):

Hi ! I'd like to reopen this issue as Google recently changed its policy on "less secure" apps, they now require us to use OAuth (see https://support.google.com/accounts/answer/6010255), do you plan implementing this kind of feature ? :) Thanks

@ebanDev commented on GitHub (Oct 30, 2023): Hi ! I'd like to reopen this issue as Google recently changed its policy on "less secure" apps, they now require us to use OAuth (see https://support.google.com/accounts/answer/6010255), do you plan implementing this kind of feature ? :) Thanks
Author
Owner

@stefan0xC commented on GitHub (Oct 30, 2023):

@ebanDev As explained on the wiki page you can create an app password for Vaultwarden. C.f. https://support.google.com/accounts/answer/185833

@stefan0xC commented on GitHub (Oct 30, 2023): @ebanDev As explained on the wiki page you can create an app password for Vaultwarden. C.f. https://support.google.com/accounts/answer/185833
Author
Owner

@BlackDex commented on GitHub (Oct 30, 2023):

I'm not sure app passwords are still allowed.
There is support for XOAuth in lettere, but there is nothing within Vaultwarden to fetch the oauth token.

@BlackDex commented on GitHub (Oct 30, 2023): I'm not sure app passwords are still allowed. There is support for XOAuth in lettere, but there is nothing within Vaultwarden to fetch the oauth token.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#795