Replies: 9 comments 67 replies
-
The mail server you are using is using an invalid certificate. Looking at the message it is expired. |
Beta Was this translation helpful? Give feedback.
-
Ah, wait, you are using an older alpine image i see. The |
Beta Was this translation helpful? Give feedback.
-
@alderson59 are you using Google Workspace or whatever the hell Google is calling their business G Suite these days? I tested this via my private server and my business server, same settings aside from user/password that would obviously need to be different. My private server sends fine. The business server using the Gmail business services fails. All settings correct in both instances. |
Beta Was this translation helpful? Give feedback.
-
Just tested the same settings configuration in another hosted service we run on the same VM, using the Workspaces smtp-relay and direct login, and the emails went through just fine, so the issue is definitely on the Vaultwarden end. |
Beta Was this translation helpful? Give feedback.
-
Well, i don't know what is wrong with the attempts you do, but for me it works without any issue. I have tried both private and google workspace accounts with an less-secure-app-password and there are no issues. All tests went fine. The only thing left for you to test, since it is reporting an expired certificate is to test the connection it self from within the container.
All chains should return The thing is, an expired certificate just can't happen if the cert really isn't expired. Also, check the |
Beta Was this translation helpful? Give feedback.
-
@BlackDex For troubleshooting: Our VM that I'm using is hosted by Google, all traffic allowed out and standard http, https, and their other standard ports open (essentially Googles default firewall config for their hosted VMs, aside from one additional port for another service). Container mapped ports are exposed on localhost only (mapped 127.0.1.1:3012:3012, for example). IPTables firewall on the VM, no management app. I've omitted unrelated rules:
HAProxy is installed and provides HTTPS redirect, SSL offloading, and reverse proxy services. Listening on 80 and 443, routing to 127.0.1.1 on appropriate ports. |
Beta Was this translation helpful? Give feedback.
-
I'm not sure why you have separate rules for output of 465,587 and 25 while you say all outgoing is allowed by default. I think you can remove those rules and try to see what happens. |
Beta Was this translation helpful? Give feedback.
-
Hello, pretty late here but I'll try giving you something to try. I think we can rule out the wrong port ipothesis as failing to connect would have never gotten lettre to the point of sending commands to the SMTP server (#2040 (reply in thread)) What you could try as a quick test is to use openssl to open a TLS connection to the relay server and manually issue SMTP commands. From a quick glance on Google most SMTP guides seem incomplete, for example most of them don't tell you to login. You can follow those but also check against commands issued by lettre (which you can see in the logs) to see if they missed a step. I'll try looking deeper into this and sending more specific instructions in the following days. |
Beta Was this translation helpful? Give feedback.
-
Hi all, just to reiterate on my opening thread, I'm not using Google or any of their strange "less secure apps" protocols. I'm selfhosting mailcow (https://github.com/mailcow/mailcow-dockerized), and this has been running well for my system for a long time. SSL/TLS works on incoming and outgoing emails. Is there currently a way to bypass this invitation process so that I can get a new user set up? |
Beta Was this translation helpful? Give feedback.
-
Deployment environment
docker image vaultwarden/server:1.21.0-alpine
Reverse proxy and version: docker image jc21/nginx-proxy-manager:2.9.7
Reverse proxy works and SSL is up-to-date. This feature used to work well under the same conditions.
Steps to reproduce
Didn't have this issue previously on this version, even. But recently, when I did the following, it did not succeed.
I added a new user to the organisation, and
Smtp error
message showed in red. Logs shown above.No emails were sent, and no emails were received. User was not able to be confirmed in vaultwarden
Expected behaviour
Email should be sent and received.
Troubleshooting data
Beta Was this translation helpful? Give feedback.
All reactions