In order to set up MailGun for your Google Domains, you must take the following steps:
- Go to Google Domains, and on the left-hand side menu, click on “My Domain”.
- Choose your Domain and click on “Manage”, to the right side of your screen, next to the dates.
- Next, go to the “DNS” tab, also on the left, where you will be able to see your Name Servers and scroll down to “Custom resource records”. Here is where we’ll input the domains provided by MailGun once the account is activated.
- In your MailGun Dashboard, go to “Sending” on the left-hand side menu and click on “Add New Domain”. Here is where you create a subdomain, which will be your email sending domain. Provide “Domain name” (ex: reply.digitalagencyhacker.com), make sure it’s in the U.S., and click on Add Domain. You can choose “mg” for MailGun as recommended, but it can be anything you’d like.
- Now, in the following page, MailGun will generate 5 DNS records that need to be created using Google Domains in this case. It should provide 2 TXT records, 2 MX records and a CNAME. Input these into your Google domains “Custom resource records” section as follows:
Where the “@” sign is, you will enter the “Host Name” provided in MailGun, in this case only what you picked previously to go before your domain: “reply” or “mg”.
1. Add type “TXT” in the scroll section (“A”) in Google Domains and write “reply” on the left, instead of “@”. In the value for Google Domains (text/IPv4 Address), copy and paste the “Enter This Value” from TXT 1 and hit “Add”.
2. For the second “TXT” record, add type “TXT” in Google Domains. Next add everything before your domain name in Mailgun for the second “TXT” provided, in this case, everything before “.digitalagencyhacker.com”. For the value, copy and paste the “Enter This Value” section from MailGun into Google Domains (next to the “Add” button), and click on “Add”.
3. For the “MX” record, follow a similar procedure. Choose “MX” in Google Domains, Host Name would only be “mg”. Both host names will be “mg” for the MX records. We’ll be able to add both MX here.
Copy and paste the “Enter Value” for the first “MX” in Mailgun (mxa.mailgun.org) and add to Google Domains. Click “Add”. The Priority of “10” showing in Mailgun is automatically added.
Here is where the input for MX is different for Google Domains. Instead of adding another MX record, simply click on “Edit” and now click on the “+” sign: next add the value for the second MX, (mxb.mailgun.org) and click on“Save”, automatically putting the priority again.
4. Lastly, we need the CNAME. The “Host Name” is once again everything before the root domain. Choose “CNAME” in Google Domains. Provide the value from Mailgun by copy and pasting CNAME value from Mailgun and remember to “Add” to save.
All your five Mailgun records are now set up and ready for testing/verifying DNS.
- Back in Mailgun, click on step 4 to “Verify DNS Settings”. You can verify on GoDaddy or CloudFlare.
Your Mailgun subdomain will take time to propagate, Once you see all green check marks, it will confirm your DNS settings. (Domain Settings – DNS Records).
- When all check marks are green, next go to your Profile → API Keys.
Click the eyeball icon on the right to be able to see your “Private API KEy”, and you will copy this into your High Level account in the Mailgun tab.
- With our API copied, go to GHL Agency Level Account Settings→ Mailgun.
Click on the pencil, and place your API key there. You’ll be able to select the domain you want.
- To set Mailgun as your default provider, go to the tab over in “SMTP Provider” and choose Mailgun.
- Test your email by going into “Triggers” in GHL in the “Add Action” Stage. Test an email and send it to yourself in “Send Test Email”. No need to save trigger since it’s just a test.