SPF, DKIM and DMARC: the guide to keep your emails out of Spam (small business edition)
November 30, 2026
Since 2024, Gmail and Yahoo require bulk senders to authenticate their domain. But even if you send only a few emails, without authentication your messages (order confirmations, quotes, newsletters) are more likely to land in Spam or get rejected.
The good news: it's fixed with three DNS records, and you only set it up once.
First: don't send from @gmail.com
If your business sends email from a free account, you can't authenticate that domain because it isn't yours. The first step is to use your own domain (for example, hello@yourcompany.com) and a sending provider that lets you configure it.
The three records that matter
1. SPF: who can send on your behalf
SPF is a TXT record listing the servers allowed to send email for your domain. If a message arrives from a server that isn't on the list, the receiver gets suspicious.
Each provider tells you what to add. For example, Resend uses a sending subdomain (send) with this value:
send.yourdomain.com TXT "v=spf1 include:amazonses.com ~all"
Watch out for a common mistake: a domain must have only one SPF record. If you use several services on the root domain (say, Google Workspace and a newsletter tool), their include: entries go together in the same record.
2. DKIM: your emails' signature
DKIM adds a cryptographic signature to each email. The receiving server uses a public key published in your DNS to check that the message comes from your domain and wasn't altered.
Your provider generates the key and gives you the record. In Resend, for example, the host is resend._domainkey and the value is a long public key you copy as-is.
3. DMARC: what to do with emails that fail
DMARC ties SPF and DKIM together and tells the receiver what to do if an email claiming to come from your domain fails validation. It also lets you receive reports.
_dmarc.yourdomain.com TXT "v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com"
Start with p=none (monitoring only). Review the reports for a few weeks to confirm all your legitimate mail passes, then move up to p=quarantine and, if everything checks out, to p=reject.
Good practices beyond DNS
- Use a subdomain for bulk sending (for example,
mail.yourcompany.com), so your newsletters' reputation doesn't affect your everyday email. - Include an unsubscribe link in every marketing email, working in one click.
- Only email people who opted in. Buying lists is the fastest way to ruin a domain's reputation.
- Clean up bounces: remove addresses that don't exist instead of sending to them again.
Quick checklist
- Your own domain for sending (no @gmail.com).
- A single SPF record covering all your providers.
- DKIM enabled in every sending provider.
- DMARC at
p=none, reviewing reports before tightening it. - A separate subdomain for bulk campaigns.
- An unsubscribe link in every marketing email.
Are your emails landing in Spam and you don't know why? Write to us and we'll take a look.