Guide · 12 min read · Updated November 2026
SPF, DKIM and DMARC setup for cold email: Google Workspace, Microsoft 365 and more
By Alexes Siara, EditorPublished Last updated
Steps
- List your senders. Write down every service that sends mail for the domain: your mailbox provider, any sending service, and other tools.
- Create one SPF record. Add a single TXT record on the root starting with v=spf1 that includes each sender, ending with ~all or -all.
- Add DKIM for each sender. Copy the DKIM TXT or CNAME records each provider shows you, using their selector names.
- Add DMARC. Add a TXT record at _dmarc with v=DMARC1; p=none; and an address for reports.
- Verify. Run the DNS check in Pink Post Settings and send a test email to confirm SPF, DKIM and DMARC pass.
SPF
SPF (Sender Policy Framework) lists the servers allowed to send for your domain. You must have exactly one SPF record. A typical shape, with placeholders:
v=spf1 include:<your-mail-provider> include:<any-other-sending-service> ~all
DKIM
DKIM signs each email with a key published in DNS under a selector, such as <selector>._domainkey.yourdomain.com. Every sending service has its own selector; Google Workspace defaults to google. Enter your selector in Pink Post's DNS checker to verify it.
DMARC
DMARC tells receivers what to do when SPF or DKIM fail and where to send reports.
Name: _dmarc
Type: TXT
Value: v=DMARC1; p=none; rua=mailto:<reports@yourdomain.com>After a few weeks of clean reports, move to p=quarantine.
Also check
- MX records, so replies reach you.
- A custom tracking domain only if you turn on open or click tracking (off by default in Pink Post).
SPF, DKIM and DMARC for Google Workspace
If you send from Google Workspace and nothing else, these are the three records you need. Your DNS host (Cloudflare, GoDaddy, Namecheap and so on) is where you add them, not Google.
Google Workspace SPF record
Name: @ (the root of your domain)
Type: TXT
Value: v=spf1 include:_spf.google.com ~all
If another service also sends for the domain, add its include to the same record, like this: v=spf1 include:_spf.google.com include:<other-service> ~all. Never create a second SPF record; two records make SPF fail.
Google Workspace DKIM
In the Google Admin console, go to Apps → Google Workspace → Gmail → Authenticate email and choose the domain. Generate a 2048-bit key with the default selector google. Add the TXT record it shows at google._domainkey and wait for DNS to update. Then click Start authentication. This last step is the one people miss: until you click it, Google doesn't sign your mail.
Set up DMARC for Google Workspace
Name: _dmarc
Type: TXT
Value: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com
Start with p=none to collect reports without affecting delivery. Once reports show your mail passing SPF or DKIM in alignment, move to p=quarantine, and later p=reject if you want the strictest protection.
SPF includes by provider
Each provider publishes its own include. Always copy the exact value from your provider's help or admin pages, as they can change.
| Provider | SPF include | DKIM |
|---|---|---|
| Google Workspace | include:_spf.google.com | TXT at google._domainkey, from the Admin console |
| Microsoft 365 | include:spf.protection.outlook.com | Two CNAME records shown in the Microsoft Defender portal |
| Zoho Mail | Shown in the Zoho admin console for your data centre | TXT record with the selector you choose in Zoho |
| Hostinger | Shown in hPanel under Emails → DNS settings | TXT record shown in hPanel |
| Other hosts | Look for "SPF" in your email host's DNS help | Look for "DKIM" in the same place |
Why cold email needs all three
Since February 2024, Gmail and Yahoo require every sender to authenticate with SPF or DKIM. Senders of 5,000 or more messages a day to Gmail must also have SPF, DKIM and a DMARC record, with the From domain aligned. Microsoft added similar rules for high-volume senders to Outlook.com in 2025. Cold outreach rarely gets near 5,000 a day. But mailbox providers judge unknown senders strictly, so set all three up from day one.
Common DNS mistakes
| Mistake | What happens | Fix |
|---|---|---|
| Two SPF records | SPF returns an error and fails | Merge them into one record |
| More than 10 DNS lookups in SPF | SPF fails with "too many lookups" | Remove services you no longer use |
| Using +all | Anyone can send as your domain | Use ~all or -all |
| DKIM record added but not activated | Mail goes out unsigned | Click Start authentication (Google) or enable signing |
| DMARC at p=reject on day one | Legitimate mail from a forgotten tool is rejected | Start at p=none and read reports |
| No MX record | Replies never arrive | Add your provider's MX records |
How to verify your records
Use the free SPF checker, DKIM checker and DMARC checker, or the email deliverability test to check all three at once. In Pink Post, the DNS check in Settings runs the same checks for every connected mailbox's domain before you launch a campaign. DNS changes can take from a few minutes to 48 hours to show up everywhere.
Keep exploring: SPF, DKIM and DMARC checker, SPF checker, DKIM checker and DMARC checker.
