Türk Web Site Web Design · Software

What Are SPF, DKIM and DMARC and How Do You Set Them Up? A 10/10 Email Test Score

We set up, step by step, the three DNS records that keep your emails out of the spam folder: what SPF, DKIM and DMARC do, how to set them up with Google Workspace and newsletter services, how to tighten DMARC policies gradually and what a 10/10 test score really means.

A shield, key and seal of approval surrounding an envelope, representing email authentication security.

No matter how well your email is written, the recipient's server first looks for the answer to one question: Is this message really coming from where it claims to? Three DNS records answer that question: SPF, DKIM and DMARC. When they are missing or wrong, even your most carefully crafted newsletter can end up in the spam folder.

The English source lesson describes this topic as "a bit boring, but you do it once and it's done". The lesson aims for a score of 10 out of 10 in free test tools after setting up the records. We set the same goal, but we also explain what each record does and add the important details the lesson skips.

In this guide we explain step by step what SPF, DKIM and DMARC records are, how to set them up using Google Workspace as an example, how newsletter services work with these records and which tools you can use to test your setup.

This article is the seventh part of our Making Money Online and Email Marketing Guide series. In the previous part we covered setting up email with your own domain and the basics of your sending infrastructure.

In short:

  • SPF says which servers may send email on behalf of your domain; DKIM shows the message wasn't altered on the way; DMARC says what to do with messages that fail these checks.
  • Gmail requires at least SPF or DKIM from every sender, and all three from those sending more than 5,000 messages a day.
  • A domain should have only one SPF record. If you use several services, add them all to the same record.
  • Start DMARC with a "none" policy and a report address; once the reports are clean, move to "quarantine" and "reject".
  • A 10/10 in test tools shows your settings are correct; on its own it doesn't guarantee inbox delivery.

What's in this guide?

  1. Why are SPF, DKIM and DMARC needed?
  2. How do you set up an SPF record?
  3. How do you set up DKIM?
  4. How do you set up DMARC?
  5. How do you test the setup? The 10/10 score
  6. Sample DNS table
  7. Common mistakes
  8. Conclusion and the next part of the series
A woman with long hair fitting together puzzle pieces with shield, key and lock icons
SPF, DKIM and DMARC only give full protection together.
A man with glasses at his laptop pointing to a bright shield protecting an email envelope
Authentication protects your domain against impersonators.
A woman watching pastel email envelopes fly into a mailbox
The goal is for emails to reach the inbox safely.

Why are SPF, DKIM and DMARC needed?

When email was first designed, there was no way to verify the sender's identity; anyone could send a message from someone else's address. These three records were developed to close that gap. Here's an analogy:

  • SPF is the list of authorised postmen at the door: only the servers on the list may send email on behalf of your domain.
  • DKIM is the seal on the envelope: it proves the message was sent by you and wasn't changed on the way.
  • DMARC is the instruction given to the doorkeeper: it says what to do if a message arrives from someone not on the list or with a broken seal, and it sends you reports.

According to Google's sender guidelines, every sender must use at least SPF or DKIM, and those sending 5,000 or more messages a day to Gmail accounts must set up all three: SPF, DKIM and DMARC. Even if your volume is small, setting up all three makes your emails look trustworthy.

RecordWhat does it do?Where in DNSExample value
SPFLists the authorised sending serversThe domain itself (@), TXTv=spf1 include:_spf.google.com ~all
DKIMSigns the message digitallyselector._domainkey, TXT or CNAMEv=DKIM1; k=rsa; p=... (generated by the provider)
DMARCSets a policy and requests reports_dmarc, TXTv=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

How do you set up an SPF record?

An SPF record is a TXT record added to your domain's DNS settings. According to Google Workspace's SPF guide, if you send email only with Google Workspace, the record is:

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

The "include" part of the record shows the authorised sending servers. The "~all" at the end says that messages from servers not on the list should be treated as suspicious; Google recommends this setting. The stricter "-all" asks for messages not on the list to be rejected outright.

If you use more than one service

Your business email may be on Google Workspace, your newsletter on a separate service and your invoices sent from accounting software. In that case you don't add a new SPF record; you extend the existing one. One of Google's examples is for people who use Google Workspace and Mailchimp together:

