Talk to sales
Glossary

by 2Point

SPF DKIM DMARC Setup Guide

Author: Haydn Fleming • Chief Marketing Officer

Last update: Dec 21, 2025 Reading time: 4 Minutes

Email security is vital for any business that relies on digital communication. Implementing SPF, DKIM, and DMARC is pivotal for protecting your domain and ensuring that your emails reach their intended recipients. In this SPF DKIM DMARC setup guide, we will explore each component in detail, providing a step-by-step approach to setting them up effectively.

Understanding SPF, DKIM, and DMARC

What is SPF?

Sender Policy Framework (SPF) is an email authentication method designed to detect forging sender addresses. It allows a domain owner to specify which mail servers are permitted to send email on behalf of their domain. By implementing SPF, businesses can prevent unauthorized users from impersonating their domain.

What is DKIM?

DomainKeys Identified Mail (DKIM) establishes a digital signature in each outgoing email. This signature verifies that the sender is authorized and that the content has not been altered during transmission. With DKIM in place, recipients can trust the integrity of the messages sent from your domain.

What is DMARC?

Domain-based Message Authentication, Reporting & Conformance (DMARC) builds upon SPF and DKIM by providing a way for domain owners to specify how they want email receivers to handle unauthenticated emails. DMARC protects your domain by allowing email receivers to reject or quarantine emails that fail authentication checks.

Benefits of Implementing SPF, DKIM, and DMARC

  • Increased Email Deliverability: Proper authentication improves the likelihood that your emails will reach the inbox rather than the spam folder.
  • Protection Against Spoofing: These protocols prevent malicious actors from sending emails that appear to come from your domain.
  • Enhanced Reporting and Monitoring: DMARC provides insights into who is sending emails on behalf of your domain and helps identify any unauthorized usage.

Step-by-Step SPF DKIM DMARC Setup

1. Setting Up SPF

Step 1: Identify your authorized mail servers. This includes your email service provider, any third-party services that send emails on your behalf, and your company’s mail servers.

Step 2: Create an SPF record. The record is a line of text in your domain’s DNS settings. Use the following format:

v=spf1 include:example.com -all

Replace example.com with your authorized mail servers. The -all part indicates that any other servers are not authorized.

Step 3: Publish the SPF record in your DNS settings. Ensure to double-check for typos.

2. Setting Up DKIM

Step 1: Generate a DKIM key pair using your email provider’s tools. This will include a public and a private key.

Step 2: Publish the DKIM public key as a TXT record in your domain’s DNS settings. The format typically looks like this:

default._domainkey.example.com IN TXT "v=DKIM1; k=rsa; p=your-public-key"

Step 3: Configure your email server to use the DKIM private key. This step ensures that each outgoing email is signed with your DKIM key.

3. Setting Up DMARC

Step 1: Create a DMARC record in your DNS. This record specifies your policy for handling unauthenticated emails. An example DMARC record looks like this:

_dmarc.example.com IN TXT "v=DMARC1; p=none; rua=mailto:dmarc-reports@example.com; ruf=mailto:dmarc-reports@example.com; fo=1"

Step 2: Adjust the p tag based on your chosen policy:

  • none: Monitor and collect reports without affecting delivery.
  • quarantine: Send suspicious emails to spam.
  • reject: Completely block unauthenticated emails.

Step 3: Monitor the reports sent to your specified email address to adjust your settings as needed.

Best Practices for SPF, DKIM, and DMARC

  • Regularly Update Records: As your team adds or removes services, ensure to update your DNS records accordingly.
  • Use Email Authentication Tools: Consider tools that can help analyze your authentication and provide insights for improving deliverability.
  • Test Your Setup: Use online tools to verify your SPF, DKIM, and DMARC configurations.

Frequently Asked Questions

What happens if I don’t set up SPF, DKIM, or DMARC?
Failing to implement these protocols can result in higher chances of your emails being marked as spam or, worse, being spoofed.

Can SPF, DKIM, and DMARC improve my email marketing campaigns?
Yes, properly authenticated emails are more likely to reach your subscribers, enhancing engagement and effectiveness.

How can I verify if my SPF, DKIM, and DMARC are set up correctly?
Use online tools such as MXToolbox or DMARC Analyzer to test and validate your configurations.

Conclusion

Implementing SPF, DKIM, and DMARC is critical for safeguarding your email communications and reinforcing your brand’s integrity. Follow this SPF DKIM DMARC setup guide to enhance your email security and deliverability. Should you need assistance with these setups or any other marketing services, don’t hesitate to contact 2POINT. Our experts are here to help you navigate the complexities of email authentication and improve your overall marketing strategy.

cricle
Need help with digital marketing?

Book a consultation