I cannot receive Microsoft's mails #4167
-
|
I recently created my domain, and added DMS to have more control over my mail. So far, everything has worked great, except when it comes to Microsoft. For some obscure reason, DMS blocks microsoft's mail with the following error : Now, this doesn't really make sense to me : in what world would Microsoft not have a valid SPF record ? Following the (not so good) advice of an AI, I then edited my SPF record to look like this :
Which litteraly whanged nothing. I tried going to the SDNS website to register my VPS's IP address... but of course I can't receive mails from them, so I can't continuer the procedure. (I should also add that I can sen mails to outlook users, I don't know yet if I can receive them. But clearly automated mails don't work). Plus, the "received from" IP address seems to be an allocated private address... which makes even less sense. So, I don't know why this happens, why only with microsoft (maybe it's not the only one but I haven't got the problem elsewhere for now), and I frankly don't een really know what is going on. So, any help would be gladly welcomed. (PS : I know this was discussed already in #4017 but the only solution proposed is to whitelist on sdns... and I can't receive mails from them) Thanks for helping ! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
I cannot reproduce this. I've send an email from outlook.com to my DMS and it worked just fine.
That could be an issue for the SPF check. Is your host IPv6 enabled? If so, try disabling it (temporary). IIRC, IPv6 traffic is "hidden" behind a local IPv4 gateway address. So it's possible, that this issue only occurs, if mail is delivered via IPv6. |
Beta Was this translation helpful? Give feedback.
-
Please look at our docs regarding IPv6 support. If your containers only offer IPv4 private IP but your Docker host receives IPv6 connections, the default If you want to serve IPv6 correctly, you'll need to enable IPv6 support in Docker (from Docker v27 this should work out of the box I think), which requires updating your If you disable IPv6 from the host, you may also want to avoid any AAAA DNS record too so no service thinks they can reach DMS via IPv6 only to get rejected. For disabling IPv6 on the Docker host itself, you only should need to disable the There is one other caveat where the above advice isn't sufficient. If there is any proxy layer in between the client and the DMS container, you'll additionally need to follow our reverse proxy docs for configuring |
Beta Was this translation helpful? Give feedback.
Please look at our docs regarding IPv6 support.
If your containers only offer IPv4 private IP but your Docker host receives IPv6 connections, the default
/etc/docker/daemon.jsonsettinguserland-proxy: truewill allow accepting such connections instead of rejecting them. It does so by proxying through the docker networks IPv4 gateway IP which becomes the new source IP instead of the original connections. That isn't permitted by the external service SPF, hence the failure.If you want to serve IPv6 correctly, you'll need to enable IPv6 support in Docker (from Docker v27 this shou…