v=spf1 include:_spf.google.com include:servers.mcsv.net ~all

Pay attention to two rules:

  • A domain should have only one SPF record. When there are two separate "v=spf1" records, receiving servers treat SPF as invalid.
  • SPF allows at most 10 DNS lookups. Every "include" triggers extra lookups; if you add too many services, the record can exceed the limit and SPF will fail.

Some newsletter services handle bounced emails through their own domain, so they run the SPF check on their own domain. In that case you pass DMARC with your DKIM signature. Follow the instructions on your service's domain verification screen.

A woman with long hair adding tick marks to servers with a pen, a glowing lock icon in the middle
SPF gathers authorised servers in a single list.
A man sliding the lock switch on a cloud server, emails coming out of the server
Every sending service is added to the same SPF record.
A woman on a ladder placing a shield, key and approval badge on a server
Records are added step by step, in the right order.

How do you set up DKIM?

DKIM works with a key pair. The private key stays on your provider's server and signs every outgoing message. The public key is published in your DNS; receiving servers check the signature with this key.

DKIM in Google Workspace

According to Google's DKIM guide, the steps are:

  1. In the Admin Console, go to the email authentication settings and select your domain.
  2. Choose the key length: 2048-bit if your domain provider supports it, otherwise 1024-bit.
  3. Copy the name of the generated TXT record (the selector prefix and "._domainkey") and its value in the form "v=DKIM1; k=rsa; p=...".
  4. Add this record to your domain's DNS settings.
  5. Once the record has propagated, go back to the Admin Console and start DKIM signing.

DKIM in your newsletter service

When you add your sending domain in MailerLite, Brevo or Mailchimp, the service gives you its own DKIM records; these are usually CNAME records. Once you add them too, your newsletters are signed on behalf of your own domain. A domain can have several DKIM records with different selectors; the single-record rule of SPF doesn't apply to DKIM.

To see which selector is being used, send yourself a test email and look at the "s=" value in the "DKIM-Signature" line of the message source.

A woman putting a golden key into the lock of a large email envelope
DKIM is like a seal made with a private key.
A woman matching golden keys with email envelopes on a large screen
The public key sits in DNS, the private key on the server.
A woman connecting locks to an email network in an office with a city view
Each sending service can use its own signature.

How do you set up DMARC?

A DMARC record is a TXT record added with the name "_dmarc". The simplest starting record is:

v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com

  • p (policy): "none" takes no action and only requests reports. "quarantine" sends messages that fail authentication to the spam folder. "reject" asks for those messages to be rejected.
  • rua: The address where daily aggregate reports are sent. Google recommends always including this tag.
  • pct: Specifies the percentage of messages the policy applies to; useful when tightening the policy gradually.

The detail the lesson skips: reports

In the lesson, the DMARC record is created with a record generator using a "none" policy, and the reporting part is ignored. Yet the real value of DMARC lies in its reports: they tell you which servers send email on behalf of your domain, which ones fail authentication and whether someone is trying to impersonate your domain. The reports arrive in XML; you can make them readable with the report tools on sites like MxToolbox and mail-tester.

Tighten the policy gradually

StageRecordWhen to move on?
1. Monitoringp=none and ruaRight after setup
2. Partial quarantinep=quarantine; pct=25If all legitimate sending sources in the reports pass authentication
3. Full quarantinep=quarantineIf there were no problems in the partial stage
4. Rejectp=rejectIf it has worked without problems for a long time and you want full protection against impersonation

Quick note: Before moving to the "reject" policy, list everything that sends email on behalf of your domain: business email, newsletter service, accounting and invoicing software, your website's form notifications, CRM. If any of them fails authentication, your legitimate emails will be rejected too.

A woman turning flagged emails into approved ones with the settings on a control panel
The DMARC policy decides what happens to messages that break the rules.
A woman sitting on a cushion showing emails with shield and tick icons
Reports show which sources pass authentication.
A man on a garden terrace directing glowing emails coming out of his laptop
Authenticated emails continue on their way safely.

