Home/HighLevel/Features/Email/HighLevel guide for Mailgun domain setup on HostGator

Conversations and Inbox

HighLevel guide for Mailgun domain setup on HostGator

In short

This feature shows how to connect Mailgun to a domain hosted on HostGator using cPanel. It covers signing up for Mailgun, adding a domain or sub domain, creating SPF, DKIM, MX and CNAME records, verifying DNS and finalising the integration in HighLevel.

AreaEmail · MailGun
Used forDigital marketing agency, Ecommerce store, Consulting firm
Setup steps34 steps in 8 tasks
Last updatedNovember 16, 2026

01Who this is for

  • Marketers who need to send authenticated email through Mailgun from HighLevel.
  • Developers or agencies managing client domains hosted on HostGator.

02MailGun DNS records, explained

Mailgun provides sending and validation services for email. When linked to a HostGator domain, HighLevel can route outbound messages through Mailgun’s infrastructure. The connection relies on five DNS entries, two TXT, two MX and one CNAME, placed in the domain’s Zone Editor.

The process lives inside HostGator’s cPanel. After creating a Mailgun account, the user adds a domain (or a sub domain) in Mailgun, then copies the required DNS values into cPanel. Once Mailgun confirms that all records resolve correctly, the API key is entered in HighLevel’s email settings, enabling the platform to send mail through Mailgun.

03How businesses use mailGun DNS records

  • Digital marketing agency. The agency creates a sub domain such as mg.agency.com in Mailgun, adds the SPF, DKIM, MX and CNAME records in HostGator cPanel, verifies them, and then stores the Mailgun API key inside HighLevel to send client newsletters.
  • Ecommerce store. The store registers its primary domain with Mailgun, enters the DNS records required for authentication, verifies the setup, and uses the API key to send order confirmations from HighLevel without disturbing its existing Google Workspace inbox.
  • Consulting firm. The firm sets up a dedicated sub domain like replies.consult.com, adds the required DNS entries in cPanel, confirms verification and connects the API key, allowing HighLevel to manage reply to addresses for its outreach campaigns.

04The numbers and rules that matter

  • Two TXT records: SPF value v=spf1 include: Mailgun.org ~all and a DKIM record unique to your domain.
  • Two MX records: Priority 10, destinations mxa.mailgun.org and mxb.mailgun.org.

05Before you start

  • A Mailgun account must be created and the email address verified.
  • Access to the domain’s HostGator cPanel is required.

06How to set up and use mailGun DNS records in HighLevel

Sign up for Mailgun and add your domain

  1. Create a new Mailgun account and confirm the registration email.
  2. Log into the Mailgun dashboard.
  3. Select Sending then choose Add New Domain.
  4. Decide between using the root domain or a sub domain, following guidance on shared usage.
  5. Set the region to US (do not select EU) and click Add domain.
  6. Leave the screen that lists DNS records open for the next step.

Access DNS records in cPanel

  1. Log in to HostGator cPanel.
  2. Click Zone Editor within the Domains section.
  3. Locate the target domain and press Manage.
  4. Press +Add Record and choose Add "TXT" Record.

Add the 1st TXT record (SPF)

  1. Enter the host part only (for example mg or @) in the Name field.
  2. Paste v=spf1 include:mailgun.org ~all into the Record field.
  3. Click Add Record.

Add the 2nd TXT record (DKIM)

  1. Click +Add Record again and select Add "TXT" Record.
  2. Enter the host name extracted from the DKIM value, stopping before the domain suffix.
  3. Copy the full DKIM string from Mailgun and paste it into the Record field.
  4. Click Add Record.

Add the 1st MX record

  1. Click +Add Record and choose Add "MX" Record.
  2. Enter the appropriate host name (mg, replies, or @).
  3. Set Priority to 10.
  4. Enter mxa.mailgun.org as the Destination.
  5. Click Save Record.

Add the 2nd MX record

  1. Add another MX record via +Add Record and select Add "MX" Record.
  2. Use the same host name as the first MX record.
  3. Set Priority to 10 and Destination to mxb.mailgun.org.
  4. Click Save Record.

Add the CNAME record

  1. Select +Add Record and pick Add "CNAME" Record.
  2. Provide the host name prefix (email.mg, email.replies, or email) as shown in Mailgun.
  3. Set the target value to mailgun.org.
  4. Click Save Record.

