Loading...

Knowledge Base
Save up to  70% off.  Start your website today!

How to Set up your MX (Mail Exchange) Record

The Mail Exchange record or MX record indicates the mail server responsible for sending and receiving your emails. They basically tell your host where to deliver your emails. Depending on your email host, MX records may vary. Some may have multiple MX records, like Google Workspace, and some may only have one, like HostGator.

This article discusses setting up your MX records with HostGator as your email host.

Are you considering hosting your emails with another hosting provider? If so, please visit our support guide, How Do I Change My Website's MX Record? for details on how to set up your MX records.

This article will discuss the following topics.


How to Set Up my MX Records to HostGator

Follow these steps to configure your MX records for email hosting with HostGator.

Scenario 1: My domain is registered at HostGator, and I am using HostGator's name servers

If your domain is registered with us, it will automatically use HostGator name servers, which means your email will be hosted here by default. However, if you are using a different email host and wish to switch back to HostGator, please follow the steps below.

Step 1: Pointing MX Records to HostGator

To point your MX records to HostGator:

  1. Log in to your Customer Portal.
  2. Click Domains on the left-hand menu.

    Customer Portal - Domains tab

  3. Under Domains, look for the domain you need to manage for your emails.

    If you have a single domain in your account, you will be redirected right away to the domain management page.

    If you have multiple domains in your account, click the domain to go to the domain management page.

  4. On the domain management page, scroll down to the Advanced Tools section.
  5. Click the MANAGE link right next to Advanced DNS Records.

    Advance DNS Records - Manage

  6. Click CONTINUE to proceed.

    Advance DNS Records - Continue

  7. On the Manage Advanced DNS Records page, update your existing MX records to "mail.yourdomain.ext" (replace 'yourdomain.ext' with your actual domain name). If this MX record does not exist, click the +ADD RECORD button and select MX from the dropdown.

    + Add Record

  8. Fill out the rest of the required fields.
    • Mail Server: "mail.yourdomain.ext" (replace 'yourdomain.ext' with your actual domain name)
    • Priority: 0 (zero)
    • TTL: 14400
       
  9. Once done, click the ADD button.
  10. Delete other existing MX records with the same Priority.
  11. Once the MX records are set up, check if the A records for 'mail' exist.
    • If an existing A record for 'mail' with the correct HostGator IP Address exists, there is no need to change or add a new one.
    • If there is no existing A record for 'mail,' add a new A record using your HostGator IP address.

    Please see the section below to learn how to find your IP Address within your Customer Portal.

  12. Allow your DNS to fully propagate, which may take 0-4 hours.


Step 2: Setting up Email Routing

To set up email routing:

  1. Go to your cPanel.
  2. In the Email section, click Email Routing.

    HostGator cPanel MX Entry

  3. Select your domain from the dropdown menu. For this sample scenario, select Local Mail Exchanger.

    cPanel - Email Routing

    This section will show several email deliverability methods. For more information on these methods, please see Local, Backup, and Remote Mail Exchanger.

 

Scenario 2: I am not using HostGator name servers, but I want HostGator to host my emails

If your domain name does not use HostGator's name servers and you host your website elsewhere but want to host your emails with HostGator, follow these steps.

Please check your third-party host or domain registrar's Knowledgebase or contact their Support team to assist you in changing your domain's DNS records and email routing for your emails.

To connect your emails to HostGator via a third-party host:

  1. Get your HostGator IP address.

    To locate your HostGator IP:

    Customer Portal

    1. Within the Customer Portal, click on the Hosting tab.
    2. On the hosting management page, scroll down to the Server Information section.
      Server Information
    3. Click View under IP address to view and copy your IP.

    cPanel

    1. On the cPanel homepage, locate the General Information section on the right-hand side.
    2. This section will display your server information, including your IP address.

      cPanel - Shared IP Address

  2. Create an A record for your emails within your host's control panel or domain registrar. Use your HostGator IP address as your A record.
     
  3. Once the mail's A record is created, modify your MX record and email routing (set to "Remote") at your third-party host or domain registrar. Use HostGator's MX record, 'mail.yourdomain.ext' (replace 'yourdomain.ext' with your actual domain name), or HostGator IP address to connect your emails.
     
  4. If additional assistance is needed to update the current MX record, mail's A record, and email routing, don't hesitate to contact your hosting provider or registrar's Support team.
     
  5. Once DNS records are set up, allow time for propagation.

Essential Email Terms Explained

Here is a list of terminologies related to setting up emails that you may encounter in other supporting articles.

Terminology Description
Name Servers This is the server that hosts your DNS zone files. For more details, see the article: What Are My Name Servers?

Example:
  • hgns1.hostgator.com
  • hgns2.hostgator.com
Email Host This service provider hosts or handles your emails on their servers. 
Domain Pointing This is the process of setting up the server where you wish to host a service like your website or emails.
Email Routing This setting tells HostGator how to handle your emails, whether hosted locally (by HostGator) or remotely (by a different host). For more information, please refer to the article Local, Backup, and Remote Mail Exchanger.
MX Records These are the DNS records responsible for handling your emails.
Example: mail.yourdomain.ext
IP Address This is the IP address found in your Customer Portal and control panel.


To check your domain name's current name servers and MX records, you can use Leaf DNS.

Below are some examples of sample MX records:

Email Provider MX Record Value
cPanel

mail.yourdomain.com*

Reference: MX Entry

Professional Email

mx1.titan.email
mx2.titan.email

Reference: Setup Professional Email MX and TXT records

Google Workspace

GWS Sign-ups ON or AFTER April 2023:
SMTP.GOOGLE.COM
 

GWS Sign-ups BEFORE April 2023:
ASPMX.L.GOOGLE.COM
ALT1.ASPMX.L.GOOGLE.COM
ALT2.ASPMX.L.GOOGLE.COM
ALT3.ASPMX.L.GOOGLE.COM
ALT4.ASPMX.L.GOOGLE.COM

References:

Microsoft 365**

example-com.mail.protection.outlook.com

Reference: Add DNS records to connect your domain

Notes:
  • *Replace 'yourdomain' with your actual domain name.
  • **Due to updates required for our current products and packaging for Microsoft, we are currently unable to offer Microsoft 365. If you purchased Microsoft Office 365 through HostGator, you can still manage your subscription through the Customer Portal. If you want to purchase a professional email, you can sign up for Google Workspace or Professional Email.
Have further questions? Please contact us via phone or chat so we can assist you!
Did you find this article helpful?

 
* Your feedback is too short

Loading...