Let us set up your SPF, DKIM and DMARC records

Email addresses on your own domain, correctly configured SPF, DKIM and DMARC records, device setup and migration of your old mail. Let your emails reach the inbox.

See Business Email Setup Message Us on WhatsApp

How do you test the setup? What a 10/10 score means

After adding the records, check that everything works with a few free tools. DNS changes can take up to 48 hours to propagate everywhere; if a test fails, try again later.

  • AppMailDev DKIM test: Gives you a test address; when you send an email to it, it creates a report with SPF, DKIM, DMARC, reverse DNS and blacklist results.
  • MxToolbox: Looks up your domain's SPF, DKIM and DMARC records and checks whether your server is on any blacklists. The DMARC record generator used in the lesson is also on this site.
  • mail-tester: Gives you an address; when you send one of your real emails to it, it scores your settings and content out of 10. It is available in several languages.
  • "Show original" in Gmail: In a message you send to your own Gmail address, you should see "PASS" on the SPF, DKIM and DMARC lines.
  • Google Postmaster Tools: If you send to Gmail regularly, you can monitor your domain's spam complaint rate here.

What a 10/10 means and what it doesn't

In the lesson, a 10/10 is achieved on mail-tester and the content warnings are dismissed as "not important". A 10/10 shows your technical settings are correct, but it doesn't guarantee your email will reach the inbox. When deciding on delivery, providers also look at the quality of your list, how subscribers engage with your emails and your complaint rate. Take the content warnings seriously too: broken links, image-only emails and exaggerated sales language lower your score.

A smiling woman with five stars and a tick appearing above her laptop
A full score in the test tool shows the technical settings are correct.
A woman pinning an award badge on a sending server, surrounded by shield and email icons
Reputation is earned continuously, not once.
Two colleagues high-fiving once email security with a shield is complete
Records set up correctly once will serve you for years.

Sample DNS table

For examplebrand.com, which uses business email with Google Workspace and sends its newsletter through a separate email marketing service, the records look roughly like this:

