Mailgun Setup – Namecheap Domain Setup

If you’re sending emails from GoHighLevel without authenticating your domain, you’re leaving deliverability—and revenue—up to chance. The fastest way to fix that is by connecting a properly configured Mailgun domain on top of your Namecheap DNS.


Get a Free Trial of GoHighLevel

This guide walks you through the exact steps to set up Mailgun with a Namecheap domain for GoHighLevel, so your broadcasts, automations, and system emails actually land in the inbox.

Who this is for
Agencies, consultants, and local businesses using GoHighLevel who own a domain on Namecheap and want reliable email delivery through Mailgun.

Quick win
If you haven’t created your GoHighLevel account yet, you can start a free GoHighLevel trial and follow this setup as you go.


Before you start: what you need in place

Make sure you have:

  • An active Namecheap account with a domain you control.
  • A Mailgun account (free or paid) you can log into.
  • Access to GoHighLevel (Agency or sub-account) settings.
  • Ability to edit DNS records in Namecheap (you’ll need Advanced DNS access).

You’ll get the best results if you use a dedicated sending subdomain (for example, mg.yourdomain.com) just for email, while keeping your main domain free for your website and other services.


Step 1: Create and verify your Mailgun account

  1. Go to mailgun.com and create an account.
  2. Confirm your login email address by clicking the verification link Mailgun sends you.
    Screenshot of a Mailgun email verification link in an inbox
    Screenshot confirming Mailgun email verification successful
  3. Log in and make sure you’re in the US region, not EU. GoHighLevel expects Mailgun to be configured in the US region.

Once you’re in, you’re ready to connect your Namecheap domain.


Step 2: Choose and add your sending domain in Mailgun (root vs subdomain)

In Mailgun, navigate to Sending → Domains → Add New Domain.
Screenshot showing Mailgun dashboard with 'Sending' and 'Add New Domain' highlighted
You now need to decide which domain to use:

  • Recommended – Subdomain (best practice)
    Examples: mg.yourdomain.com, mail.yourdomain.com, replies.yourdomain.com.
    Use this if your root domain already sends email through another provider (Google Workspace, Microsoft 365, etc.). It keeps Mailgun traffic isolated and avoids SPF/DKIM conflicts.

  • Root domain (only if it isn’t used elsewhere for email)
    Example: yourdomain.com.
    Use this only when you’re certain no other email provider is configured for that domain.

Enter the domain exactly as you intend to send from and make sure the region is set to US. Then click Add Domain.
Screenshot of Mailgun 'Add New Domain' screen with domain entry and US region selected
Mailgun will show you a set of DNS records (TXT, MX, and CNAME). Keep this screen open—you’ll copy these into Namecheap next.


Step 3: Add Mailgun DNS records in Namecheap

Now you’ll prove to Mailgun (and mailbox providers) that Mailgun is allowed to send on behalf of your domain.

  1. Log in to your Namecheap account.
  2. Go to Domain List and click Manage next to your domain.
    Screenshot of Namecheap domain list showing 'Manage' button next to a domain
  3. Open the Advanced DNS tab.
    Screenshot of Namecheap domain management with 'Advanced DNS' tab highlighted

You’ll now add the records Mailgun provided.
Screenshot of Namecheap Advanced DNS page showing 'Add New Record' button

3.1 SPF TXT record

SPF tells receiving servers that Mailgun is authorized to send mail for your domain.

  • Record type: TXT
    Screenshot of Namecheap DNS record type dropdown with TXT Record selected
    Screenshot of the Namecheap DNS record type dropdown menu
  • Host:
    • If you’re using a subdomain like mg.yourdomain.com, enter just mg.
    • If you’re using the root domain, enter @.
  • Value: Typically v=spf1 include:mailgun.org ~all (always copy this exactly from Mailgun).
  • TTL: Leave default, or set to 30 minutes / 1 hour.
    Screenshot of Namecheap DNS entry fields with SPF TXT record host and value entered
    Click the green checkmark to save.

3.2 DKIM TXT record

DKIM signs your emails so providers can confirm they weren’t altered in transit and truly came from you.

