4 min read Mar 1, 2026

How to Set Up DKIM, SPF, and DMARC Records

Email authentication helps prove that an email message actually comes from you — not from spammers or fraudsters pretending to be you. It’s an essential…

FimuroHost Team

FimuroHost Team

Technical Writer

Share Article

Email authentication helps prove that an email message actually comes from you — not from spammers or fraudsters pretending to be you. It’s an essential step in improving email deliverability and protecting your reputation online.

This guide explains the main email authentication records and how to set them up correctly.


Why Email Authentication Matters

Without proper email authentication:

✔ Your emails may end up in spam folders
✔ Receiving servers may reject your emails
✔ Your email domain could be impersonated
✔ Your brand reputation may suffer

Authentication helps receiving mail servers trust your emails and deliver them to inboxes instead of spam folders.


The Main Email Authentication Methods

There are three primary email authentication records:

  1. SPF (Sender Policy Framework)

  2. DKIM (DomainKeys Identified Mail)

  3. DMARC (Domain-based Message Authentication, Reporting & Conformance)

Together, these help secure your email sending and improve trust.


What Is SPF?

SPF tells receiving mail servers which servers are authorized to send email on behalf of your domain.

When an email server gets your message, it checks your SPF record to confirm whether the server that sent the email is allowed.

An SPF record might look like this:

v=spf1 include:mailprovider.com ~all

This means mail sent from servers listed in mailprovider.com is allowed.

Without SPF, other servers could send forged emails that appear to be from your domain.


What Is DKIM?

DKIM adds a digital signature to your outgoing messages. The signature is created with a private key and verified by a public key stored in your DNS records.

When the receiving server checks DKIM, it verifies that the message hasn’t been altered and truly comes from the sender.

A DKIM record might look like:

default._domainkey.yourdomain.com TXT “v=DKIM1; k=rsa; p=PUBLICKEY…”

DKIM helps prevent email tampering and increases trust.


What Is DMARC?

DMARC builds on SPF and DKIM to tell mail receivers what to do if an email fails authentication.

With a DMARC record, you define a policy such as:

✔ p=none → Take no action but report

✔ p=quarantine → Send the email to spam

✔ p=reject → Block the email completely

A simple DMARC example:

_dmarc.yourdomain.com TXT “v=DMARC1; p=reject; rua=mailto:[email protected]”

DMARC also sends reports to help you analyze authentication performance.


How to Add Email Authentication Records

To add SPF, DKIM, or DMARC to your domain:

  1. Login to your domain DNS manager

  2. Open the DNS records or Zone Editor

  3. Add a TXT record for SPF, DKIM, or DMARC

  4. Save the changes

DNS changes may take up to 24–48 hours to propagate worldwide.


Example: Setting Up SPF Record

Add a TXT record in your DNS like:

Type: TXT  
Name: @  
Value: v=spf1 include:mailprovider.com ~all

Replace mailprovider.com with the service you use (like your hosting mail server or an email marketing provider).


Example: Setting Up DKIM

DKIM records are often provided by your email service. They look like:

Type: TXT  
Name: default._domainkey  
Value: v=DKIM1; k=rsa; p=YOURPUBLICKEY

Enter them exactly as given by your email provider.


Example: Setting Up DMARC

Add a TXT record for DMARC like:

Type: TXT  
Name: _dmarc  
Value: v=DMARC1; p=quarantine; rua=mailto:[email protected]

This tells servers to quarantine email that fails both SPF and DKIM.


Tips for Email Authentication

✔ Always use a valid mail provider in SPF

✔ Use both SPF and DKIM for stronger protection

✔ Publish DMARC to enforce policies

✔ Monitor DMARC reports regularly

Good authentication improves inbox placement and protects your domain against spoofing.


For Support

For any questions or technical assistance, contact our 24/7 support through Live Chat, support tickets, or our official social media pages.


Frequently Asked Questions

Q1. What is email authentication?

Email authentication is the process of verifying that emails are sent from authorized servers and not forged by spammers.


Q2. What do SPF, DKIM, and DMARC do?

SPF identifies authorized sending servers, DKIM signs emails with a secure signature, and DMARC sets rules for how mail servers should handle failed authentication.


Q3. Do I need all three records?

Yes. Using SPF, DKIM, and DMARC together provides the strongest protection and improves email deliverability.


Q4. How long does it take for DNS changes to work?

DNS changes may take around 24–48 hours to fully propagate.


Q5. Will authentication stop all spam?

Authentication prevents spoofing of your domain, but it won’t stop spam from other domains.

FimuroHost Team

Written by

FimuroHost Team

Technical Writer