Get A Quote
SPF, DKIM and DMARC: Fix Email Deliverability for Website Forms

Blog

SPF, DKIM and DMARC: Fix Email Deliverability for Website Forms

SPF, DKIM and DMARC: Fix Email Deliverability for Website Forms

Your contact form says “message sent”, but nobody receives it. Or your order emails land in customers’ spam folders. Email deliverability is one of the most common hidden problems on business websites, and the fix usually lies in three DNS records: SPF, DKIM and DMARC.

Why Website Emails Go to Spam

By default, many websites send mail through the web server using the PHP mail function. Receiving providers such as Gmail and Outlook cannot confirm that the email is genuinely from your domain, so they treat it with suspicion or reject it.

What Is SPF?

SPF, or Sender Policy Framework, is a DNS record that lists which servers are allowed to send email for your domain. If a message comes from a server not on the list, it can be marked as suspicious.

What Is DKIM?

DKIM, or DomainKeys Identified Mail, adds a digital signature to each email. The receiving server checks the signature against a public key in your DNS to confirm the message was not changed and really came from you.

What Is DMARC?

DMARC, or Domain-based Message Authentication, tells receiving servers what to do when SPF or DKIM fails: do nothing, quarantine or reject. It also sends you reports about who is sending mail as your domain.

How to Set Them Up

  1. Use proper SMTP: send website email through your mail provider or a service such as Google Workspace, Zoho, Amazon SES or SendGrid, not the server’s default mail.
  2. Add SPF: publish one TXT record that includes every service that sends your email.
  3. Enable DKIM: generate the key in your email provider and add the record to DNS.
  4. Add DMARC: start with a monitoring policy, then move to quarantine or reject once everything passes.
  5. Send a test: use a mail testing tool to check the results.

Common Mistakes

  • Having more than one SPF record. A domain should have only one.
  • Forgetting a service that sends mail, such as a CRM or newsletter tool.
  • Using the visitor’s email as the From address in a form. Use your own domain as From and the visitor’s address as Reply-To.
  • Jumping straight to a strict DMARC policy.

Protect Your Forms Too

Spam bots can abuse forms to send junk from your domain, which hurts your reputation. Read our tips on blocking spam in contact forms. If you want those leads sent to a CRM, see sending ad leads to your CRM.

Frequently Asked Questions

Do I need all three records?

Yes. Major providers now expect SPF, DKIM and DMARC, especially for bulk senders.

How long do DNS changes take?

Usually minutes to a few hours, though full spread can take up to 48 hours.

Will this guarantee inbox delivery?

It removes the main technical blockers, but content quality and sender reputation also matter.

About Author

Shiva Sheshendra

Senior Web Developer / Senior PHP Developer / Full Stack Developer

“Web Development, Website Maintenance, Server Management, On-Page SEO, Security, and Malware Removal”

Recent Projects

Websites & Applications We’ve Built

Here are some of the real-world web and application projects we’ve designed and developed for healthcare, businesses, and growing organizations. Each project focuses on performance, security, and long-term reliability.

Request A Callback

Have a Development Requirement?

Share your requirements and we’ll help you plan the right technical solution.