How to set up SPF, DKIM and DMARC before you send
Set up SPF, DKIM and DMARC for the domain your cold emails come from, at your email provider and DNS host, then check they pass.
On this page
SPF, DKIM and DMARC are three DNS records that prove an email really comes from your domain. To set them up for cold email, add one SPF TXT record that lists your email provider, turn on DKIM in your provider’s admin console and publish the key it gives you, then add a DMARC TXT record at _dmarc.yourdomain.com starting with p=none. Use the exact values your email provider (Google Workspace, Microsoft 365, Zoho or your host) gives you. Wait for DNS to update, then send a test email and check that all three pass. The steps below show where to find each value and how to test it with Swift Outbox.
Why it matters: Gmail, Outlook and Yahoo check these records on every email. Emails from a domain without them are far more likely to land in spam, and Google requires SPF or DKIM from every sender, plus DMARC from senders of more than 5,000 emails a day to Gmail. Source: Email sender guidelines (Google). For the full list of spam causes, read why cold emails go to spam. Our acceptable use policy asks you to send only from domains with SPF, DKIM and DMARC set up.
Note: Swift Outbox sends through your own email provider over SMTP. You set these records up for your email provider, not for us. The app does not check your DNS records for you.
SPF, DKIM and DMARC in plain words
| Record | What it says | Where it lives |
|---|---|---|
| SPF | “These servers may send email for my domain.” | One TXT record on your domain |
| DKIM | A digital signature on each email that proves it was not changed on the way. | A TXT or CNAME record your email provider gives you |
| DMARC | “If an email fails SPF or DKIM, do this with it, and send me reports.” | A TXT record at _dmarc.yourdomain.com |
How to set up SPF, DKIM and DMARC
Do this once per domain you send from. You need access to your email provider’s admin console and to your DNS host (where your domain’s records are managed: your registrar, Cloudflare or your web host).
- Open your provider’s guide. Each provider publishes the exact values (links below).
- Add SPF. Create or edit the single TXT record on your domain that starts with
v=spf1. Your provider tells you what to include, for exampleinclude:_spf.google.comfor Google Workspace. A domain must have only one SPF record; if one exists, add your provider to it instead of creating a second. - Turn on DKIM. In your provider’s admin console, generate a DKIM key, add the record it shows at your DNS host, then click the provider’s start or enable button.
- Add DMARC. Create a TXT record named
_dmarcwith a monitoring policy to start, for examplev=DMARC1; p=none; rua=mailto:you@yourdomain.com. After a few weeks of clean reports you can tightenp=nonetop=quarantine. - Wait and check. DNS changes can take up to 48 hours. Then test as described below.
Warning: Do not copy SPF or DKIM values from another company’s guide or from this page. Use the values your own email provider gives you. A wrong SPF record can block all your email, not only campaigns.
Official guides by provider
| Provider | SPF | DKIM | DMARC |
|---|---|---|---|
| Google Workspace | Set up SPF | Set up DKIM | Set up DMARC |
| Microsoft 365 | Configure SPF | Configure DKIM | Configure DMARC |
| Zoho Mail | SPF configuration | DKIM configuration | DMARC policy |
For a web host mailbox, search your host’s help for “SPF” and “DKIM”; most hosting panels add them for you.
Check that they pass with Swift Outbox
- Go to Settings > Sending accounts and click Send test on the account.
- Send the test to a Gmail address you can open.
- In Gmail, open the email, click the three dots and choose Show original.
- Look for
PASSnext to SPF, DKIM and DMARC.
If one says FAIL or is missing, fix that record at your DNS host and test again after it updates.
Use a separate domain for cold email
Many teams send cold email from a second domain (for example getyourcompany.com next to yourcompany.com), so a deliverability problem never touches the domain your customers and staff use every day. Set up SPF, DKIM and DMARC on that domain too, and point its website at your main site.
Tip: Give a brand-new domain and its mailboxes a few weeks of low, steady sending before you scale. Turn on warm-up and keep daily limits low.
Troubleshooting SPF, DKIM and DMARC
- Two SPF records. Only one is allowed. Merge them into one
v=spf1record. - DKIM record added but never enabled. Most providers need you to click “start authentication” after the DNS record is in place.
- Jumping straight to
p=reject. Start DMARC atp=none, read the reports, then tighten. - Custom tracking domain without a matching record. If you use a tracking domain, it needs its own CNAME. See open tracking.
Next step
Build a sending history for new mailboxes: How to turn on email warm-up.
Common questions
Do I need SPF, DKIM and DMARC to send cold email?
Google asks every sender for SPF or DKIM, and senders of more than 5,000 emails a day to Gmail for SPF, DKIM and DMARC. In practice, set up all three on any domain you send cold email from.
Do I set these records up for Swift Outbox?
No. Swift Outbox sends through your own email provider over SMTP, so you set the records up for that provider (Google Workspace, Microsoft 365, Zoho or your host).
Does Swift Outbox check my DNS records?
No. The app does not check SPF, DKIM or DMARC. Send a test email to a Gmail address and use Show original to see whether each one passes.
What DMARC policy should I start with?
Start with p=none so nothing is blocked while you read the reports. After a few weeks of clean results, move to p=quarantine.
I send from a plain @gmail.com address. Do I need this?
No. Google handles authentication for @gmail.com and Microsoft for @outlook.com. These records are for your own domain.
Still stuck? Open a ticket from Swift Support in the app, or contact us.