TypeNameValuePurpose
MX@The MX value provided by Google WorkspaceIncoming email
TXT@v=spf1 include:_spf.google.com include:(newsletter service's value) ~allSPF
TXTgoogle._domainkeyv=DKIM1; k=rsa; p=(from the Admin Console)Workspace DKIM
CNAMEName provided by the serviceValue provided by the serviceNewsletter DKIM
TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc@examplebrand.comDMARC

Always copy the values from your own provider's panel; the table here only shows the layout.

An illustrative example: Why did the invoices disappear?

This story is fictional and meant to illustrate the method; names and numbers are examples.

Derya managed the emails of a small cosmetics brand. She set up SPF and DKIM for business email and the newsletter, scored 10/10 in the test tool and set the DMARC policy straight to "reject".

Two days later, customers started writing "the invoice never arrived". The invoices were sent on behalf of the brand by the accounting software, which was in neither the SPF record nor the DKIM settings. The new policy caused these legitimate emails to be rejected.

Derya rolled the policy back to "none" and added the report address. In the reports she spotted the accounting software, added its own DKIM record and updated the SPF record. After a month of clean reports she moved first to "quarantine" and then back to "reject"; this time not a single invoice was lost.

Common mistakes

  • Adding a separate SPF record for every new service
  • Adding too many "include"s to the SPF record and exceeding the 10-lookup limit
  • Adding the DKIM record to DNS but forgetting to start signing in the provider's panel
  • Setting up DMARC without a report address
  • Moving to the "reject" policy without checking all sending sources
  • Ignoring the content warnings after getting a 10/10

Conclusion: three records, set up correctly once

SPF sets the authorised servers, DKIM the integrity of the message and DMARC what to do with messages that break the rules. When all three are set up correctly, your domain is protected against impersonators and your emails are more likely to reach the inbox. Remember the single SPF record rule, set up DKIM separately for each sending service and tighten DMARC gradually by reading the reports.

What's in part eight of the series?

Once the technical infrastructure is ready, it's time to build your new domain's reputation gradually. In the next part we explain the email warm-up process, how to increase your sending volume and why some of the shortcuts taught in the lesson don't work. You can follow the TurkWebsite blog for our other articles.

Next in the series: Part 8: What Is Email Warm-Up?

Your website, email and DNS settings from one place

Let's set up your website, business email and DNS records together. Get affordable web design from TurkWebsite; as long as your site stays on our server, you don't pay for hosting. The domain is registered in your name and you pay for it.

See Website Packages Get a Quote on WhatsApp

Note: Providers' screens and recommendations may change over time; always follow your provider's current instructions when adding records. Last updated: 3 November 2026.

Quick answers

What are SPF, DKIM and DMARC?
All three are DNS records that verify an email really comes from where it claims to. SPF lists which servers may send email on behalf of your domain. DKIM signs the message digitally and proves it wasn't altered on the way. DMARC decides what happens to messages that fail these checks and sends you reports.
How do you write an SPF record?
You add a TXT record to your domain. If you only use Google Workspace, the record Google recommends is "v=spf1 include:_spf.google.com ~all". If you use other sending services, you add their include values to the same record.
Can a domain have more than one SPF record?
No. When there are two separate "v=spf1" records, receiving servers treat SPF as invalid. If you use several services, add them all to a single record and make sure it doesn't exceed the limit of 10 DNS lookups.
Should the DKIM key be 1024-bit or 2048-bit?
Google recommends a 2048-bit key if your domain provider supports it; longer keys are more secure. If your provider doesn't support 2048-bit keys, you can choose 1024-bit.
Is DMARC p=none enough?
It's the right choice to start with, but it isn't the final step. The "none" policy takes no action and only requests reports. Once the reports show that all your legitimate sending sources pass authentication, move gradually to "quarantine" and then to "reject".
What are DMARC reports and how do you read them?
They are daily aggregate reports sent to the rua address in your DMARC record. They show which servers send email on behalf of your domain and which ones fail authentication. The reports are in XML; you can make them readable with the report tools on sites like MxToolbox or mail-tester.
What does a 10/10 on mail-tester mean?
It shows that your technical settings and the content of the email you tested are fine. On its own, though, it doesn't guarantee inbox delivery; providers also look at list quality, subscriber engagement and the complaint rate.
When do DNS records take effect?
They usually show up within a few minutes, but it can take up to 48 hours for them to propagate everywhere. If a test fails, check that you entered the record correctly and try again later.
Do I need SPF and DKIM for my newsletter service too?
Yes. Add your sending domain in your newsletter service and put the DKIM records it gives you, plus the SPF value if required, into your DNS. Some services run the SPF check on their own domain, so you pass DMARC thanks to DKIM signed with your domain.
What are Gmail's SPF, DKIM and DMARC requirements?
According to Google's sender guidelines, every sender must use at least SPF or DKIM and keep the spam complaint rate below 0.3%. Those who send 5,000 or more messages a day to Gmail accounts must set up all three, SPF, DKIM and DMARC, and support one-click unsubscribe in marketing emails.

Services we can help you with on this topic

TSWS-01

One-Page Website

Services, contact and call buttons on one page; a fast, mobile-friendly starter site.

from $249
BES-01

Starter E-Commerce Website

A fast start to online sales: 100 products loaded, payment and shipping connected, mobile-ready store.

from $849
Chatbots · 5 to 7 business days

WhatsApp Business Bot

Answers price, availability and shipping questions instantly after hours; books appointments and takes orders.

from $349

Other posts

All posts
9 November 2026 · 16 min

Claude Code Instagram Skills

Pastel illustration of Claude Code automating Instagram content on a laptop and smartphone.

6 November 2026 · 8 min

What Is Email Warm-Up?

Sending to your whole list at once from a new domain lands you in spam; a warm-up plan based on Google's guidance.

  • what is an spf record
  • what is dkim
  • what is dmarc
  • spf dkim dmarc setup
  • how to write an spf record
  • create a dmarc record
  • mail-tester 10/10
  • email authentication
  • google workspace dkim
  • email spam folder

Describe your business in one sentence and we will send the package and price in writing

The first call is free. If you have a domain or an existing site, send us the link; we reply within 1 business day.