In this article, we explain how to set an MX record within the DNS settings of your domain name.
MX stands for Mail Exchanger. An MX record indicates which mail server is responsible for receiving and sending email from your domain name.
If you want to use multiple mail servers to send emails, you use an MX record to indicate which mail server has priority over the other mail server(s).
Where do I add an MX record?
You can add all your DNS records easily and free of charge via your control panel. Go to the 'Domain & Hosting' tab and click the domain in the left column for which you want to set the MX record (do not check).
Now scroll to 'Advanced Domain Settings', followed by 'DNS'. If you do not see this yet, first click the switch behind 'TransIP settings' so the TransIP settings are switched off. This will show an overview of your DNS records .
How do I set an MX record?
When you have ordered a web hosting package for your domain name, you can create email addresses as desired and send and receive email with these. It is important for this that the MX record of the web hosting package is present in the DNS settings of your domain name.
In the example below, you see the MX record and the so-called SPF record of our web hosting packages for the domain site-example.com. The MX record is needed to send and receive emails.
Under 'Name' you see that an @ is filled in, indicating that the MX record applies to the primary domain site-example.com.
Under 'Value' you see 10 mx.transip.email. Here, 10 is the priority of the specified mail server mx.transip.email. The priority of MX records is indicated on a scale from 0 to 100, where 0 is the highest priority and 100 is the lowest priority.
The SPF record contains information about the hostnames and the IP addresses that can send emails from your domain. Read this article for more information about the SPF record.
You set up an MX record by starting with the name. Here you specify for which part of the domain the DNS record should work. You can set up an MX record for both your primary domain and a subdomain.
- If you want to set an MX record for a primary domain, enter an @ as a name.
- If you want to set an MX record for a subdomain, only enter the subdomain as the name (without putting the domain name after it). Our DNS software adds your domain name in the background.
The 'TTL' of a DNS record determines how long the record can remain in the cache. We recommend keeping the TTL low, for example at 1 or 5 minutes.
Because you want to set an MX record, choose 'MX' under 'Type'.
The value of an MX record always starts with a priority for the following mail server. As mentioned, you use a priority from 0 to 100 here, where 0 has the highest priority and 100 the lowest priority.
After the priority, you specify the mail server which you then close with a dot, also called 'trailing dot'. The trailing dot ensures that our DNS software does not also place your domain name behind the value. In our example of the web hosting package, 10 mx.transip.email. is the entire value. Pay attention to the closing dot.
Please note: The trailing dot can only be used for the value of a CNAME, MX and SRV record.
The name of a DNS record can only be a subdomain of your primary domain, or the primary domain itself, it is not required to use the trailing dot in the name of the record. This option is as such also disabled in our DNS software.
Keep in mind that it can take up to 24 hours before changes to DNS settings to be implemented globally. This is related to the way external systems process these changes. You usually see these changes well within 24 hours.
This article has discussed the setting of an MX record. For a general explanation about DNS records and entering them, see the article ‘What is DNS?'.
Should you have any questions left regarding this article, do not hesitate to contact our support department. You can reach them via the ‘Contact Us’ button at the bottom of this page.
If you want to discuss this article with other users, please leave a message under 'Comments'.