mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #791] SMTP E-Mail sending error still reports as success in UI #548
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#548
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 @Zauberfisch on GitHub (Jan 1, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/791
Subject of the issue
When bitwarden_rs tries to send emails via SMTP, not all errors will actually be recognised as errors.
Your environment
bitwarden_rsandbitwarden_rs-vaultSteps to reproduce
Started through systemd unit file from AUR package
Cause one of the following errors when sending via SMTP:
Expected behaviour
UI should tell the user that sending an email failed
Actual behaviour
Green notification pops up saying it was sent
Relevant logs
@Crow-Control commented on GitHub (Jan 29, 2020):
I can confirm and limit the error scope somewhat:
When doing an invite from the organisation screen this does give the right error.
When doing a email verification from the user homescreen, it gives a screen "everything okey", even when failing.
@sekdiy commented on GitHub (May 13, 2020):
I can confirm that this is still relevant and also affects the
Test SMTP(Send test email) functionality in the admin panel.I just caused an authentication error, but all tests were reported successful.
@dani-garcia commented on GitHub (May 13, 2020):
The server always returns errors when it gets them, but some client endpoints don't handle them and they always show success, there's not much we can do about those as they probably aren't related to bitwarden_rs.
That said, if this happens in the admin panel we should be handling them correctly, @sekdiy can you check the network requests tab in your browser to see what response you get from the /admin/test/smtp/ endpoint?
@Zauberfisch commented on GitHub (May 14, 2020):
@dani-garcia I think this is in fact a bitwarden_rs issue.
In the log file I posted, the last line says:
The
Outcome: Successleads me to believe this is wrongly handled on the serverWhen I click on "Verify Email -> Send Email" on a new Account, the HTTP Response is an empty body with the following headers:
@Crow-Control commented on GitHub (May 14, 2020):
I agree with @Zauberfisch I also saw the success originating from bitwarden_rs in the logs when I looked into this.
@BlackDex commented on GitHub (Oct 5, 2020):
There have been a lot changes done to the email library since the last comment here.
If this still is an issue please give some more details.
@l0rem commented on GitHub (Oct 10, 2020):
1.16.3 as of today - the issue is still there.
@BlackDex commented on GitHub (Oct 12, 2020):
@l0rem Could you give us an example maybe, which steps to reproduce this, and what message do you get in the logs?
@BlackDex commented on GitHub (Nov 18, 2020):
@Zauberfisch, @l0rem and @sekdiy Have you tried v1.17.0 already?
That version includes a lot of changes to handling emails and has some better error reporting.
And does it still produce any error.
Also, i just have create a new PR #1229 which could help in trying to debug this issue.
We have to wait for this PR to be merged for you to test (unless you build it your self).
@BlackDex commented on GitHub (Nov 18, 2020):
As of today there is a new
testingversion available on docker hub which has among an updated mail library, also an SMTP_DEBUG option available. Maybe this could help i troubleshooting this issue.@BlackDex commented on GitHub (Dec 12, 2020):
Going to close this one because of inactivity and there have been some more changes done including the
SMTP_DEBUGoption.If this issue still is unsolvable using that feature please feel free to re-open this ticket.