Add an MX record

An MX record (or mail exchanger record) determines where your incoming emails should go. Thanks to it, you can have one server hosting your website and a different server (or cluster of servers) serving your emails. To understand how it works, you need to know how the entire DNS system functions.

Your domain has a DNS zone file created and stored by your hosting provider. When users try to access your website, their browsers query the DNS zone file for the IP of the server hosting the content. More specifically, it looks for the domain’s A record.

Similarly, when they send an email to an inbox associated with your domain, a mail transfer agent looks through the DNS zone file to find out where it needs to deliver your email. This information is available in the MX record.

After you add your domain to your ScalaHosting account, your control panel will automatically create a DNS zone file. By default, the zone file contains an A record and an MX record telling user’s browsers and email clients that your emails and website are all hosted on your ScalaHosting account’s server.

By editing the existing MX record or adding a new one, you can have a different server (or servers) handling your emails. Here’s how to do it on both SPanel and cPanel.


SPanel’s DNS editor is located on the User Interface’s homepage. It gives you a graphical user interface through which you can edit the domain’s DNS zone file.

Add an MX record, SPanel

A list at the bottom of the page contains all the DNS records currently set for your domain. On it, you can also see the default MX record set by SPanel.

Add an MX record, SPanel 2

You can click the Edit button and modify it directly. 

The fields you need to enter are:

  • Name – This is where you need to enter your domain, followed by a trailing period.
  • TTL – With this setting, you determine the lifespan (in seconds) of the cache stored in the DNS resolver.
  • Priority – The lower the number in this field, the higher the priority. The setting is applicable if you have multiple MX records.
  • Value – The field where you need to enter the mail server’s hostname. More information about it should be available at the server’s provider.

You can also add a new MX record from the form situated above the list of existing ones. Multiple MX records can ensure that more than one server is responsible for your emails, giving you better load balancing capabilities and redundancy.

Add an MX record, SPanel 3


cPanel also gives you a utility for editing the domain’s DNS zone file. It, too, is available on the control panel’s homepage.

Add an MX record, cPanel

You’ll see a list of all the domains added to your cPanel account, and next to each one of them, you can find a button for adding an MX record.

Add an MX record, cPanel 2

Bear in mind that changes to a domain’s DNS records can take up to 48 hours to propagate throughout the world. During this period, you may receive email messages both at the old and at the new server.

Feel free to contact our technical support specialists if you have any further questions.

Was this helpful?

What’s your goal today?

1. Find the right Managed VPS solution

If you’re looking for industry-leading speed, ease of use and reliability Try ScalaHosting with an unconditional money-back guarantee.

2. Make your website lighting fast

We guarantee to make your WordPress site load in less than 2 seconds on a managed VPS with ScalaHosting or give your money back. Fill out the form, and we’ll be in touch.

Please enter a valid name
Please enter a valid website
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

3. Streamline your clients’ hosting experience

If you’re a web studio or development agency hosting more than 30 websites, schedule a call with Vlad, our co-founder and CTO, and see how we can deliver unmatched value to both your business and your clients.


Need a custom cluster or professional advice?

Book a meeting and get a free 30-minute consultation with Vlad, co-founder & CTO of Scala Hosting, who will help you select, design and build the right solution - from a single data center cluster to a multi-region & multi-datacenter high availability cluster with hundreds of servers.

Book a free consultation

4. Learn how to grow your website in 2024

An all-star team of SEO and web influencers are sharing their secret knowledge for the first time in years. Learn about the future of SEO, Web Design best practices and the secrets to getting the foundation for your website to thrive. Watch the exclusive webinar.

An Exclusive Insiders Look Behind The SEO and Web Development Curtain


Working in the web hosting industry for over 13 years, Rado has inevitably got some insight into the industry. A digital marketer by education, Rado is always putting himself in the client's shoes, trying to see what's best for THEM first. A man of the fine detail, you can often find him spending 10+ minutes wondering over a missing comma or slightly skewed design.