Set sensible SMTP timeout #3237

Closed
opened 2026-04-06 04:41:29 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @Kidswiss on 11/5/2019

When SMTP is enabled it will send a "new device" mail to the user's configured mail address. If that mail server is unreachable for some reason, or misconfigured, it will hang indefinitely with following log entries on the server:

[2019-10-27 17:43:33][rocket::rocket][INFO] POST /api/accounts/prelogin application/json; charset=utf-8:
[2019-10-27 17:43:33][_][INFO] Matched: POST /api/accounts/prelogin (prelogin)
[2019-10-27 17:43:33][_][INFO] Outcome: Success
[2019-10-27 17:43:33][_][INFO] Response succeeded.

On the client (Chrome):
image

Enabling debugging I saw that the server is hanging trying to connect to the SMTP host to send the "new device" mail, seemingly forever.

As discussed in #687 with @BlackDex there was already a discussion about this on the matrix chat on October 18.

*Originally created by @Kidswiss on 11/5/2019* When SMTP is enabled it will send a "new device" mail to the user's configured mail address. If that mail server is unreachable for some reason, or misconfigured, it will hang indefinitely with following log entries on the server: ``` [2019-10-27 17:43:33][rocket::rocket][INFO] POST /api/accounts/prelogin application/json; charset=utf-8: [2019-10-27 17:43:33][_][INFO] Matched: POST /api/accounts/prelogin (prelogin) [2019-10-27 17:43:33][_][INFO] Outcome: Success [2019-10-27 17:43:33][_][INFO] Response succeeded. ``` On the client (Chrome): ![image](https://user-images.githubusercontent.com/7460550/68217328-b40db600-ffe2-11e9-8f84-13ec4fc87437.png) Enabling debugging I saw that the server is hanging trying to connect to the SMTP host to send the "new device" mail, seemingly forever. As discussed in #687 with @BlackDex there was already a discussion about this on the matrix chat on October 18.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/vaultwarden#3237