Skip to content
Email

Mailgun Setup - Google Domain Setup

Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains…

4 min read885 words13 explained imagesUpdated Wed, 1 Jul at 7:14 AM
View as markdownOpen in ClaudeOpen in ChatGPT
Each image has a one line explanation. Switch to full detail for the step it belongs to, the fields and buttons involved, examples and the whole procedure.
On this page
  1. Sign up for Mailgun & add your domain
  2. Access DNS records in Google Domains
  3. Add the 1st TXT record (SPF)
  4. Add the 2nd TXT record (DKIM)
  5. Add the MX records
  6. Add the CNAME record
  7. Verify DNS & finish setup
  8. Frequently Asked Questions
Email Infrastructure
Mailgun + Google Domains Setup
Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains.
What You'll Learn

This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two TXT records, both MX values, and one CNAME — inside Google Domains.

It also covers how to avoid breaking your existing Google Workspace/Gmail mail delivery while adding Mailgun's records.

Video Recap
Video 1 Open in a new tab

1Sign up for Mailgun & add your domain

Step 1

Sign up at Mailgun.com, then check your inbox to verify your email address.

Sign up for Mailgun & add your domain (image 1 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 1 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Sign up for Mailgun & add your domain (image 2 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 2 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Step 2

Log in to Mailgun, then click Sending → Add New Domain.

Sign up for Mailgun & add your domain (image 3 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 3 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Step 3

If your domain is companyname.com, decide whether to set up the main domain or a subdomain with Mailgun.

  • Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  • Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Important

Set up the domain or subdomain under the US region — not EU.

Click Add domain.

Sign up for Mailgun & add your domain (image 4 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Sign up for Mailgun & add your domain" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 4 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.

2Access DNS records in Google Domains

Now log in to your DNS records and add the 5 DNS records Mailgun requires.

  • Log in to domains.google.com.
  • Click into the domain you're trying to set up.
  • Click DNS on the left panel — this is where you'll add all 5 records.
Access DNS records in Google Domains (image 5 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Access DNS records in Google Domains" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Access DNS records in Google Domains" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 5 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.

3Add the 1st TXT record (SPF)

Fields

Host name:

  • mg.companyname.com → host name is mg
  • replies.companyname.com → host name is replies
  • Main domain (companyname.com) → host name is @

Type: select TXT from the dropdown.

Data: paste the first copied TXT record — v=spf1 include:mailgun.org ~all.

Add the 1st TXT record (SPF) (image 6 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the 1st TXT record (SPF)" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the 1st TXT record (SPF)" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 6 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Note

Don't click Save yet — there are 4 more records to add. Once you've finished this record, click Create new record and move to the next section.

4Add the 2nd TXT record (DKIM)

Fields

Host name: this part is a little tricky. Copy everything from the beginning of the value up until the subdomain part — do not copy the main domain.

Add the 2nd TXT record (DKIM) (image 7 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 7 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
ExampleHighlighted part to copy
Using a subdomain
Add the 2nd TXT record (DKIM) (image 8 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 8 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Using the main domain
Add the 2nd TXT record (DKIM) (image 9 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 9 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.

Type: select TXT from the dropdown.

Data: paste the second, longer TXT record here.

Add the 2nd TXT record (DKIM) (image 10 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the 2nd TXT record (DKIM)" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 10 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.

5Add the MX records

Click Create new record.

Fields

Host name:

  • mg.companyname.com → host name is mg
  • replies.companyname.com → host name is replies
  • Main domain → host name is @

Type: select MX from the dropdown.

Data: Google Domains lets you add both MX values to the same record.

  • Copy and paste 10 mxa.mailgun.org
  • Click +Add more to this record
  • Copy and paste 10 mxb.mailgun.org
Add the MX records (image 11 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the MX records" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the MX records" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 11 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.

6Add the CNAME record

Click Create new record.

Fields

Host name:

  • mg.companyname.com → host name is email.mg
  • replies.companyname.com → host name is email.replies
  • Main domain (companyname.com) → host name is email

Type: select CNAME from the dropdown.

Data: copy and paste mailgun.org.

Add the CNAME record (image 12 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Add the CNAME record" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Add the CNAME record" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 12 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.

7Verify DNS & finish setup

Now that you've added all 5 DNS records, click Save.

Go back to Mailgun and click Verify DNS Settings. If some records still aren't showing a green checkmark, click the same button again — DNS propagation can take a little time.

Verify DNS & finish setup (image 13 of 13) What this shows Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What this shows Illustrates the "Verify DNS & finish setup" section of "Mailgun Setup - Google Domain Setup". This screenshot appears in the "Verify DNS & finish setup" section of "Mailgun Setup - Google Domain Setup". For context, this section explains: Email Infrastructure Mailgun + Google Domains Setup Step-by-step DNS configuration for connecting Mailgun to a domain registered with Google Domains. What You'll Learn This guide walks through signing up for Mailgun, adding your domain, and configuring the five DNS records Mailgun requires — two…. This part of the guide covers 7 fields, listed below. Image 13 of 13
Fields in this part of the guide mg.companyname.com → host name is mgreplies.companyname.com → host name is repliesMain domain (companyname.com) → host name is @Main domain → host name is @mg.companyname.com → host name is email.mgreplies.companyname.com → host name is email.repliesMain domain (companyname.com) → host name is email
Buttons and menus referenced Sending → Add New Domaincompanyname.comANYTHING_HEREUSAdd domainDNSmgreplies@TXTCreate new recorddo not copy the main domain
Example values
Main domain (companyname.com) → host name is email
priya.raman@northgatedental.com

Illustrative values showing the expected format. They are not read from the screenshot.

All 2 steps in this procedure
  1. Main domain: if you use the main domain, it should not also be used with Google Workspace or any other email provider — see Mailgun's guidance on sharing a domain with another email server.
  2. Subdomain: type ANYTHING_HERE.companyname.com — for example mg.companyname.com, replies.companyname.com, or support.companyname.com.
Next Steps

Once all records are verified, grab your Mailgun API key and add it to your email service settings.

Then send a test email to confirm everything works — see how to send a test email in the Conversation.

8Frequently Asked Questions

Q: Why does Google Domains only need one MX record instead of two?
Google Domains lets you add multiple values to a single MX record using "+Add more to this record," so both mxa.mailgun.org and mxb.mailgun.org live under one record instead of two separate ones.
Q: Why shouldn't I click Save after adding just the first record?
You can save at any point, but it's easier to add all 5 records first and save once at the end, rather than saving and reopening the DNS page repeatedly.
Q: Will this affect my existing Google Workspace or Gmail email?
Not if you use a subdomain for Mailgun rather than your main domain, and leave your existing Google Workspace MX records on the main domain untouched.
Q: How long does DNS propagation take in Google Domains?
Usually fast, but it can occasionally take a few hours. If a record isn't showing green yet in Mailgun, wait a bit and click Verify DNS Settings again.
Q: What priority value do I use for the MX record?
Use 10 for both mxa.mailgun.org and mxb.mailgun.org — this is entered right before the value, for example "10 mxa.mailgun.org".
Q: What do I do after all 5 records show a green checkmark?
Grab your Mailgun API key, add it to your email service settings, and send a test email in a conversation to confirm delivery is working.

Was this guide helpful?

Related guides