mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-24 00:53:23 -05:00
Email is sent but rejected by outlook because of the container's ipv6 #1849
Reference in New Issue
Block a user
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 @MrChausson on GitHub (Feb 13, 2024).
Subject of the issue
Hello, so I have just installed my vaultwarden (with the latest docker image) on my k3s cluster. And I have managed to make SMTP to work with office365 but the test mails are coming back to my inbox by outlook with this error:
The test emails are appearing in my Junk Email section of outlook:

It looks like it is using a temporary local ipv6 address on the internet (which has bad reputation because it has already been used a lot).
Is it possible to modify the image in order to not use this local address on the internet ?
Deployment environment
vaultwarden server docker version: vaultwarden/server:1.30.3
Install method: with this helm chart: https://artifacthub.io/packages/helm/gissilabs/vaultwarden on kubernetes v1.26.10+k3s2
Not that the cluster I have installed it on is using dual-stack networking which means containers have ipv4 and ipv6 internet access.
Reverse proxy and version: traefik
Steps to reproduce
Expected behaviour
Actual behaviour
Troubleshooting data
The ipv6 rejected by outlook looks to be a local ipv6 this is why I think it is rejected.
Thanks for your help in advance
@BlackDex commented on GitHub (Feb 13, 2024):
I actually think it has nothing to do with Vaultwarden, but more how the helm-chart/k8s works in this way.
Vaultwarden just uses the interface it is provided, and if that interface has a temp IPv6 address that is not something we can fix.
Same goes for IPv4 it just uses the provided IP's of the interface dedicated to Vaultwarden (or which every other Pod you run).
@MrChausson commented on GitHub (Feb 13, 2024):
Okay I see, I will search how to change that interface ip address then.
Thanks