Mailgun Setup – Siteground Domain Setup

Why Mailgun + SiteGround + GoHighLevel Matters for Deliverability

If you’re using GoHighLevel to run campaigns, Mailgun is the engine that actually pushes your emails out. When Mailgun isn’t configured correctly at the DNS level, you’ll see:


Get a Free Trial of GoHighLevel

  • Emails landing in spam or promotions
  • Failed or delayed messages
  • Inconsistent results across campaigns
    This guide walks you through how to correctly connect Mailgun to a SiteGround-hosted domain, so GoHighLevel can send reliably on your behalf.
    Throughout the guide, you’ll see where this setup fits into your broader funnel and where tools like GoHighLevel and partners like Revset Labs can make the process faster and safer.

What You Need Before You Start

Make sure you have:

  • An active GoHighLevel account (or you can start a free GoHighLevel trial here).
  • A custom domain hosted on SiteGround (for example, companyname.com).
  • A Mailgun account with login access.
  • Access to SiteGround DNS Zone Editor for the domain you want to send from.
    You’ll get the cleanest deliverability if you decide up front whether you’ll use your main domain (e.g. companyname.com) or a sending subdomain (e.g. mg.companyname.com or replies.companyname.com). The next section helps you choose.

Step 1: Choose Main Domain vs. Subdomain for Mailgun

You can connect either your main domain or a subdomain to Mailgun.
Option 1 – Main domain (companyname.com):

  • Simple to understand for small teams.
  • Higher risk of conflict if you already use Google Workspace, Microsoft 365, or another email provider.
    Option 2 – Subdomain (mg.companyname.com, replies.companyname.com, etc.):
  • Keeps transactional/marketing email traffic separate from your main inboxes.
  • Reduces risk of breaking existing email hosting.
  • Best practice for most GoHighLevel users.

Recommendation: If your main domain already handles day‑to‑day inbox email (Gmail, Outlook, etc.), use a subdomain specifically for Mailgun.
When you’ve decided, you’re ready to add that domain or subdomain inside Mailgun.


Step 2: Add Your Domain in Mailgun

  1. Log in to your Mailgun account.
  2. Go to Sending → Domains and click Add New Domain.
    Screenshot showing the 'Add New Domain' button within the Mailgun sending domains interface.
  3. Enter the exact domain or subdomain you decided on in Step 1:
    • Example (main domain): companyname.com
    • Example (subdomain): mg.companyname.com
  4. Make sure the region is set to US, not EU (GoHighLevel expects US‑region Mailgun accounts).
  5. Click Add Domain.
    Screenshot showing the Mailgun interface with domain details entered and the 'Add Domain' button highlighted.
    Mailgun will now show you a list of DNS records (TXT, MX, and CNAME) that must be added in SiteGround. Keep this tab open while you switch to SiteGround.
    Mailgun DNS records page displaying TXT, MX, and CNAME records to be configured.
    If you’re still evaluating GoHighLevel as your all‑in‑one CRM and automation platform, this is a perfect time to spin up your free trial so you can plug Mailgun directly into real campaigns once DNS is live.

Step 3: Configure SiteGround DNS for Mailgun

Now you’ll copy the DNS records from Mailgun into SiteGround so Mailgun is authorized to send on behalf of your domain.

  1. Log in to your SiteGround account.
  2. Open Site Tools → Domain → DNS Zone Editor for the correct domain.
    SiteGround Site Tools dashboard with 'Domain' and 'DNS Zone Editor' navigation path highlighted.
    You’ll add four types of records:
  • SPF TXT record
  • DKIM TXT record
  • MX records
  • CNAME record

3.1 Add the SPF TXT Record

  1. In SiteGround, go to the TXT tab.
  2. Click Add New Record (or Create depending on your UI).
    SiteGround DNS Zone Editor showing the 'Create New Record' section with fields for record type, name, and value.
  3. Use these values:
    • Name
      • If you’re using a subdomain like mg.companyname.com, enter just the subdomain prefix, e.g. mg.
      • If you’re using the main domain, enter @ or leave the field blank (SiteGround treats this as the root domain).
    • Value
      • Paste Mailgun’s SPF value, typically:
        v=spf1 include:mailgun.org ~all
  4. Save the record.
    SiteGround DNS Zone Editor showing a completed TXT record entry for SPF with the 'Create' button highlighted.
    This TXT record tells receiving servers that Mailgun is allowed to send on behalf of your domain.

3.2 Add the DKIM TXT Record

DKIM proves that your messages have not been tampered with in transit.

  1. Still in the TXT tab, click Add New Record again.
    SiteGround DNS Zone Editor showing the option to 'Add New Record' within the TXT tab.
  2. In Name, copy the host name from the DKIM record Mailgun shows.
    • Example from Mailgun: mx._domainkey.mg.companyname.com
    • In SiteGround, you would enter: mx._domainkey.mg.
      Mailgun DNS record display showing a DKIM host name for a subdomain, with the relevant part highlighted for copying.
      Mailgun DNS record display showing a DKIM host name for a main domain, with the relevant part highlighted for copying.
  3. In Value, paste the long DKIM string Mailgun provides (it usually starts with v=DKIM1; k=rsa; p= …).
    Mailgun DNS record display showing the long DKIM value string highlighted for copying.
  4. Save the record.

3.3 Add the MX Records

Mailgun’s MX records help with bounce handling and route some email back through Mailgun.


