Set Up Your Domain's DNS for Email Deliverability
MailAfiniti Support
After adding your domain to MailAfiniti, update DNS records at your registrar (GoDaddy, Namecheap, Cloudflare, etc.) to ensure your emails reach inboxes reliably.
After you've added your domain to MailAfiniti, the last step is to update your domain registrar's DNS records. This tells the internet that MailAfiniti is authorized to send and receive emails on your behalf, and gets your email into inbox folders instead of spam.
MailAfiniti's onboarding wizard walks new signups through this, and you'll also get an email with all the records you need. This guide is for detailed step-by-step instructions, a reference to come back to, or troubleshooting.
Why this matters: Gmail, Outlook, Yahoo, and other providers check SPF, DKIM, and DMARC before accepting your emails. Without them, your emails may be rejected, marked as spam, or blocked entirely.
Where to find your records, and the shape of the work
In your MailAfiniti dashboard, go to Manage Domains, find your domain, and look at the DNS Records column. You'll see four colored badges, one per record: MX (required, tells the internet where to deliver your mail), SPF (proves you're authorized to send from this domain), DKIM (signs your emails so mailbox providers trust them), and DMARC (sets the policy for anything that fails those checks, and sends you reports). Click "View DNS Records" and you'll see the exact type, name, and value for each one.
From there it's four trips back and forth: copy a value from MailAfiniti, log into your registrar (GoDaddy, Namecheap, Cloudflare, etc.), paste it in, and repeat for the next record. Once all four are added, come back and verify. MailAfiniti checks automatically, usually within 5 minutes.
Don't skip any of them. MX alone gets your email delivered, but SPF, DKIM, and DMARC are what keep it out of spam and prove to recipients it's really from you. Half-configured DNS is worse than none, because it looks legitimate enough to try and fails the trust checks anyway.
Step 1: Open Your Domain Registrar's DNS Settings
The process is similar across most registrars, but the interface varies slightly. Here's where to find the DNS settings for the most common registrars:
GoDaddy
- Go to godaddy.com and sign in
- Click My Products in the top right corner
- Find your domain and click Manage
- Click the DNS tab
- Scroll to Records where you'll add the four MailAfiniti records
Namecheap
- Go to namecheap.com and sign in
- Click Manage next to your domain
- Click the Advanced DNS tab
- This shows all your DNS records where you'll add MailAfiniti's records
Cloudflare
- Go to cloudflare.com and sign in
- Select your domain from the dashboard
- Click the DNS tab in the left sidebar
- You'll see a list of your DNS records where you'll add MailAfiniti's records
Other Registrars (1&1, HostGator, Bluehost, DreamHost, etc.)
Look for one of these sections:
- "Domain Management" or "My Domains"
- A DNS, Name Servers, or DNS Management tab
- A section labeled "DNS Records," "Advanced DNS," or "Zone File"
Once you find it, keep this page open. You'll be adding records here in the next step.
Step 2: Get Ready to Add Your Records
Before you start adding records to your registrar, keep your MailAfiniti dashboard open so you can copy each record's details as you add them. The following steps will guide you through adding all four DNS records (MX, SPF, DKIM, DMARC) one by one to your registrar.
Have both tabs open:
- MailAfiniti dashboard (where you'll copy record values from)
- Your registrar's DNS settings (where you'll paste them)
Step 3: Add the MX Record
The MX record tells the internet where to deliver emails sent to your domain.
Here's what you'll do across all registrars:
- Create a new record and select MX as the type
- Set the name/host field to @ (this represents your domain root)
- Paste the mail server from MailAfiniti into the value field (e.g.,
mail.mailafiniti.io) - Enter the priority number from MailAfiniti (usually 10)
- Save the record
The exact field names and buttons differ slightly:
| Registrar | Create Button | Type Field | Name Field | Value Field | Priority Field | Save Button |
|---|---|---|---|---|---|---|
| GoDaddy | Add / Create Record | MX | Name | Value | Priority | Save |
| Namecheap | Add New Record | MX Record | Host | Value | Priority | Checkmark |
| Cloudflare | Add record | MX | Name | Mail Server | Priority | Save |
MX done. DNS changes usually take effect immediately, but can take up to 48 hours to propagate globally.
Step 4: Add the SPF Record
The SPF record authorizes MailAfiniti to send emails on behalf of your domain. It prevents others from spoofing your domain.
Here's what you'll do across all registrars:
- Create a new record and select TXT as the type
- Set the name/host field to @
- Paste the SPF record from MailAfiniti into the value field (it looks like
v=spf1 include:mailafiniti.io ~all) - Save the record
The exact field names and buttons differ slightly:
| Registrar | Create Button | Type Field | Name Field | Value Field | Save Button |
|---|---|---|---|---|---|
| GoDaddy | Add / Create Record | TXT | Name | Value | Save |
| Namecheap | Add New Record | TXT Record | Host | Value | Checkmark |
| Cloudflare | Add record | TXT | Name | Content | Save |
Important: If you already have an SPF record from another service, don't replace it. Instead, add the MailAfiniti include: to your existing record. For example, change v=spf1 include:other.com ~all to v=spf1 include:other.com include:mailafiniti.io ~all.
Step 5: Add the DKIM Record
The DKIM record adds a cryptographic signature to your emails so mailbox providers know they really came from you (not a spammer).
Here's what you'll do across all registrars:
- Create a new record and select TXT as the type
- Paste the name from MailAfiniti into the name field (usually
default._domainkeyorselector1._domainkey) - Paste the full DKIM record from MailAfiniti into the value field (it's a long string starting with
v=DKIM1) - Save the record
The exact field names and buttons differ slightly:
| Registrar | Create Button | Type Field | Name Field | Value Field | Save Button |
|---|---|---|---|---|---|
| GoDaddy | Add / Create Record | TXT | Name | Value | Save |
| Namecheap | Add New Record | TXT Record | Host | Value | Checkmark |
| Cloudflare | Add record | TXT | Name | Content | Save |
Important: DKIM records are long (200+ characters). Copy the entire value from MailAfiniti exactly. Every character, space, and underscore matters. Don't truncate or edit it.
Step 6: Add the DMARC Record
The DMARC record tells mailbox providers what to do if an email fails SPF or DKIM checks. It also sends you reports about suspicious emails.
Here's what you'll do across all registrars:
- Create a new record and select TXT as the type
- Set the name/host field to _dmarc
- Paste the DMARC record from MailAfiniti into the value field (it looks like
v=DMARC1; p=quarantine; rua=mailto:dmarc@yourdomain.com) - Save the record
The exact field names and buttons differ slightly:
| Registrar | Create Button | Type Field | Name Field | Value Field | Save Button |
|---|---|---|---|---|---|
| GoDaddy | Add / Create Record | TXT | Name | Value | Save |
| Namecheap | Add New Record | TXT Record | Host | Value | Checkmark |
| Cloudflare | Add record | TXT | Name | Content | Save |
All four records added. Move to the next section to verify they're live.
Step 7: Verify Your DNS Records in MailAfiniti
After adding all four records to your registrar, you can verify they're live in MailAfiniti.
How to Verify
- Go to your MailAfiniti dashboard
- In Manage Domains, find your domain in the list
- Click the three dots menu (⋮) next to your domain
- Click View DNS Records
- Click Verify DNS Records to check your records
- MailAfiniti will check your registrar and show the status:
- ✓ MX Verified: emails can be delivered to your domain
- ✓ SPF Verified: MailAfiniti is authorized to send from your domain
- ✓ DKIM Verified: emails are cryptographically signed
- ✓ DMARC Verified: you're receiving DMARC reports
All four records typically verify within 5-15 minutes after you add them to your registrar.
Verify records yourself (optional)
Want to check before MailAfiniti does? Run your domain through our Email Health Check tool and you'll see your DNS records and email configuration directly, the same data your registrar has on file.
If a record still shows amber or red after 15-30 minutes, don't start guessing. Our Still says "Not Verified"? guide walks through the real causes in order, from ordinary propagation delay to a doubled host to a leftover SPF record from your old provider.
Common Mistakes to Avoid
- Copy record values exactly: Every character, dot, and underscore matters. Copy straight from MailAfiniti without editing.
- Forgetting underscores: DKIM needs
_domainkeyand DMARC needs_dmarc. Missing these will cause verification to fail. - Using wrong record types: MX must be type MX (not TXT). SPF, DKIM, and DMARC must all be type TXT.
- Adding extra spaces: When pasting long DKIM values, make sure no spaces get added at the beginning or end.
- Replacing existing DNS records: If you have other DNS records (for your website hosting, CNAME records, etc.), don't delete them. Add MailAfiniti's records alongside them.
- Expecting instant verification: DNS propagation typically takes 5-30 minutes, but can be up to 48 hours globally.
What's Next After Verification?
Once all four records are verified (✓ MX, ✓ SPF, ✓ DKIM, ✓ DMARC), your domain is ready:
- Getting Started covers creating email accounts and connecting your email client.
- Send and read your email covers everyday use once you're set up.
Need Help?
If you run into problems or have questions:
- Email: support@mailafiniti.io (we respond within 2-4 hours)
- Help & Support: Go to Help & Support for FAQs and more guides