mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 01:10:09 +03:00
Cannot send email #1622
Reference in New Issue
Block a user
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.
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:
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:
Thanks. Proved that SMTP Port is closed by ECS Server.