• volticinc@gmail.com
  • Comments 0
  • 20 Jun 2024

How to Set Up SPF, DKIM, and DMARC Records on Cloudflare

Email authentication is essential for protecting your domain from phishing and spoofing attacks. Setting up SPF, DKIM, and DMARC records helps verify that your emails are legitimate and improves email deliverability. Cloudflare, a popular DNS management service, makes it easy to configure these records. In this blog post, we’ll guide you through the steps to set up SPF, DKIM, and DMARC records on Cloudflare and how Inbox Automation’s services can assist you in this process.

What Are SPF, DKIM, and DMARC?

SPF (Sender Policy Framework): SPF specifies which mail servers are authorized to send emails on behalf of your domain. It helps prevent spammers from sending emails that appear to come from your domain.

DKIM (DomainKeys Identified Mail): DKIM adds a digital signature to your emails, verifying that they haven’t been altered in transit. It ensures the email’s integrity and authenticity.

DMARC (Domain-based Message Authentication, Reporting & Conformance): DMARC builds on SPF and DKIM, providing instructions on how to handle emails that fail authentication and generating reports on email authentication status.

Step-by-Step Guide to Setting Up SPF, DKIM, and DMARC on Cloudflare

Step 1: Log In to Your Cloudflare Account

  1. Go to Cloudflare’s website and log in with your credentials.
  2. Select the domain for which you want to set up email authentication.

Step 2: Set Up SPF Record

  1. Navigate to the DNS tab for your selected domain.
  2. Click on Add record.
  3. Choose TXT as the type.
  4. In the name field, enter your domain name.
  5. In the Content field, enter your SPF record. For exam example: file-copy codev=spf1 include:_spf.google.com ~all
  6. Click Save to add the record.

Step 3: Set Up DKIM Record

  1. Obtain your DKIM record from your email service provider. This usually includes a selector and a public key.
  2. In the DNS tab, click on Add record.
  3. Choose CNAME as the type.
  4. In the Name field, enter the DKIM selector, followed by ._domainkey. For example:Copy codegoogle._domainkey
  5. In the Target field, enter the DKIM record provided by your email service provider. For example:Copy codegoogle.com.dkim.domainkey.com
  6. Click Save to add the record.

Step 4: Set Up DMARC Record

  1. Navigate to the DNS tab and click on Add Record.
  2. Choose TXT as the type.
  3. In the Name field, enter _dmarc.
  4. In the Content field, enter your DMARC policy. For example, copy codev=DMARC1; p=none; rua=mailto:dmarc-reports@yourdomain.com; ruf=mailto:dmarc-failures@yourdomain.com; pct=100; sp=none; aspf=r;
    • p=none This means no specific action will be taken on emails that fail DMARC. Change to or reject as needed.
    • rua This is the email address to receive aggregate reports.
    • ruf Is the email address to which to receive forensic reports.
    • pct Specifies the percentage of emails subjected to the DMARC policy.
  5. Click Save to add the record.

How Inbox Automation Can Help

Configuring SPF, DKIM, and DMARC records can be complex and time-consuming. Inbox Automation offers comprehensive services to help you with this process:

  1. Expert Guidance: Our team of experts provides step-by-step assistance in setting up and configuring your email authentication records.
  2. Automated Tools: We offer automated tools to streamline the setup process, ensuring accuracy and efficiency.
  3. Monitoring and Reporting: We monitor your email authentication status and provide detailed reports to help you maintain a secure and trusted email domain.
  4. Ongoing Support: Our support team is always available to help you troubleshoot issues and make adjustments as needed.


Setting up SPF, DKIM, and DMARC records on Cloudflare is a straightforward process that significantly enhances your email security and deliverability. By following these steps and leveraging Inbox Automation’s expert services, you can ensure that your emails are authenticated and protected against phishing and spoofing attacks.

Blog Shape Image Blog Shape Image

Leave a Reply

Your email address will not be published. Required fields are marked *



Click one of our contacts below to chat on WhatsApp

× How can I help you?