Error when sending test mail (using gmail) #1360
-
Beta Was this translation helpful? Give feedback.
Replies: 29 comments
-
Try it with |
Beta Was this translation helpful? Give feedback.
-
The same problem here. |
Beta Was this translation helpful? Give feedback.
-
With explicit TLS and Port 587 I get the same message. The difference is that it now appears instantly instead of being delayed 10s. I actually used a stop watch, so I'm sure it's not the 15s timeout that caused it before. |
Beta Was this translation helpful? Give feedback.
-
It works for me with the latest Docker image and the configuration I mentioned (I use 2FA). Perhaps your network provider blocks port 587? Try |
Beta Was this translation helpful? Give feedback.
-
The port isn't blocked. I get the response you mentioned |
Beta Was this translation helpful? Give feedback.
-
Maybe you can |
Beta Was this translation helpful? Give feedback.
-
I can't get that to work unfortunately
|
Beta Was this translation helpful? Give feedback.
-
You should firstly Edit: install libperl cannot solve the problem, just change the MTU. |
Beta Was this translation helpful? Give feedback.
-
I highly doubt perl has anything to do with this, given bitwarden_rs doesn't call out to perl to send mail. However, you might try using something like https://github.com/mludvig/smtp-cli from within your bitwarden_rs container to see if you can gain any insight into what's going wrong. Note that you will need perl and various modules in the container for this tool; see its README.md for details. |
Beta Was this translation helpful? Give feedback.
-
Yes, I'm sorry I made a mistake. To change the MTU, this is a way:
|
Beta Was this translation helpful? Give feedback.
-
I guess I have to put that in the docker-compose.yml, right? But what do I set the MTU to? Both the ubuntu LXC container and Proxmox show an MTU of 1500 using |
Beta Was this translation helpful? Give feedback.
-
As the guy in #943, I also used a gmail accont with a custom domain, but unlike them I couldn't solve it by using another account. I tried a different google account and one from a different provider. The error is still the same Edit: I just noticed that this time I got a different output in the console. I also got this one when I first encountered this problem, but I have no idea why I got the one from my first post temporarily.
|
Beta Was this translation helpful? Give feedback.
-
Did you click the save button to save your settings before testing each configuration? Otherwise the send test email functionality won't pick up on the changes. |
Beta Was this translation helpful? Give feedback.
-
Yes, i did |
Beta Was this translation helpful? Give feedback.
-
Hello, The following configuration is not working
The following configuration is working
So i conclude that there is a problem if SMTP_FROM differs from SMTP_USERNAME Hope this can help. Best regards, |
Beta Was this translation helpful? Give feedback.
-
unfortunately I already had set SMTP_FROM and SMTP_USERNAME to the same value, so that is not the reason for this issue |
Beta Was this translation helpful? Give feedback.
-
I got the problem in a different way.
|
Beta Was this translation helpful? Give feedback.
-
Have you tried to test connectivity and dns resolution (smtp gmail) From the Bitwarden_rs container itself (docker exec -it container-name sh)? |
Beta Was this translation helpful? Give feedback.
-
looks fine
Edit:
Edit2: |
Beta Was this translation helpful? Give feedback.
-
Same here, have change nothing and suddenly it does not work anymore. I get the same error on the webinterface but different in log: I run the bitwardenrs/server:raspberry docker on Rasbian stretch. Strangely I couldn't change settings and send a test email through logging in through my nginx proxy. Also there were no profile icons for the user, I believe. I have connected directly with the rocket port that goes out of docker. There it works (means I can change settings and request to send test email, but it fails, as the error log shows). |
Beta Was this translation helpful? Give feedback.
-
UPDATE: I upgraded to 1.14.2-5a390a97, but the error still occurs |
Beta Was this translation helpful? Give feedback.
-
Nothing has changed in the email sending code recently, so I wouldn't expect an upgrade to make a difference. Did you try my suggestion of seeing if you can get it work using another tool like Also, unless you're dead set on using Gmail for some reason, you might try something like SendGrid or MailJet instead. These all offer 100-200 emails per day on the free tier. |
Beta Was this translation helpful? Give feedback.
-
I fixed it only after I changed the provider. I had two E-Mail Addresses from the same provider, both didn't work. So I changed to another. Even as both providers actually belong to the same big company it worked with the other provider. Don't know why, this time he could reach the smtp server (a diffferent dns name, as the first provider) and everything worked. Had already the problem that the Provider has an automatic system, as if you normally send 3 E-Mails a day and you connect it to a logging service and you send like 100 E-Mails a day that you can get blocked to send any E-Mail, more than 3 or so. This is spam protection. Switching to the free trial of the premium plan and back resetted this timer. You have to train it that you send more E-Mails. This is probably not important, as Bitwarden does send very few E-Mails, wanted still to give my experience. |
Beta Was this translation helpful? Give feedback.
-
You both are right. The provider was the problem. I already had tested autistici.org which also caused the LetreErr. Now I'm using hosteurope.de with SSL, without explicit TLS and port 587. That works |
Beta Was this translation helpful? Give feedback.
-
Same problem here with the SMTP config for a Gmail account. I cannot figure out how to use Gmail without enabling less secure apps... |
Beta Was this translation helpful? Give feedback.
-
i have less secure apps and doesn't works. I've tried all the settings mentioned here. Anyone that has it working can post the configuration used for gmail ? Thanks in advance |
Beta Was this translation helpful? Give feedback.
-
Hi ppadial. Enabled : true I saved the settings before testing. Regards. |
Beta Was this translation helpful? Give feedback.
-
Thank you very much, i got it working too!! |
Beta Was this translation helpful? Give feedback.
-
YOU ARE A GENIUS! THIS WORKED! |
Beta Was this translation helpful? Give feedback.
Hi ppadial.
I finaly got it working ! Here is the configuration I use :
Enabled : true
Host : smtp.gmail.com
Enable SSL : true
Use explicit TLS : false
Port : 587
From Address : my_gmail_address@gmail.com
From Name : < The Name I want to show as Sender >
Password : < the "less secure app" password >
Json form auth mechanism : empty
SMTP connection timeout : 15
Server name sent during HELO : empty
I saved the settings before testing.
Hope this can help to make it work for you and others.
Regards.