mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #392] SMTP Error #226
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#226
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 @niklasdahlheimer on GitHub (Feb 10, 2019).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/392
Hey Guys,
I installed the docker image on our Synology-Docker. First of all: Thank you for the really easy way of configuring the container!
I have to issues:
If I do not regulate the CPU-usage, the bitwarden-container drives up to nearly 50% of CPU-usage over the time. With lowering the priority it still pumps up to 12%. is this correct? All our other containers (mysql, nginx, wekan,...) use around 0.5-2% CPU...the bitwarden container starts with 0% and then grows over the time, looks like kind of a memory leak...
SMTP is not working. The credentials are working in the other containers, so I guess it's not a problem with our mail-server (i also tried a googlemail-server to prove that). When I try to send an invitation mail
via SSL (Port 465), the log says:
[2019-02-10 16:41:24][lettre::smtp::client][DEBUG] connecting to ...:465
(** is our public IP)
our synology:
RS3614xs+, INTEL Xeon E3-1230 v2, DSM 6.2.1-23824 Update 4
A json dump of the container config with hidden (**) credentials
Looking forward for your responses! Thank you!
@dani-garcia commented on GitHub (Feb 10, 2019):
The server should basically use no resources when it's idle and not processing any requests. We've had some users in the past have some extra CPU usage when the websockets server is enabled, but I couldn't replicate it (and you don't seem to have it enabled anyway). How long does the process need to be running to reach the CPU usage you mention?
The SMTP issue seems weird. It looks like it can't reach the server. Can you make sure that the docker container has access to the mail server network somehow? If the mail server is in a public IP, you could just check that the container has internet access by making sure that the website icons download correctly.
@niklasdahlheimer commented on GitHub (Feb 11, 2019):
Hey!
Thanks for the quick response!
After the container-restart yesterday the container stayed at 0% CPU, I will observe that but can not reproduce it anymore (what is also kind of good :) )
About the SMTP issue:
When I try to connect to the mailserver without SSL via port 25 the log says:
So i guess the access to the network access to the mailserver could not be the problem.
when i google about SMTP and bitwarden I found out about a variable
globalSettings__mail__smtp__useDefaultCredentialsCould that be some source of problem?
Should I provide more logs?
Greetings
@dani-garcia commented on GitHub (Feb 11, 2019):
I think the problem might be related to the connection type we are using to securely connect to the server.
At the moment we are starting with an insecure connection that is then upgraded with STARTTLS, but there is also an option to just wrap the entire connection in a normal TLS layer.
I know of some SMTP servers which use different ports for those two options (like fastmail, which uses
25or587with STARTTLS or465with a TLS wrapper), which may be your case.The upstream settings are not used here so that shouldn't affect anything. I would make sure that all the options appear correctly in the SMTP section of the admin panel, and try using either port
25or587with SSL enabled hoping that the server would accept a STARTLS upgrade in those ports.If that doesn't work, I could create an option to select between those connection modes.
Also, why does your unencrypted example fail with authentication required? Check in the admin panel if the SMTP username and password are set correctly.
@niklasdahlheimer commented on GitHub (Feb 11, 2019):
Hey!
Connecting to Port 25 with SSL did the job! Great idea!
We are using a Kerio Connect Mail server.
I don't know either why the nonSSL Login via Port 25 failed. The credentials where correct. Maybe bitwarden uses some different kind of AUTH LOGIN or something like that?
Anyway, it works now and I am happy, but if you need any more information about this issue, just tell me, I would love to contribute to this great project (without having any web-development skills :) )