Mailgun Setup - Google Domain Setup

Step-by-step Mailgun Setup - Google Domains

  1. Sign up for

  2. Check your email inbox to verify the email address

    arrow-up-rightarrow-up-right

  3. Login to Mailgun, Click on Sending > Add New Domainarrow-up-right

  4. If your domain is companyname.com, you can either set up the main domain or your account with Mailgun.

A. Main domain:

Subdomain:

  • To set up your account with Mailgun, you can type ANYTHING_HERE.companyname.com Examples: - mg.companyname.com - replies.companyname.com - support.companyname.com

B. Please set up the domain or subdomain under US, not EU. not EU. not EU.

C. Click on Add domain

arrow-up-right

  1. Now log in to your DNS records based on where you get the domain and add the 5 DNS records

Copy the first TXT record here v=spf1 include:mailgun.org ~allarrow-up-right

To add the 1st TXT record

Host name:

Type: Select TXT from the dropdown

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

arrow-up-right

Don't click save yet, 4 more new records to add

Once you are done with the 1st record, click Create new record

To add the 2nd TXT record

Host name:

it's a bit tricky but the key here is to copy everything from the beginning until the subdomain part, do not copy the main domain

arrow-up-right

Examples: copy the highlighted part

Example 1 using subdomain

Example 2 using main domain:arrow-up-right

Type: Select TXT from the dropdown

Data: we will paste the second long TXT record here

arrow-up-right

To add the MX records, click Create new record

Host name:

Depending on the subdomain you are trying to set up, if you are trying to set up mg.companyname.comarrow-up-right The host name will be mg replies.companyname.comarrow-up-right The host name will be replies

If you are setting up a main domain like companyname.com, the host name will be @

Type: Select MX from the dropdown

Data: paste the following data

arrow-up-right

To add the CNAME record, click Create new record

Host name:

Depending on the subdomain you are trying to set up, if you are trying to set up mg.companyname.comarrow-up-right The host name will be email.mg replies.companyname.comarrow-up-right The host name will be email.replies

If you are setting up a main domain like companyname.com, the host name will be email

Type: Select CNAME from the dropdown

Data: copy and paste mailgun.orgarrow-up-right

arrow-up-right

Now that you have added 5 DNS records, click SAVE!

Go back to Mailgun and click Verify DNS Settings

Click the same button to Verify DNS Settings again if some records are still not showing the green checkmarkarrow-up-right

Once you add all the DNS records and verify, you can grab the Mailgun API Key - Where to Find in Mailgun & Put in your account.

Then we could send a test email to see if everything works!

Last updated