include:mailgun.org

To let Mailgun send as you, add include:mailgun.org to your SPF.

Short answer

On the sending domain you added in Mailgun (that can be your root or a subdomain you send from). Mailgun’s control panel (Domain Verification & DNS) shows the exact records for the domain you added. Measured on 4 Nov 2026, the include costs 5 of your 10 SPF lookups, leaving 5 for everything else.

Include
mailgun.org
Vendor’s record
v=spf1 include:mailgun.org ~all
Where it goes
Your domain’s SPF record (@)
Needed on your root?
Yes, if you send through it from your domain
Lookups (measured)
5 of 10
Ranges published
22 ip4 · 0 ip6
Category
Transactional email

What include:mailgun.org expands to live, 4 Nov 2026

include:mailgun.org · 5
v=spf1your SPF record · total 5
└include:mailgun.org1 + 4 nested = 5
├include:_spf.mailgun.org1 + 2 nested = 3
├include:_spf1.mailgun.org1
├ip4:159.135.224.0/200
├ip4:69.72.32.0/200
├ip4:204.220.90.0/230
├ip4:204.220.92.0/220
└~all0
├include:_spf2.mailgun.org1
├ip4:161.38.192.0/200
├ip4:143.55.224.0/210
├ip4:143.55.232.0/220
├ip4:159.112.240.0/200
├ip4:198.244.48.0/200
├ip4:204.220.168.0/210
├ip4:204.220.176.0/200
└~all0
└~all0
├include:_spf.eu.mailgun.org1
├ip4:141.193.32.0/230
├ip4:159.135.140.80/290
├ip4:159.135.132.128/250
├ip4:161.38.204.0/220
├ip4:87.253.232.0/210
├ip4:185.189.236.0/220
├ip4:185.211.120.0/220
├ip4:185.250.236.0/220
├ip4:143.55.236.0/220
├ip4:198.244.60.0/220
├ip4:204.220.160.0/200
└~all0
└-all0
v=spf1 include:_spf.mailgun.org include:_spf.eu.mailgun.org -all

Counted as RFC 7208 §4.6.4 does: the include itself plus every nested include, a, mx, ptr, exists and redirect. Includes can change at any time; this page re-measures daily.

Adding it next to another service

A domain has exactly one SPF record, so add the include to the record you already have. With Google Workspace, for example:

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

DKIM for Mailgun

A TXT key Mailgun generates for the sending domain (shown in Domain Verification & DNS).

How it affects DMARC

DMARC passes when SPF or DKIM passes for a domain aligned with your From address. With Mailgun sending from your domain, its include lets SPF pass and align; DKIM signing with your domain gives you a second, forwarding-proof way to pass.

Other transactional email services

Sources

  1. Mailgun: Verify your domain · checked 5 Oct 2026
  2. RFC 7208 §4.6.4: DNS lookup limits · checked 5 Oct 2026

peekip isn’t affiliated with Mailgun; follow the vendor’s own setup page, which shows the exact values for your account.