• Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • Categories
  • Contact Us
    • Advertising
    • Requests
    • Privacy Statement
HelpSpa.com

HelpSpa.com

Computer Tutorials

Setup Mailgun with cPanel and Google Apps

September 3, 2016 by davidwank

Wordpress and Mailgun – Making the Records Verify

If you are here you already know why we are using Mailgun with WordPress, so we’ll skip that.

Mailgun DNS Records Won’t Verify!

I tried a number of solutions to get mailgun to verify my DNS records and it was a nightmare guessing game. That being said, I figured it out.

A quick note on SPF records before we continue:

[box style=”1″]

SPF Records and Subdomains vs. Single Domain

You cannot have two SPF records for a single domain, meaning that this below is not allowed:

 

somedomain.com txt  "v=spf1 include:somedomain.com ~all"
somedomain.com txt  "v=spf1 include:anotherdomain.com~all"

However, you can combine the records into one record:

somedomain.com txt spf "v=spf1 include:somedomain.com include:anotherdomain.com ~all:

But know that subdomains can have their own SPF records so that this below is allowed:

somedomain.com txt  "v=spf1 include:somedomain.com ~all"
subdomain.com txt somedomain.com txt  "v=spf1 include:otherdomain.com ~all"

[/box]

Here’s what you have to do to make it work (assuming you are using mg.mydoman.com with Mailgun):

  1. create the new subdomain in cPanel (or in whatever manner you use to create subdomains)
  2. mailgun is then going to tell you that you need to add an SPF record for:  mg.mydomain.com.  The problem is that (at least in WHM’s edit dns feature) — you need to leave out the trailing “mydomain.com”
  3. [box style=”1″]

    Your SPF Record for Mailgun should look like this:

    mg txt "v=spf1 include:mailgun.org~all"

    and NOT

    mg.mydomain.com txt "v=spf1 include:mailgun.org~all"

    [/box]

  4. The same thing now applies for the DKIM. Mailgun will tell you to use:
    krs._domainkey.mg.mydomain.com

    but what you need to use is this:

    krs._domainkey.mg

Once I realized the error I was making and made these changes, my domain verified instantly.

Hope this helps!

Filed Under: Email, Featured Articles, Wordpress

Primary Sidebar

More to See

Google Analytics 4 Migration Training

December 22, 2022 By davidwank

Hubspot Zoom Webinar Integration

Connecting HubSpot and Zoom Webinars

August 27, 2022 By davidwank

Google Analytics as we know it is going away!

July 24, 2022 By davidwank

Footer

Text Widget

This is an example of a text widget which can be used to describe a particular service. You can also use other widgets in this location.

Examples of widgets that can be placed here in the footer are a calendar, latest tweets, recent comments, recent posts, search form, tag cloud or more.

Sample Link.

Recent

  • Google Analytics 4 Migration Training
  • Connecting HubSpot and Zoom Webinars
  • Google Analytics as we know it is going away!
  • Building a New Dental Website?
  • BackupBuddy Timeouts on GoDaddy Hosting

Search

Tags

Adobe Acrobat Backup classical music and opera cPanel DAM Database Digital Photography email Excel Facebook Firefox hardware HP Security HTML iMovie Internet Explorer iTunes linksys Microsoft Office Microsoft Word MySQL networking Office 2010 OneNote OpenOffice OS X PDF PHP printers reseller hosting Reviews router SEO subversion Video Virtualization Virtual PC Web Design Web Development Web Hosting Windows Windows 7 Windows Vista Windows XP Wireless

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in