I am trying to spin up my own mail server (mail-in-a-box because it seemed simple) for myDomain.com. I spun up a Linode server & got port 25 open and mapped box.myDomain.com to redirect me to the mail-in-a-box server correctly.
From box.myDomain.com/mail I am able to sign in to the mail service. I can send emails to any address local on the server or randomguy@gmail.com.
However, I run into problems because I can't reply to user@myDomain.com even though that is the email. I have tried setting up mx record to point traffic from @myDomain.com to the box.myDomain.com but it isn't working.
Current DNS records:
type name content
MX @ 0 x.x.x.x
A mx x.x.x.x
A box x.x.x.x //I forgot to include this because there are 25 entreis and just forgot it.
A @ y.y.y.y
MX box 0 box.myDomain.com
- y.y.y.y is the server that is currently up and running.
- x.x.x.x is the server that is up for my email. There are others
I am not sure if some of these are redundant or not as this is my first time setting up DNS.
Any help would be appreciated.
EDIT on HOW I fixed it I got confused with Domain.com's way of handling MX records because there is a priority field & the examples I found of the MX records were of the priority in the content field. I had to move the 0 to the priority and only have x.x.x.x in the content and it seems to be working now.