Skip to content
Last updated

Domain Verification

verifydomain

Five reasons why you need to verify your domain:

  • To prove you are an authorized sender for the domain
  • Verified domains are not subject to a sending limit of 300 emails per day
  • No more "sent via Mailgun.org" message in your emails
  • Establishes a positive email reputation for your own domain
  • Mailgun is less suspicious of traffic that is being sent on verified domains and that reduces the likelihood of being disabled

The basic steps to verify a domain are:

  1. Get the DNS records (Via API or Control Panel)

  2. Open your DNS provider and add the provided DNS records:

TypeRequiredPurposeValue
TXTSPF (Sender Policy Framework): Sending server IP validation. This is used by most email providers.v=spf1 include:mailgun.org ~all
TXTDKIM (DomainKeys Identified Email): Like SPF, but uses cryptographic validation.Find this record in the "Domain Verification & DNS" section of the Mailgun control panel for your domain.
CNAMERequired for Mailgun to track clicks, opens, and unsubscribes.mailgun.org
MXRequired for Mailgun to receive and route/store messages addressed to the domain.10 mxa.mailgun.org
10 mxb.mailgun.org

Once you've added the supplied records, and they've propagated over the internet (can take 24-48 hours for DNS changes to fully propagate), your domain is now able to be verified.

  1. You can either wait for Mailgun's system to check the domain and automatically verify it for you, or if you don't want to wait you can click
    Verify DNS settings in the Domain Settings section of the Control Panel, or call the Verify API

Verified domains will show up on the Mailgun Control Panel with a green Verified badge next to it!

For more information and help related to verifying domains check out these articles:

Common DNS Providers Documentation

If you'd like more detailed instructions on how to add DNS records for your domain, please refer to the documentation provided by your DNS provider. Below is a list of common DNS providers and links to their documentation:

ProviderLink to Documentation
Go DaddyMXCNAME

TXT

NameCheapAll Records
Network SolutionsMX

CNAME

TXT
Rackspace Email & AppsAll Records
Rackspace Cloud DNSDevelopers Guide
Amazon Route 53Developer Guide