Official DNS Guide • Developer Email API & Relay

Mailgun (Sinch) SPF Record Setup & Validator

Step-by-step Mailgun SPF setup (include:mailgun.org), 2048-bit DKIM TXT keys (k1._domainkey), and custom subdomain routing.

Quick Answer • Exact Mailgun SPF Syntax

To authorize Mailgun (Sinch) to send emails on behalf of your domain, add include:mailgun.org to your domain's single DNS TXT SPF record before the terminating ~all mechanism. The standard record is v=spf1 include:mailgun.org ~all.

Live Mailgun DNS Validator

Test your domain's published SPF, DKIM, and DMARC records via global DoH edge nodes in real time.

Zero-Log Client Evaluation

Understanding Mailgun (Sinch) Email Authentication

Mailgun provides robust transactional email APIs. Mailgun recommends sending from a dedicated subdomain (e.g. mg.yourdomain.com) with SPF and DKIM.

When Mailgun (Sinch) delivers outbound emails on your behalf, recipient mail transfer agents (MTAs) at Google, Yahoo, Microsoft, and corporate mail gateways inspect the sender identity. Without a published SPF record explicitly permitting Mailgun (Sinch)'s IP ranges, these emails trigger SPF Softfail (~all) or Hardfail (-all), severely degrading domain reputation and inbox placement.

Required DNS Records for Mailgun

Publish the following DNS records in your domain registrar or DNS management console (Cloudflare, AWS Route 53, GoDaddy, Namecheap):

TypeHost / NameValue / TargetTTLPurpose
TXT@v=spf1 include:mailgun.org ~all3600Mailgun SPF.

Step-by-Step Setup Instructions

1

In Mailgun > Sending > Domains > Add New Domain.

2

Add the TXT SPF record: "v=spf1 include:mailgun.org ~all".

3

Add the DKIM TXT record at "k1._domainkey.yourdomain.com".

4

Add Mailgun MX records and click Verify.

Common Mailgun SPF Configuration Mistakes

× Mailgun Verification Yellow Warning

Cause: DNS propagation latency.

Fix: Wait 10 minutes and click Check DNS Records.

Frequently Asked Questions

What is the SPF include for Mailgun?

Use "include:mailgun.org".