What are MX records?

An MX (Mail Exchange) record is a type of DNS record that specifies the mail server responsible for accepting email messages on behalf of a domain. It’s used to route email messages to the correct server and ensure that they are delivered to the right recipient.