SPF, DKIM and DMARC are three DNS records that prove your business emails really come from you. SPF lists the servers allowed to send for your domain, DKIM adds a digital signature to each message, and DMARC tells receiving providers what to do when a message fails those checks. Gmail, Yahoo and Outlook use them to decide between the inbox and the spam folder. This guide explains SPF, DKIM and DMARC in plain language, with real example values from Google, so you can set them up correctly or check what someone else did.
Why SPF, DKIM and DMARC matter
Anyone can type your company name into a "From" line, which is how fake invoices and phishing emails work. Receiving providers fight this by checking whether a message can be proved genuine. If your domain has no proof, your own genuine mail can be treated like a fake.
Google's sender guidelines say that since 1 February 2024, all senders to Gmail accounts must set up SPF or DKIM authentication for their domain. Senders who send more than 5,000 messages a day to Gmail must set up SPF, DKIM and DMARC. Most small Nigerian businesses send far fewer, but the records still protect your reputation and help your mail reach the inbox. If your messages are already landing in spam, see our service for fixing business emails going to spam.
SPF: who is allowed to send
SPF stands for Sender Policy Framework. It is a TXT record at your domain that lists the services allowed to send mail for you. Google says it helps prevent your outgoing email from being marked as spam by receiving servers.
For a domain that sends mail only through Google Workspace, Google's record is:
v=spf1 include:_spf.google.com ~all
The include: part names Google's servers, and ~all tells receivers to treat anything else with suspicion. Google recommends ~all. Three rules matter:
- A domain should have only one SPF record. If you use several services, merge them into the same record. Two records can break SPF completely.
- List every sender. Your website form tool, newsletter service and invoicing software must each be included, or their mail may fail.
- Mind the limit. Google notes that an SPF record can have up to 10
include:tags.
Google says SPF can take up to 48 hours to start working.
DKIM: the digital signature
DKIM stands for DomainKeys Identified Mail. Your mail provider signs each outgoing message with a private key, and a public key in your DNS lets receivers check that the message really came from you and was not changed on the way.
In Google Workspace you generate the key in the Admin console, then add it as a TXT record. Google's defaults are:
- Host name:
google._domainkey(the selector, plus._domainkey) - Value: starts with
v=DKIM1; k=rsa; p=followed by your long key
Google offers key lengths of 2048 and 1024 bits, and says sending to personal Gmail accounts needs a key of 1024 bits or longer. After you turn Gmail on for a new domain, Google says you must wait 24 to 72 hours before you can get your DKIM key, and the key can take up to 48 hours to start working after you add it.
DMARC: what to do when checks fail
DMARC stands for Domain-based Message Authentication, Reporting and Conformance. It sits on top of SPF and DKIM and tells receivers what to do with messages that fail them, and where to send reports.
Google's advice is to start with the policy set to none, which only monitors, then move to quarantine or reject over time once you are sure all your legitimate mail passes. An example record looks like this:
v=DMARC1; p=none; rua=mailto:dmarc@yourcompany.com
Here, p=none means monitor only, and rua= is the address where summary reports are sent. Google also says to allow 48 hours after setting up SPF or DKIM before you set up DMARC. A policy of none is enough to meet Google's DMARC requirement for bulk senders.
The three records together
| Record | What it proves | Where it lives |
|---|---|---|
| SPF | This server is allowed to send for my domain | TXT record on your domain |
| DKIM | This message has not been changed and is signed by my domain | TXT record on a selector name such as google._domainkey |
| DMARC | Here is what to do if SPF or DKIM fail, and where to report | TXT record at _dmarc on your domain |
Google also requires the domain in the visible "From" address to align with the SPF or DKIM domain for bulk senders, which is why mail sent through third-party tools needs those tools set up on your domain.
How to check your records
You can check your setup without special tools:
- Send a message from your business address to a Gmail account.
- Open the message and choose "Show original" from the three-dot menu.
- Look for SPF, DKIM and DMARC lines, which should each say PASS.
Free online DNS checkers can also show whether the records exist and whether you have duplicates. If you send a lot of mail to Gmail, Google Postmaster Tools shows your domain's spam rate, which Google says to keep low.
Common mistakes
- Two SPF records on the same domain.
- Copying values from another provider. Each provider gives its own exact values.
- Forgetting a sender, such as the website form or the newsletter tool.
- Setting DMARC to reject too early, which can block your own legitimate mail.
- Not waiting for DNS to spread before testing.
- Leaving old records behind after changing provider. See email migration.
- Sending website form mail through the server's basic mail function instead of an authenticated mailbox.
What to do next
If you are creating email for the first time, follow our guide to how to create a business email in Nigeria, which puts these records in the right order. For provider-specific help, see our pages on Google Workspace, Zoho Mail and Microsoft 365.
Frequently asked questions
Do I need SPF, DKIM and DMARC for a small business?
Google requires SPF or DKIM from every sender to Gmail and requires all three from senders of more than 5,000 messages a day. A small business should still set up all three, because they protect your reputation and make spam filtering less likely.
What is the difference between SPF, DKIM and DMARC?
SPF lists who may send for your domain. DKIM signs each message so it cannot be changed unnoticed. DMARC tells receivers what to do when SPF or DKIM fail and where to send reports. They work best together.
How long do SPF, DKIM and DMARC take to work?
Google says SPF and DKIM can take up to 48 hours to start working, and a DKIM key may take 24 to 72 hours to appear for a new Gmail setup. Allow 48 hours after SPF and DKIM before adding DMARC.
What DMARC policy should I start with?
Google recommends starting with p=none, which only monitors, then moving to quarantine or reject over time. This avoids blocking your own legitimate mail while you find every service that sends for you.
Why are my emails still going to spam with SPF, DKIM and DMARC set?
Authentication is necessary but not enough. Spam filters also look at your reputation, content, complaint rates and sending method. Check each sender, look at the message headers and see our page on fixing business emails going to spam.
Can I set these up myself?
Yes, if you are comfortable with DNS settings, and your provider gives you the exact values. A mistake can stop mail from arriving, so test carefully. We can set them up and explain each step. Contact Zentro Sites for help.
Need these set up correctly?
We configure SPF, DKIM and DMARC for every business email setup, and fix them on existing domains. See our page on business email in Nigeria or request a quote.