Get a Free Trial of GoHighLevel

  1. Switch to the MX tab in SiteGround’s DNS Zone Editor.
    SiteGround DNS Zone Editor showing the MX tab selected.
  2. Choose Add your own MX records (if prompted).
    SiteGround DNS Zone Editor showing the option to 'Add your own MX records' selected.
    If you have a Gsuite account to capture incoming emails for the main domain. Make sure you are using a subdomain for Mailgun. Check out Can I Use the Same Domain Name for Mailgun and for Google Apps (Or Another Email Server)?
    SiteGround DNS Zone Editor interface for adding MX records, emphasizing the host name and destination fields.
  3. For the first MX record:
    • Name:
      • mg for a subdomain like mg.companyname.com
      • @ for the main domain.
    • Priority: 10
    • Destination: mxa.mailgun.org
  4. For the second MX record:
    • Same Name and Priority.
    • Destination: mxb.mailgun.org.
      SiteGround DNS Zone Editor showing a completed MX record entry for 'mxb.mailgun.org' with priority 10.

Important: If your main domain already uses MX records for Google Workspace or another email host, do not replace those MX records on the main domain. Use a dedicated subdomain for Mailgun instead.

3.4 Add the CNAME Record

Finally, you’ll add a CNAME record used by Mailgun for link tracking.

  1. Go to the CNAME tab in SiteGround.
    SiteGround DNS Zone Editor showing the CNAME tab selected.
    SiteGround DNS Zone Editor showing the 'Create New Record' section specifically for CNAME records.
  2. In Name, copy the host name from Mailgun up to the subdomain portion.
    • Example from Mailgun: email.mg.companyname.com
    • In SiteGround, enter: email.mg.
      Mailgun DNS record display showing the CNAME host name (e.g., 'email.mg') highlighted for copying.
  3. In Resolves to, enter: mailgun.org (or the exact value Mailgun displays).
  4. Save the record.
    SiteGround DNS Zone Editor showing a completed CNAME record entry with the 'Create' button highlighted.
    At this point, all core Mailgun records (SPF, DKIM, MX, CNAME) should be present in your SiteGround DNS.

Step 4: Verify DNS Settings in Mailgun

  1. Return to your Mailgun dashboard.
  2. Open the domain you just configured.
  3. Click Verify DNS Settings.
    Mailgun domain verification page showing the 'Verify DNS Settings' button and status of records.
    Mailgun will check each record and show which ones have propagated.
  • If everything is green, you’re done with DNS.
  • If some records are still pending:
    • Wait 15–30 minutes and refresh. In some cases DNS can take a few hours to fully propagate.
    • Double‑check that each Name/Host matches what Mailgun expects (especially for DKIM and CNAME, which are easy to mistype).
      Once Mailgun shows the domain as Verified, you’re ready to plug it into GoHighLevel.

Step 5: Connect Mailgun to GoHighLevel

With Mailgun verified, you can now use it as the sending provider for GoHighLevel.

  1. Log in to GoHighLevel.
  2. Navigate to Settings → SMTP & Mailgun Service (or the Email Services area, depending on your account view).
  3. Choose Mailgun as the provider.
  4. Paste in your Mailgun API key and select the domain you just verified.
  5. Save your settings.
    From here, GoHighLevel will route outbound emails for campaigns, automation, and pipelines through your Mailgun domain.
    If you don’t yet have a GoHighLevel account, you can start your free trial and follow these same steps so your new workspace launches with a correctly authenticated email sender from day one.

Step 6: Test and Troubleshoot Deliverability

Before you lean on this setup for live campaigns, run a few quick checks.

6.1 Send Test Emails

  • Create a simple test campaign or automation in GoHighLevel.
  • Send to a few inboxes you control (Gmail, Outlook, company email).
  • Confirm:
    • Emails arrive quickly.
    • The "From" address uses the domain or subdomain you configured.
    • Messages land in Primary/Inbox where possible instead of spam.

6.2 Watch for Common Setup Issues

If something looks off:

  • DNS still pending in Mailgun
    Wait a bit longer, then verify again. DNS propagation can take up to 24–48 hours, especially for new domains.
  • Wrong region
    If your Mailgun account is in the EU region while GoHighLevel expects US, you may see connection issues. Confirm you created the domain in the US region.
  • Conflicting MX or TXT records
    If you tried to use your main domain and replaced existing MX records, inbound email may break. In that case, roll back and move Mailgun to a subdomain.
  • Typos in host names
    DKIM and CNAME host names must match Mailgun exactly. Even a missing .mg can cause verification to fail.
    As you start sending real sequences, keep an eye on open rates, click‑throughs, and bounce reports inside GoHighLevel and Mailgun. Healthy metrics confirm that your DNS and sender reputation are in good shape.

Where Revset Labs Fits In

Getting Mailgun, SiteGround, and GoHighLevel working together is a critical foundation for your funnel—but it’s only one piece.
Revset Labs is an AI automation and marketing agency that helps GoHighLevel users:

  • Design complete lead‑to‑customer journeys with email, SMS, and pipelines.
  • Build and optimize automations that react to opens, clicks, and replies.
  • Improve deliverability with smarter segmentation, sending schedules, and copy.
    If you’d rather not spend hours inside DNS panels and automation builders, Revset Labs can set up the technical pieces for you and then layer in AI‑assisted nurture sequences, follow‑ups, and booking flows—all running on top of your authenticated Mailgun domain and GoHighLevel account.
    Pair this guide with a GoHighLevel free trial, and you’ll have a production‑ready sending setup plus a partner who can help you turn that infrastructure into revenue.


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