DNS in cloudflare GUI is set correctly but when you do an MX lookup or dig it answers with mendaaxxx.tech. IN MX 10 _dc-mx.05988edfc893.mendaaxxx.tech. instead of mail.mendaaxxx.tech
What feature, service or problem is this related to?
Just a follow up, I have discovered it is directly related to the cloudflare tunnel, if I remove it, the DNS record is correct, is there anyway around this?
Unfortunately, that’s a no go. And the MX record domain is your least concern.
Cloudflare’s proxy only supports htttp/s traffic (unless you have Spectrum). And as a tunnel, by definition, requires the proxy, you’re not going to be able to run a public mail server behind it.
Sure, and you can tunnel any UDP/TCP traffic between two devices running the tunnel software, but not the public internet.
Tailscale my be a better solution if you really want to run a local mail server, but why bother at all? I host a lot of things myself, but mail is where I draw the line