MX DNS record

I am trying to make my own mail server, I tried hosting it on my raspberry pi and using a tunnel to expose my local app to the outside but when I also created a MX record it said that its exposing the ip of the cname record from my tunnel but since the tunnel just has a subdomain of cfargotunnel.com in it, will it actually expose my ip?
Was this page helpful?