Multiple DKIM and SPF DNS records

Fizer Khan picture Fizer Khan · Jul 28, 2014 · Viewed 7.4k times · Source

We uses both Mailgun and Google App engine mail services to send transaction emails from our products. Both needs DKIM and SPF text record in the DNS server. Is it possible to set multiple DKIM and SPF record in DNS configuration? Will it work?

Answer

someone1 picture someone1 · Jul 28, 2014

You would only need a single SPF record as you can have multiple rules within it. Check this article for assistance on setting up more than just Google's entries in your SPF record.. Your DKIM signature will specify the subdomain on your domain to check for the signature key. Google Apps uses the google._domainkey subdomain when it specifies the DKIM location to lookup. I'm not sure what mailgun uses but chances are it won't overlap.

Update:

After a quick look around I found this article on Mailgun's website and would think your SPF record should look like this:

v=spf1 include:mailgun.org include:_spf.google.com ~all