We have setup a mail server and created the following DNS records. Assuming our domain is example.com:
A @ 10.0.0.5
A mail 10.0.0.1
MX example.com mail.example.com
Note 10.0.0.1
is just an example. We are actually using a public IP address instead.
We have also had our hosting company setup a proper PTR record pointing to mail.example.com
and 10.0.0.1
.
For some reason, when people send up email, they don't deliver and have this message on the return mail message:
The recipient server did not accept our requests to connect. Learn more at https://support.google.com/mail/answer/7720 [example.com 10.0.0.5: timed out]
For some reason, instead of trying to connect to 10.0.0.1
email servers on the web are trying to connect to 10.0.0.5
, our origin
(@
) address.
We don't want to point @
to our mail server if we can help is as we have a ton of CNAME
records pointing to @
for web hosting purposes.
Have we incorrectly setup our DNS? What can we fix it?
10.0.0.1
IP address returned when you runnslookup mail.example.com
? How long ago did you change these DNS records - remember that DNS changes can take up to 24 (sometimes 48) hours to fully propagate - whatsmydns.net should help with this.mail
is anA
record? These records only accept IP addresses, so the value ofmail.example.com
for yourA
record cannot be valid.nslookup mail.example.com
returned correct IP address, but MX record was not being found. I fixed the errors in my question.