-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMTP falsely prefers IPv4 over IPv6 #5161
Comments
I think this isn't something specific to Vaultwarden, but more to the mall library/crate https://github.com/lettre/lettre. It also isn't something we control in Vaultwarden. |
Do you have IPv6 enabled in docker? Because I don't think that this is the applications fault but should depend on your system setup and I don't think that docker by default can resolve ipv6 addresses. edit: at least podman cannot do this as far as i've tested it: root@vaultwarden:/# curl -6 google.at
curl: (7) Failed to connect to google.at port 80 after 30 ms: Couldn't connect to server (and running my vaultwarden instance locally it seems to connect just fine to the ipv6 address according to the smtp server) |
Docker sucks with IPv6 tbh
|
Can you run something like |
This gives me the IPv4 address when I'm inside a container. But I don't understand... I can both connect to container services inbound via IPv6 and outbound v6 communication basically also works. |
Well, I'm glad we could narrow it down a bit. So it might be specific to podman and the way it resolves DNS or how you set it up? In any case I don't think I can help any further as I have not enabled IPv6 in podman myself yet and this is probably something you should ask the podman community directly. |
On the lettre side we don't do dualstack properly, so it's going to use whichever IP address the resolver returns first. As for running |
Would that be wrong? I mean that's how the RFC explains how it typically works as well, is it not?
|
I might have linked the wrong RFC. When it comes to precedence question RFC 6555 is the relevant one. |
Yeah what I meant is that we don't implement happy eyeballs at all |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Vaultwarden Support String
Your environment (Generated via diagnostics page)
Config (Generated via diagnostics page)
Show Running Config
Environment settings which are overridden: DOMAIN, SIGNUPS_ALLOWED, ADMIN_TOKEN, SMTP_HOST, SMTP_SECURITY, SMTP_PORT, SMTP_FROM, SMTP_USERNAME, SMTP_PASSWORD
Vaultwarden Build Version
1.32.3-2f20ad86 (testing tag)
Deployment method
Official Container Image
Custom deployment method
No response
Reverse Proxy
nginx 1.22.1
Host/Server Operating System
Linux
Operating System Version
Debian 12
Clients
Web Vault
Client Version
Firefox 132.0
Steps To Reproduce
Configure SMTP settings with DNS name that both resolves IPv6 and IPv4 address.
As in RFC 6724 it is required that IPv6 is being preferred over IPv4.
Expected Result
Instead of trying to connect to the SMTP host via IPv4 first, it should prefer IPv6. BTW it's a GUA address, no ULA.
Actual Result
The application tries to connect via IPv4 first.
Logs
Screenshots or Videos
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: