mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 09:46:00 +03:00
[GH-ISSUE #1128] Cannot send email #798
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#798
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 @JunfXiao on GitHub (Sep 7, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/1128
Subject of the issue
When I try to send tow-factor email, smtp error occurs. See log for details.
Your environment
Ubuntu 20.04 with docker.
Environment:
_ENABLE_SMTP: "true"
SMTP_HOST: "smtp.qiye.aliyun.com"
SMTP_PORT: 465
SMTP_SSL: "true"
SMTP_FROM: "bitwarden@***"
SMTP_USERNAME: "bitwarden@***"
SMTP_PASSWORD: "***"
SMTP_AUTH_MECHANISM: "Plain"
Mail Server is provided by Aliyun.
Expected behaviour
Email should be sent.
Relevant logs
bitwarden | [2020-09-07 09:31:27.202][request][INFO] GET /api/two-factor
bitwarden | [2020-09-07 09:31:27.202][response][INFO] GET /api/two-factor (get_twofactor) => 200 OK
bitwarden | [2020-09-07 09:31:34.220][request][INFO] POST /api/two-factor/get-email
bitwarden | [2020-09-07 09:31:34.279][response][INFO] POST /api/two-factor/get-email (get_email) => 200 OK
bitwarden | [2020-09-07 09:31:36.076][request][INFO] POST /api/two-factor/send-email
bitwarden | [2020-09-07 09:31:51.279][error][ERROR] SmtpError.
bitwarden | [CAUSE] Io(
bitwarden | Os {
bitwarden | code: 11,
bitwarden | kind: WouldBlock,
bitwarden | message: "Resource temporarily unavailable",
bitwarden | },
bitwarden | )
bitwarden | [2020-09-07 09:31:51.279][response][INFO] POST /api/two-factor/send-email (send_email) => 400 Bad Request
@BlackDex commented on GitHub (Sep 7, 2020):
That looks like the server wasn't able to be reached.
Is DNS working?
Could you check the status within in the
/admin/diagnosticspage to see if that works or not?@JunfXiao commented on GitHub (Sep 8, 2020):
Thanks. Proved that SMTP Port is closed by ECS Server.