Screenshot of Namecheap 'Add New Record' button clicked to add a second TXT record

  • Record type: TXT
    Screenshot of Namecheap DNS record type dropdown showing TXT record selected for DKIM
    Screenshot of the Namecheap record type selector with TXT highlighted
  • Host: Copy the krs._domainkey (or similar) host from Mailgun. It may already include the subdomain portion—paste it exactly as shown.
    Screenshot showing how to copy the Mailgun DKIM host value, highlighting the subdomain-specific portion

Examples: copy the highlighted part

Example 1 using subdomain
Screenshot of a Mailgun DKIM record host example for a subdomain like mg.yourdomain.com

Example 2 using main domain:
Screenshot of a Mailgun DKIM record host example for a main domain like yourdomain.com

  • Value: Long DKIM string from Mailgun. Paste the entire value without modifications.
    Screenshot of Namecheap DNS entry fields with DKIM TXT record host and value entered
  • TTL: Default.

Save the record.

3.3 MX records

MX records tell servers where to route replies and bounces for your Mailgun-managed domain.

Create two MX records:
Screenshot of Namecheap 'Add New Record' button for an MX record

  1. First MX record
    Screenshot of Namecheap DNS record type dropdown with MX Record selected

    • Host: mg (or @ for root domain).
    • Value: mxa.mailgun.org
    • Priority: 10
      Screenshot of Namecheap DNS entry fields with the first Mailgun MX record details
  2. Second MX record

    • Host: Same as above (mg or @).
    • Value: mxb.mailgun.org
    • Priority: 10
      Screenshot of Namecheap DNS entry fields with the second Mailgun MX record details

Save both records.

3.4 CNAME record for tracking

The CNAME record powers click and open tracking.


Get a Free Trial of GoHighLevel

Screenshot of Namecheap 'Add New Record' button for a CNAME record

  • Record type: CNAME
    Screenshot of Namecheap DNS record type dropdown with CNAME Record selected
  • Host:
    • If your sending domain is mg.yourdomain.com, Mailgun usually suggests email.mg. Enter that as the host.
    • For root domains, this is typically just email.
      Screenshot showing how to copy the Mailgun CNAME host value, specifically for tracking

Screenshot of Namecheap DNS entry fields ready for CNAME record input

  • Value: mailgun.org
  • TTL: Default.

Save the CNAME record.

Tip
Your DNS may take 5–30 minutes to propagate, sometimes longer. Don’t worry if Mailgun doesn’t show green checks immediately.


Step 4: Verify DNS settings in Mailgun

Return to Mailgun and open your domain under Sending → Domains.

  1. Click Verify DNS Settings.
  2. If some records still show as unverified, wait a few minutes and click again.
    Screenshot of Mailgun 'Verify DNS Settings' showing all DNS records successfully verified with green checkmarks
  3. Once SPF, DKIM, MX, and CNAME are all verified (usually with green checkmarks), your domain is ready to send.

If verification fails after an hour, double‑check:

  • The Host values in Namecheap match exactly what Mailgun shows.
  • There are no duplicate SPF records on the same host.
  • You didn’t accidentally paste extra spaces or quotation marks around TXT values.

Step 5: Connect Mailgun to GoHighLevel

With your domain verified, it’s time to plug Mailgun into GoHighLevel so all emails send from your authenticated domain.

5.1 Grab your Mailgun Private API key

  1. In Mailgun, click your profile avatar (top right).
  2. Go to API Security.
  3. Copy the Private API Key—this is what GoHighLevel uses to talk to Mailgun.

Keep this key secure; anyone with it can send mail on your behalf.

5.2 Add Mailgun inside GoHighLevel

  1. In GoHighLevel Agency view, go to Settings → Email Services (or Mailgun Settings, depending on your version).
  2. Choose Mailgun as the provider.
  3. Paste the Private API Key you copied from Mailgun.
  4. Select the verified Mailgun domain you just configured (for example, mg.yourdomain.com).
  5. Save your settings.

From now on, GoHighLevel uses Mailgun for outgoing email.

CTA: Ready to centralize your funnels and automation?
If you’re still evaluating platforms, you can test drive GoHighLevel with a free trial while you set up Mailgun and see the impact on deliverability.


Step 6: Align your "From" addresses and test sending

