Loading...

Knowledge Base

How Do I Change My Website's MX Record?

A mail server uses an MX record to manage incoming emails. When you change your MX record, it directs emails to a different server. This can be useful if you want to continue using your old email service after migrating your website or if you prefer to use a third-party email service, such as Google Workspace. In such cases, you will need to configure your email settings according to the new server.

This article will guide you in setting up your MX records to use remote settings or a third-party email service while keeping your website hosted at HostGator.

Do you want HostGator to host your emails? If so, please visit our support guide, How to Set Up Your MX (Mail Exchange) Record, for more details.

In using the remote settings for your emails, you need to indicate the following:

  • MX record - Your new email host will provide this.
  • Mail's A record - This is the IP address connecting to your preferred email host.
  • Email routing - This is your email delivery method.

Here are the topics we will discuss in this article.

How to Point Your Emails to a Different Email Host

Here are the steps to point your emails (MX records) to another email host.

  • Step 1: Obtain your email provider's MX record values and IP address.
  • Step 2: Update your MX and mail's A records within your Customer Portal.
  • Step 3: Set your email routing (email delivery method) to Remote.

Once you have your email host's MX record and IP address (for your mail's A records), you can proceed with updating your DNS records ⤵ with the Customer Portal and email routing ⤵ within cPanel.

How to Update MX and A Records within the Customer Portal

To manage your MX records, there are two possible scenarios for handling domains:

In both cases, as long as your domain is pointing to HostGator's name servers, you can manage its DNS records, including the MX records, through your Customer Portal.

Scenario 1: My domain is registered with HostGator and pointed to my HostGator name servers

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

    Customer Portal - Domains tab
     

    • If you have a single domain in your account, you will be redirected to the domains panel right away.
    • If you have multiple domains, a list will appear. Click the domain you want to manage.

      List view:

      domains-tab-select-domain
       

      Card view:

      domains-tab-select-domain
       

  1. Go to the DNS tab.
  2. Scroll down to the Manage Advanced DNS Records section.
  3. Look for the existing 'mail.yourdomain.ext' MX record, click the vertical-ellipsis icon on the right, and then select Edit.

    Edit MX Records
     

  4. Enter your email host's MX records in the Mail Server field. We recommend keeping the correct Priority order as specified by your email provider. Click Edit.

    Mail Server field
     

  5. Next, scroll up to the A section and look for the "mail" A record.
  6. Click the vertical ellipsis on the right, then select Edit.

    Edit mail's A Records
     

  7. In the pop-up window, enter your email host's IP address and then click Edit.

    Enter mail's A Records
     

Once done, let your DNS records fully propagate. You may want to use DNS lookup tools, such as LeafDNS, to verify that the MX and mail's A records have been updated correctly. You may now proceed to update your email routing ⤵.

Scenario 2: My domain is not registered with HostGator, but is pointing to my HostGator name servers

For domains not registered with HostGator but pointing to your HostGator name servers, you can still manage your DNS records within your Customer Portal. Your domain will be listed in the Customer Portal as an "External domain."

Customer Portal - External Domain
 

To update your domain's MX records:

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

    Customer Portal - Domains tab
     

    • If you have a single domain in your account, you will be redirected to the domains panel right away.
    • If you have multiple domains, a list will appear. Click the domain you want to manage.

      List view:

      domains-tab-select-domain
       

      Card view:

      domains-tab-select-domain
       

  1. Scroll down to the Manage Advanced DNS Records section.
  2. Look for the existing 'mail.yourdomain.ext' MX record, click the vertical-ellipsis icon on the right, and then select Edit.

    Edit MX Records
     

  3. Enter your email host's MX records in the Mail Server field. We recommend keeping the correct Priority order as specified by your email provider. Click Edit.

    Mail Server field
     

  4. Next, scroll up to the A section and look for the "mail" A record.
  5. Click the vertical ellipsis on the right, then select Edit.

    Edit mail's A Records
     

  6. In the pop-up window, enter your email host's IP address and then click Edit.

    Enter mail's A Records
     

Allow enough time for your DNS records to fully propagate, which can take 4 to 8 hours. You can use DNS lookup tools like LeafDNS to verify that the MX and A records for the mail have been updated correctly. The next step is to update your email routing ⤵.

How to Set Up Email Routing (Email Delivery Method)

Email routing determines how you want your emails to be delivered. Since you will be using another email host, you need to set your email routing to Remote.

To set up remote email routing:

  1. Log in to your Customer Portal.
  2. From the left-hand navigation menu, click Email & Office.
  3. Select cPanel Email from the available options.

    Customer Portal - Email & Office cPanel Email
     

  1. Click the cPanel Email dropdown menu and select Email Routing.

    cPanel Email link - Email Routing
     

  2. You'll be redirected to cPanel's Email Routing section, where you can select your email's domain from the dropdown menu.
  3. Choose Remote Mail Exchanger from the list of options.

    Email Routing - Remote Settings
     

  4. Click Change to save the new setting.

For more information on the different email delivery methods, please see Local, Backup, and Remote Mail Exchanger.

How can we help you? Please contact us via phone or chat if you need assistance.

Loading...