vaultwarden_heroku icon indicating copy to clipboard operation
vaultwarden_heroku copied to clipboard

SMTP / email setup?

Open maneeshsethi opened this issue 3 years ago • 2 comments

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?

maneeshsethi avatar Mar 15 '21 19:03 maneeshsethi

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=<[email protected]> SMTP_PORT=587 SMTP_SSL=true SMTP_USERNAME=<username> SMTP_PASSWORD=<password>
heroku ps:restart

bryanjhv avatar Mar 29 '21 00:03 bryanjhv

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.

davidjameshowell avatar Mar 30 '21 05:03 davidjameshowell