davidjameshowell / vaultwarden_heroku

Vaultwarden (Bitwarden Rust implementation) self hosted in Heroku for Free!
95 stars 175 forks source link

SMTP / email setup? #14

Open maneeshsethi opened 3 years ago

maneeshsethi commented 3 years ago

Hi there, great project.

No emails seem to send via smtp. I can't see logs for them either.

How do I configure the SMTP server for this project?

bryanjhv commented 3 years ago

https://github.com/dani-garcia/bitwarden_rs/wiki/SMTP-configuration

Included here, adapted for Heroku usage. Change parameters according to your use case.

set HEROKU_APP=<yourappname>  # windows
export HEROKU_APP=<yourappname> # linux/mac
heroku config:set SMTP_HOST=<smtp.domain.tld> SMTP_FROM=<bitwarden@domain.tld> SMTP_PORT=587 SMTP_SSL=true SMTP_USERNAME=<username> SMTP_PASSWORD=<password>
heroku ps:restart
davidjameshowell commented 3 years ago

https://github.com/davidjameshowell/bitwarden_rs_heroku/commit/a99870bf662044e2b753a3cc2f4a4081593e06ae

I did just start work on this. I have my own (Mailgun) instance outside since this is used for replication, so I added flags for both internal (within Heroku) and external (outside of Heroku addons) for mail server configurations.