Verify DNS & finish setup

  1. Return to Mailgun and click Verify DNS Settings.
  2. If any record is still pending, wait briefly and click Verify again.
  3. When all five entries show a green check, locate the Mailgun API key.
  4. Enter the API key in HighLevel’s email service settings and send a test email.

07What it looks like in HighLevel

08Settings that matter

  • Name. Specifies the sub domain portion of the record; the root domain is automatically appended.
  • Record. Holds the value for TXT, MX or CNAME entries such as SPF strings or DKIM keys.
  • Priority. Applies to MX records to determine mail routing order; Mailgun requires a value of 10.
  • Destination. Defines the server address for MX entries, either mxa.mailgun.org or mxb.mailgun.org.

09Things to know before you rely on it

  • The domain must be added in the US region; the EU region is not supported for this setup.
  • If Google Workspace uses the main domain, Mailgun should be configured on a sub domain to avoid mail routing conflicts.
  • DNS changes may need several minutes to propagate before verification can succeed.

10If something goes wrong

  • Unable to locate Zone Editor in cPanel. Log into cPanel, scroll to the Domains area, and click Zone Editor to view and manage DNS records.
  • Uncertainty about using main domain versus sub domain. Choose a sub domain if the main domain already handles email through Google Workspace or another provider.
  • Confusion over "do not include the root domain" for the Name field. Enter only the prefix (such as mg or email) in the Name field; cPanel automatically adds the full domain.
  • Existing Gmail or Google Workspace mail stops working. Maintain the original MX records on the main domain and only add Mailgun records to a separate sub domain.
  • DNS verification remains pending. Wait a short period for propagation, then click Verify DNS Settings again in Mailgun.
  • All records verified but sending still fails. Retrieve the Mailgun API key from the Mailgun dashboard and insert it into HighLevel’s email service settings; send a test email to confirm.

11How it connects to the rest of HighLevel

  • Overview of Mailgun capabilities and pricing in HighLevel Mailgun overview
  • Step by step guide for configuring Mailgun with another registrar Mailgun with GoDaddy
  • Instructions for adding an SMTP provider, useful when entering the Mailgun API key SMTP providers
  • Pricing details for HighLevel plans that include Mailgun integration Pricing
  • Start a 30 day trial to test Mailgun integration before committing 30 day trial

Michael's take

Michael Reimer
Michael ReimerFounder of CRM Pros, HighLevel Commander and Certified Admin

When you need reliable email delivery for newsletters, order confirmations, or support tickets, the MailGun DNS records let you route sending through MailGun.

If you only send occasional emails or already have another email sending service, the extra setup and DNS changes may not be worth it.

Get More InformationOpens on HighLevelPublished November 2, 2026 · Updated November 16, 2026

Common questions

Common questions about mailGun DNS records.

Where can I find the Zone Editor in HostGator cPanel?

Log into cPanel, locate the Domains section and click Zone Editor. From there, select Manage next to your domain to view and add DNS entries.

Should I configure Mailgun on my main domain or a sub domain?

Use a sub domain if the main domain already receives email through Google Workspace or another provider. This prevents conflicts with existing mail routing.

What does “do not include the root domain” mean for the Name field?

In cPanel’s Zone Editor, only the sub domain part is required. The system automatically appends the full domain name.

Will adding Mailgun records disrupt my current Gmail delivery?

No, as long as you keep the existing MX records on the main domain and add Mailgun records to a separate sub domain.

How long does DNS verification usually take?

Propagation is often quick, but it can sometimes require a few hours. Refresh the verification button after waiting.

What are the next steps after all DNS records show a green checkmark?

Copy the Mailgun API key, paste it into HighLevel’s email service configuration, and send a test email to confirm successful delivery.

Next step

Pick the features that matter. Then get the plan that unlocks them.

Explore the features you want, start with the five at the top, and upgrade through my link when you are ready. The bonuses and the team come with it.

The features directory explains every HighLevel feature in plain English. Browse it to see what the platform can do.

Back to the FeaturesSee the full details
⌃

Site preview

Explore the next page

This destination is reserved in the page inventory and is not built yet.