How to Set Up Mailgun with Google Domains for GoHighLevel
By Marnix Geerkens. Published 2020-08-17. Updated 2026-06-02.
Connecting Mailgun to a domain registered in Google Domains requires adding five DNS records: two TXT records for authentication, two MX records for inbound routing, and one CNAME for tracking. Once all five records are verified, you copy the Mailgun API key into GoHighLevel's agency settings to activate email sending through your domain.
Watch it, then build it
Get the full platform free for 30 days
That walkthrough runs on GoHighLevel. Start it free through RocketLauncher and you get 30 days instead of the usual 14, the whole platform unlocked, plus our setup help and a community of thousands of builders in 47+ countries.
30 days, not 14Full platform, nothing held backFree community and setup help
We earn a referral commission if you keep GoHighLevel after the trial. It never changes your price.
Summary. Google Domains handles DNS differently from some other registrars, particularly for MX records, which can trip up founders going through Mailgun setup for the first time. This tutorial walks through the complete process: creating a sending subdomain in Mailgun, adding all five required DNS records in Google Domains including the correct way to add both MX entries on a single record, verifying the domain in Mailgun, and wiring the API key into GoHighLevel so the sub account can send email through the new domain.
What you will learn
- How to create a sending subdomain in your Mailgun account
- Which five DNS records Mailgun requires and what each one does
- How Google Domains handles dual MX records differently from other registrars
- How to check DNS propagation and verify your domain in Mailgun
- How to copy the Mailgun API key into GoHighLevel and select the sending domain
Steps
Create the sending subdomain in Mailgun
In Mailgun, go to Sending and click Add New Domain. Enter a subdomain such as mg.yourdomain.com. Select US as the region even if you are based elsewhere, then click Add Domain. Mailgun will display the five DNS records you need to create.
Open DNS in Google Domains
In Google Domains, click Manage on your domain and open the DNS tab. Scroll to Custom Resource Records at the bottom. This is where you will add all five records.
Add the two TXT records
For the first TXT record, set the host name to mg (just the subdomain, not the full domain) and paste the full value from Mailgun. For the second TXT record, copy everything up to but not including your root domain from the Mailgun host name field, paste that as the host name, and paste the corresponding value. Save each one.
Add the MX records
Create an MX record with mg as the host name and paste the first MX value from Mailgun. Google Domains automatically sets priority to 10. For the second MX record, edit the one you just created and click the plus button to add the second entry rather than creating a separate MX record. Paste the second MX value and save.
Add the CNAME record
Copy the host name from Mailgun's CNAME row (everything up to your root domain), create a CNAME record in Google Domains with that as the host, and paste mailgun.org as the destination value.
Verify the domain in Mailgun
Return to Mailgun and click Verify DNS Settings. Records may not all turn green immediately if propagation is still in progress. Wait a few minutes and check again. All five should eventually show green check marks.
Add the API key to GoHighLevel
In Mailgun, go to your account initials in the top right and click API Keys. Click the eye icon to reveal your private API key and copy it. In GoHighLevel agency settings, open the Mailgun tab, paste the key, and select your new subdomain from the domain list. Save, and the sub account can now send via that domain.
Tips
- Google Domains requires both MX entries on a single MX record using the plus button, unlike some registrars that accept two separate MX records.
- If a CNAME is still pending after verifying, wait a few more minutes. CNAME propagation often lags behind TXT and MX records.
Related tutorials
Watch it, then build it
Get the full platform free for 30 days
30 days, not 14Full platform, nothing held backFree community and setup help
Frequently asked questions
Why use a subdomain instead of the root domain for Mailgun?
A subdomain isolates email DNS records so they do not interfere with website records.
Does the Mailgun region (US vs EU) matter for deliverability?
It affects where data is processed. US is required for the standard Mailgun setup with GoHighLevel.
What do I do after pasting the API key in GoHighLevel?
Select the mg.yourdomain.com subdomain from the domain dropdown and save. Then set it as the default domain in the next tab.
How do I test that email is actually sending through my domain?
Add a trigger in a sub account, send a test email to yourself, and check the headers to confirm the sending domain.






