mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-24 09:03:15 -05:00
SMTP Gmail valid configuration? #795
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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,
@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
@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 .
@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:
@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
@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
@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.