mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #1147] Error "Error sending SMTP test email SmtpError" when setting up SMTP #810
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#810
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @alexpovel on GitHub (Sep 19, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1147
Subject of the issue
As in #537 , I am trying to set up fastmail as the SMTP provider. I've done this successfully many times before, but it is failing here.
In the above issue, the problem was resolved setting
SMTP_EXPLICIT_TLS=true. That did not help. The current config shows:I have tried all combinations possible using the three settings of Port, SSL and Explicit TSL, no dice.
Your environment
Steps to reproduce
Launch using the docker-compose file, where
docker-compose configoutputs (posting it this way since I also use a.envfile among other things, which are likely not relevant here):Dockerfile is:
There is an NFS backup facility and the
nginx-proxystuff that can probably be ignored.Expected behaviour
Succesfull sending of test email.
Actual behaviour
Sending fails with error message:
The below log does not look like it is a Fastmail-specific problem though.
Relevant logs
This is from
LOG_LEVEL=info. Settingtracedid not seem to output more useful info around that error.@BlackDex commented on GitHub (Sep 19, 2020):
@alexpovel I think you should put "SMTP_EXPLICIT_TLS" to false here.
@BlackDex commented on GitHub (Sep 19, 2020):
Also, if that doesn't work, it looks like the mail server is not reachable from within the container for some reason.
@alexpovel commented on GitHub (Sep 19, 2020):
Thank you @BlackDex for those suggestions.
It turns out, restarting via docker-compose allowed it to work, with exactly the settings as shown above in the screenshot.
Pleasant outcome for me, but I recognize the classic "Worked for me after a reboot" might not help any future readers with more serious problems that persist through reboots. I cannot explain what went wrong and was fixed through a reboot.
Considering this fixed, thanks.