company logo

Help center

Go to Smartlead.ai
API Documentation
All collectionsSetting Up Email InfrastructureWhat are SPF, DKIM, DMARC and MX records?

What are SPF, DKIM, DMARC and MX records?

SPF, DKIM, DMARC and MX are DNS records that prove your emails come from your domain; see what each one does and how to add it to avoid the spam folder.

SPF, DKIM, DMARC and MX are DNS records on your sending domain. They help inbox providers check that your emails really come from you.

Missing or wrong records make your emails more likely to land in spam. They also make it easier for others to misuse your domain.

How it works

  • SPF (Sender Policy Framework) lists the mail servers allowed to send email for your domain.

  • DKIM (DomainKeys Identified Mail) adds a digital signature to each email. It proves the email was sent by the owner of the domain.

  • DMARC tells receiving servers what to do with an email that fails SPF or DKIM checks.

  • MX (Mail Exchange) records route incoming email for your domain to the right mail server.

You add all four in your domain's DNS settings, at your registrar or DNS host. Your email provider gives you the values to use.

Set up DKIM

  1. Sign in to your domain's DNS settings.

  2. Add the DKIM record your email provider gives you, using the record type it shows. Some providers give a TXT record; others give CNAME records.

  3. The record name usually looks like selector._domainkey, where the selector comes from your provider.

  4. Save the record.

Provider guides: Google Workspace, Zoho, Microsoft 365.

Set up SPF

  1. In your DNS settings, add a TXT record with the name @ (or leave the name blank).

  2. Set the value to the SPF include your provider gives you, for example:

JavaScript
v=spf1 include:_spf.your-email-provider.com ~all

Keep only one SPF record per domain. If you send from more than one service, add all of them to that single record.

Provider guides: Google Workspace, Zoho, Microsoft 365.

Set up DMARC

  1. Add a TXT record with the name _dmarc.

  2. Set the value, for example:

JavaScript
v=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com

The p value is your policy. You can change p=none to p=quarantine or p=reject.

Provider guides: Google Workspace, Zoho, Microsoft 365.

Set up MX records

  1. In your DNS settings, find the MX records section.

  2. Add the MX records your email provider gives you.

  3. Remove any old or conflicting MX records, then save.

Provider guides: Google Workspace, Zoho, Microsoft 365.

When to use it

Set up all four records on every domain you send from, before you start sending. Check them again after you change email provider or DNS host.

Good to know

  • DNS changes take time. Allow up to 48 hours for new records to work everywhere.

  • You make these changes at your DNS host, not in Smartlead.

  • Use the exact values your email provider gives you. The examples above are only formats.

FAQ

Why do these records matter for deliverability?

They show that emails from your domain are legitimate. Without them, inbox providers are more likely to send your emails to spam.

What is the difference between DKIM and SPF?

DKIM signs each email to prove it came from your domain. SPF checks that the email was sent from an allowed mail server. You need both.

How long do DNS changes take?

Anywhere from a few minutes to 48 hours. Until then, authentication checks may still fail.

Related articles

  • How Do I Set Up SPF, DMARC, and DKIM for Namecheap Accounts?

  • Steps for DNS/MX Verification

Did this answer your question?
😞
😐
😁