To avoid confusing mailbox providers—and your contacts—make sure your "From" email addresses match the domain you just authenticated.

  • If your Mailgun sending domain is mg.yourdomain.com, use a From address like support@yourdomain.com or marketing@yourdomain.com.
  • In GoHighLevel, update default From Name and From Email under Settings → Company and in each sub-account where necessary.

Then send a few tests:

  1. Create a simple one‑off email in GoHighLevel and send it to a Gmail and Outlook address you control.
  2. Check:
    • Does it show From the correct email address?
    • Does it land in Inbox, Promotions, or Spam?
    • Do links and images load correctly?
  3. In Mailgun, open Logs to confirm the messages were accepted and delivered without errors.

If something fails, use the error codes in Mailgun logs as your starting point.


Common issues with Mailgun + Namecheap + GoHighLevel (and how to fix them)

1. DNS won’t verify in Mailgun

Symptoms: One or more records keep showing as red or unverified in Mailgun.

Fixes:

  • Confirm you edited DNS on the correct domain in Namecheap (root vs subdomain).
  • Make sure there is only one SPF record (v=spf1) for each host. Combine them if you’re using multiple providers.
  • Double‑check that the Host field in Namecheap matches what Mailgun shows—no extra domain parts added or removed.
  • Wait at least 30–60 minutes and try verifying again while DNS propagates.

2. Emails send but land in spam

Symptoms: Messages show as delivered in Mailgun but appear in Spam.

Fixes:

  • Ensure both SPF and DKIM are verified in Mailgun.
  • Warm up your new sending domain gradually instead of blasting a full list on day one.
  • Clean your list: remove cold, invalid, or low‑engagement contacts.
  • Avoid link‑heavy or image‑only templates in your first few campaigns.

3. GoHighLevel shows a Mailgun error

Symptoms: GoHighLevel reports it can’t send or connect through Mailgun.

Fixes:

  • Re‑paste the correct Private API Key from Mailgun’s API Security page.
  • Confirm you selected the same Mailgun domain you verified in earlier steps.
  • Ensure your Mailgun account is in good standing (no suspension, no disabled domain).

Where Revset Labs fits in

Setting up Mailgun correctly is just the foundation. The real upside comes from what you do once email is reliably landing in the inbox—automated nurture sequences, follow‑ups, sales pipelines, and cross‑channel campaigns that run themselves.

Revset Labs is an AI automation and marketing agency that helps GoHighLevel users build exactly that:

  • We design and implement automated funnels that turn new leads into booked calls and paying clients.
  • We connect tools like Mailgun, Namecheap, Stripe, and ad platforms into one clean, maintainable stack.
  • We use AI to personalize outreach and content so you get more replies and revenue from the same list.

If you’d rather have this Mailgun + GoHighLevel infrastructure set up and optimized for you, you can start a free GoHighLevel trial through this link and then bring Revset Labs in to build out the automations on top.


Next steps

At this point you should have:

  • A verified Mailgun domain connected to your Namecheap DNS.
  • Mailgun plugged into GoHighLevel as your email service.
  • Test emails successfully landing in real inboxes.

From here, your next leverage points are:

  • Building welcome and nurture automations that trigger the moment a new lead opts in.
  • Segmenting your list by intent, source, and engagement for smarter campaigns.
  • Layering in SMS, voicemail drops, and pipelines to catch every hand‑raiser.

Keep your Mailgun and GoHighLevel setup healthy, and it becomes an always‑on revenue engine instead of yet another tech headache.


Get a Free Trial of GoHighLevel

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top
60,000+ agencies trust HighLevel
GoHighLevel
Everything your
agency needs.
Free for 14 days. No credit card required.
23Hrs
47Min
00Sec
Start Free Trial →
Cancel anytime  ·  No credit card required
14 days free. No credit card. Start Free Trial
Ready to scale your agency? Most agencies see results in the first 30 days.
Start Free →
Your free trial
is still waiting.

Most agencies see results in the first 30 days. Takes 5 minutes to start.

Claim Free Trial →

START YOUR FREE 14-DAY TRIAL TODAY!

No Commitment. Cancel Anytime.

GET STARTED NOW