Domain Verification
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:
Get the DNS records (Via API or Control Panel)
Open your DNS provider and add the provided DNS records:
Type | Required | Purpose | Value |
---|---|---|---|
TXT | ✅ | SPF (Sender Policy Framework): Sending server IP validation. This is used by most email providers. | v=spf1 include:mailgun.org ~all |
TXT | ✅ | DKIM (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. |
CNAME | ✅ | Required for Mailgun to track clicks, opens, and unsubscribes. | mailgun.org |
MX | ✅ | Required 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.
- 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:
Provider | Link to Documentation |
---|---|
Go Daddy | MXCNAME |
NameCheap | All Records |
Network Solutions | MX CNAME TXT |
Rackspace Email & Apps | All Records |
Rackspace Cloud DNS | Developers Guide |
Amazon Route 53 | Developer Guide |