1

My question is similar to this question. I checked other questions on Webmasters, but found none referring specifically to implicit MX records.

I'm helping someone move a site hosted on Bluehost to Vercel. But, I want to keep the email of the site hosted on Bluehost. We are using Bluehost name servers, and I don't want to change name servers.

I can't find any MX records for the site, not through Bluehost's UI, through dig, or through DNSchecker.org. Sites such as the FAQ on open-spf.org and elsewhere say that SMTP will deliver mail to the IP of the A record if no MX record is present. They call this implicit MX, and every site I read says it's not recommended because it means an extra DNS lookup for anyone trying to deliver mail to this address. Here's a summary of the DNS records:

  • The mail subdomain has an A record pointing to Bluehost's server.
  • smtp and imap are CNAMEs pointing to mail.
  • www is a CNAME to the apex domain.
  • There is an SPF record for the apex domain with settings v=spf1 a mx include:someexternalwebsite.com ~all.

With this DNS configuration, when I change my A record for the apex domain to point to Vercel's servers, will the site's email break?

The question I linked to at the top of my post says that if the MX record points to the apex domain, then the email will break because the MX will resolve to the wrong server. Is that also true for my implicit MX record? What do I need to change to make point to the new server while keeping email up and running?

I want to avoid any downtime for the email as it's critical for business operation.

2 Answers 2

0

Yes, mail will break. It will break in multiple ways - your email will not be routed to Bluehosts servers, and even if it were, SPF would soft fail because the A record is not relevant to the mail server and there is no MX record.

That you are relying on A records for delivery is extremely dodgy - I've not seen this done as a correct setup on any server since I started working with POP and SMTP 30 odd years ago. The correct solution is to set up MX records

That said, fixing this should be easy. Double check with Bluehost - but all you need to do is set up an MX record to the Bluehost mail server. Then you can repurpose your A record. Just don't use CNAMES.

  • Leave the left hand side (subdomain) blank.
  • Set a record type of MX.
  • Pick a priority - as you only have 1 MX server it doesn't matter - a priority of 10 is a reasonable choice.
  • Set the data / target to mail.yourdomain.com (or better the target of the cname that mail.yourdomain.com converts to. this needs to be a domain name, not an IP address.
  • If you can set a TTL, choose a low value like 60 seconds. You can always increase it later, but having a low value allows you to be responsive if you stuff something up.

Done.

0

when I change my A record for the apex domain to point to Vercel's servers

Provision an MX record for stmp.example.com / don't use implicit MX. Update the SPF record and SMTP server HELO name to match.

Don't cut corners unless you know EXACTLY what you are doing / why you are doing it / what implications this has for current and future.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.