Articles on: Emails
This article is also available in:

Why and how to configure SPF, DKIM and DMARC for your emails?

This article is for you if you use your own domain name to send emails (e.g. contact@mystudio.com)


Why do your emails end up in spam?


If you use a custom email address (e.g. contact@mystudio.com) to send emails to your clients, some of them may end up in spam. This often happens because mail servers (Gmail, Outlook, Yahoo, etc.) don't recognise the sender as legitimate.


To avoid this, it is essential to set up three email authentication protocols:


🔹 SPF (Sender Policy Framework)


🔹 DKIM (DomainKeys Identified Mail)


🔹 DMARC (Domain-based Message Authentication, Reporting and Conformance)


These protocols help prove that you really are the sender of the emails and reduce the risk of them being marked as spam.


What are SPF, DKIM and DMARC?


🔹 SPF (Sender Policy Framework): defines a list of servers allowed to send emails on your behalf.


🔹 DKIM (DomainKeys Identified Mail): adds a cryptographic signature to your emails to prove they have not been altered.


🔹 DMARC (Domain-based Message Authentication, Reporting and Conformance): tells mail servers how to handle emails that fail SPF or DKIM.


With these three protocols set up, your emails are less likely to be treated as spam and will reach your clients more reliably.


How to configure SPF, DKIM and DMARC with your provider?


📌 1. Check your domain and DNS access


Before you start, you need access to your domain's DNS management. This is where you will add or edit TXT records.


🔹 Setup for Google Workspace (e.g. professional Gmail)


1️⃣ Configure SPF:


Add this TXT record in your DNS manager:


v=spf1 include:_spf.google.com ~all


➡️ This tells servers that Google is allowed to send emails for your domain.


2️⃣ Configure DKIM:


Go to Admin Console → Apps → Google Workspace → Gmail → Authenticate email.


Turn on DKIM and follow the instructions to add the TXT record provided by Google.


3️⃣ Configure DMARC:


Add this TXT record:


v=DMARC1; p=quarantine; rua=mailto:youremail@yourdomain.com


➡️ You can set p=none, p=quarantine or p=reject depending on the level of control you want.


🔹 Setup for OVH


1️⃣ Configure SPF:


Add this TXT record to your DNS:


v=spf1 include:mx.ovh.com ~all


➡️ This allows OVH servers to send emails on your behalf.


2️⃣ Configure DKIM:


Go to OVH Webmail → Emails → Advanced configuration → DKIM.


OVH gives you a DKIM key to add as a TXT record in your DNS.


3️⃣ Configure DMARC:


Add this TXT record:


v=DMARC1; p=quarantine; rua=mailto:youremail@yourdomain.com


➡️ This lets you monitor and report non-compliant emails.


How to test that SPF, DKIM and DMARC are set up correctly?


Once you have added these records, test your setup with these tools:


✅ Mail-Tester: https://www.mail-tester.com/


✅ Google Postmaster Tools: https://postmaster.google.com/


✅ MXToolBox: https://mxtoolbox.com/


About DMARC and its reports


DMARC (Domain-based Message Authentication, Reporting & Conformance) is a protocol that helps protect your domain against spoofing and phishing. When you turn on DMARC, you can choose to receive reports that tell you how your domain is used to send emails.


Why receive DMARC reports?


DMARC reports let you:


  • Check that your emails are correctly authenticated with SPF and DKIM.
  • Detect whether unauthorised third parties are using your domain to send fraudulent emails.
  • Optimise your SPF, DKIM and DMARC records so that your legitimate emails are not marked as spam.


How to read DMARC reports?


DMARC reports are sent as XML files. Several online tools can convert and interpret them (e.g. dmarcian, Postmark, etc.). They will tell you whether SPF and DKIM are set up correctly, and whether anyone is trying to spoof your domain.


How to stop receiving DMARC reports?


Every mail server that receives at least one email from you will send you a DMARC report. That can be a lot. Once your DMARC setup is in place and everything works, you can stop receiving reports by editing your DMARC record: remove the rua and ruf tags from it.


FAQ: common problems and solutions


❓ My email still lands in spam, why?


➡️ Make sure the DNS records have propagated (this can take 24 to 48 hours).
➡️ Check your content: avoid typical spam words, too many links or images without text.
➡️ Ask your recipients to mark your emails as safe.


❓ I don't have access to my domain's DNS management, what can I do?


➡️ Contact your host or your domain administrator to add the records.


❓ How do I know if DMARC is blocking my emails?


➡️ Set up a report address (rua=mailto:youremail@yourdomain.com) to receive DMARC notifications.


🎯 Conclusion: make sure your emails are delivered


By setting up SPF, DKIM and DMARC, you greatly reduce the risk of your emails landing in spam. These settings are essential to communicate reliably with your clients and keep a professional image.


💡 If you have questions or need help setting up these records, contact our support!

Updated on: 19/11/2026

Was this article helpful?

Share your feedback

Cancel

Thank you!