Guide · Email from your domain
Stop fake email from your domain: SPF and DMARC in plain English
Anyone can put your domain in the From line of an email. Two short records in your domain’s DNS let inboxes tell your real email from fakes: SPF lists who may send email for you, and DMARC tells inboxes what to do with email that fails. Both are free, take a few minutes, and are worth having even if your app sends little or no email.
The two, at a glance
v=spf1 and lists who sends for you.Set it_dmarc on your domain, with p=quarantine or p=reject.Set itA third record, DKIM, signs the email you send. Your email service sets it up with you, and there’s more on it below.
How do I see mine?
Ask DNS for your domain’s TXT records, and for the ones at _dmarc:
Command for your terminal
dig TXT yourdomain.com +short
Command for your terminal
dig TXT _dmarc.yourdomain.com +short
A line starting "v=spf1 is your SPF record, and one starting "v=DMARC1 is your DMARC record. Nothing back means you don’t have one. On Windows, use nslookup with -type=TXT and the same names. Or let our checker read them: both are lines in the Email from your domain part of your report.
SPF: who may send as you
SPF is a TXT record on your domain. It starts with v=spf1, lists the services allowed to send email for your domain, and should end with an all rule that says what to make of everyone else (RFC 7208):
-allsays email from anyone else fails.~allsays it “softfails”, a weaker no. Google recommends~all(Google docs). Either one passes our check.+alllets anyone send as you, which defeats the point. Our checker marks it Fix now.- A domain may have only one SPF record. Two are an error, and so is a record that needs more than 10 DNS lookups to read (RFC 7208). When you add a new email service, add it to the record you have.
If your domain sends no email at all, an SPF record can say so: v=spf1 -all allows no one (RFC 7208).
Prompt for Lovable, Bolt, Cursor or Claude Code
Help me set up an SPF record for my domain. Ask me which services send email for me (Google Workspace, Resend, and so on) and give me the exact TXT record to add.
DMARC: what inboxes do with fakes
DMARC is a TXT record at _dmarc.yourdomain.com. It starts with v=DMARC1 and sets a policy for email that claims to be from you but fails the checks (Google docs):
p=noneonly watches: inboxes take no action on failing email and deliver it anyway. Our checker marks it Worth fixing.p=quarantineasks inboxes to treat failing email as suspicious, usually by putting it in spam.p=rejectasks them to refuse it.
An email passes DMARC when SPF or DKIM passes for the same domain as its From line (RFC 7489). That’s why your real email has to pass first. Add rua= with an address and inboxes send you reports of who sent email as you, so you can spot a service you forgot before you move to p=reject.
Prompt for Lovable, Bolt, Cursor or Claude Code
Help me add a DMARC record for my domain. Start with p=quarantine and a reporting address, and explain how to move to p=reject once my real email passes.
Why it matters, even for a small app
Without these records, nothing tells an inbox to doubt an email from your domain asking your users to “reset your password”. And the big inboxes now ask for them: since February 2024, anyone sending to personal Gmail accounts needs SPF or DKIM, and senders of about 5,000 or more emails a day also need DMARC, where p=none is enough (Google’s sender guidelines). Yahoo asks bulk senders for DMARC too (Yahoo’s sender guidelines).
Where do I add them?
In the DNS settings of wherever your domain is managed: the company you bought it from, or a DNS host like Cloudflare. Each email service you use, for sign-in emails, receipts or a newsletter, gives you the line to add to SPF and its own DKIM record. Start on its setup page.
Receiving email is a different record: an MX record says where mail to your domain goes.
What this can’t tell you
We check your own domain only: on a shared address like yourapp.vercel.app there’s no domain of yours, so the email lines are skipped. We read the SPF record of your domain itself (for app.example.com, that’s example.com) and its DMARC record. We don’t check DKIM, as its record sits under a name only your email service knows. We also don’t check whether your real email passes. Your email service’s dashboard shows that.