
Is your email going to spam? Are spoofers pretending to send emails from your domain? Don’t worry! With a few easy steps, you can protect your domain and emails like a pro. Let’s talk about three superhero protocols: SPF, DKIM, and DMARC. These are your best friends when it comes to email protection.
Don’t be scared by the fancy names. We’ll walk through each one step by step, using simple words and short sentences. By the end, your domain will be wearing armor!
1. What Are SPF, DKIM, and DMARC?
- SPF – Tells the world who can send emails from your domain.
- DKIM – Adds a special signature to your emails to prove they’re real.
- DMARC – Checks SPF and DKIM, and tells servers what to do if emails fail.
Think of them like passport checks for email. No signature? No entry!
2. Set Up SPF (Sender Policy Framework)
SPF is like a guest list. It says which servers can send email for your domain.
Step 1: Find Your Email Sending Services
Make a list of who sends email using your domain. Maybe it’s:
- Your web hosting company
- Google Workspace or Microsoft 365
- Marketing tools like Mailchimp or SendGrid
If a service isn’t listed in your SPF records, their emails may get blocked.
Step 2: Create Your SPF Record
An SPF record is a TXT record in your domain’s DNS settings.
It looks like this:
v=spf1 include:sendgrid.net include:_spf.google.com -all
Let’s break it down:
v=spf1
– Version of SPFinclude:sendgrid.net
– Allows SendGrid to send emailsinclude:_spf.google.com
– Allows Gmail to send emails-all
– Reject everything else
Step 3: Add It to Your DNS
Go to your DNS host (like GoDaddy, Namecheap, or Cloudflare).
Add a new TXT record:
- Name: @
- Type: TXT
- Value: Your SPF string
That’s it! Wait a few hours for DNS to update.

3. Set Up DKIM (DomainKeys Identified Mail)
DKIM is like sealing your emails with digital wax. If someone tampers with your message, the seal breaks!
Step 1: Turn On DKIM In Your Email Provider
Most major email providers like Google and Microsoft make DKIM easy:
- Google Workspace: Admin console → Apps → Gmail → Authenticate Email
- Microsoft 365: Go to Microsoft Defender → Email & collaboration → DKIM
Step 2: Get the DKIM Record from Provider
You’ll get a TXT record with a special name and long key. It will look something like this:
Name: google._domainkey.yourdomain.com Type: TXT Value: v=DKIM1; k=rsa; p=MIGf...AB
Step 3: Add DKIM to DNS
Just like SPF, go to your DNS and add a TXT record with the name and value given.
Save it, and your emails will start getting signed with your digital seal. Fancy!
4. Set Up DMARC (Domain-based Message Authentication)
DMARC tells mail servers what to do if SPF or DKIM fail. It’s like your domain’s bouncer.
Step 1: Choose Your DMARC Settings
DMARC records are also TXT records. Here’s a basic one to start with:
v=DMARC1; p=none; rua=mailto:me@yourdomain.com
This does three things:
v=DMARC1
– DMARC versionp=none
– Take no action (yet!), just monitorrua=mailto:me@yourdomain.com
– Where to send reports
You’ll start getting DMARC reports about how your domain is doing.
Step 2: Add DMARC Record to DNS
Go back to DNS and add a TXT record:
- Name: _dmarc.yourdomain.com
- Type: TXT
- Value: Your DMARC record
Done! Now you’re collecting data like a pro.
Later, you can upgrade p=none
to:
p=quarantine
– Send suspicious emails to spamp=reject
– Block them entirely

5. How to Monitor and Improve
OK, you’ve set up SPF, DKIM, and DMARC. You’re already a rockstar!
But don’t stop there. Keep checking reports. Services like:
- Postmark DMARC
- Dmarcian
- Valimail
…can help you read DMARC reports and suggest improvements.
As you get confident, move from p=none
to p=quarantine
, then p=reject
.
6. Common Mistakes to Avoid
- Missing SPF entries: Don’t forget any email provider you use.
- Duplicate TXT records: Only one SPF record per domain.
- Ignoring reports: DMARC reports are full of gold. Use them!
- Wrong DKIM name: Always double-check how your provider names it.
Stuck? Reach out to your provider’s support. They’re used to dealing with this stuff.
7. Final Words – You Did It!
Wow! You just secured your domain emails with SPF, DKIM, and DMARC. That’s huge.
You’re now better protected against spoofers and spam. Your users and customers will trust your emails more.
Remember, it’s not one-and-done. Keep checking your settings and reports regularly.
FAQs?
- Do I need all three?
Yes! They work best as a team. - How long does DNS take?
Usually a few hours, max 48 hours. - Can I test my settings?
Yes! Use tools like MXToolbox or dmarcian.com.
Now your domain is safer and smarter. Go ahead—send that email proudly!