← Back to the blog

21 Nov, 2026

Fake emails from your domain: SPF and DMARC

If your domain does not say which servers may send email on its behalf, a third party can send messages that look like yours: a fake invoice, a bank-account change, a "payment pending" link. Your customers receive them under your name, and your reputation pays for it. Checking whether you are exposed takes five minutes and needs no installation.

The three pieces, in plain terms

RecordWhat it does
SPFA list of the servers allowed to send email for your domain.
DKIMA digital signature proving the message came from one of your servers and was not altered on the way.
DMARCA rule telling the receiver what to do if SPF or DKIM fail (ignore, send to spam or reject) and sending you reports.

Gmail and Yahoo use all three to decide whether a message can be trusted. They also require them from bulk senders, so missing records can send your legitimate email to the spam folder too.

How to check

These are TXT records in DNS. From a terminal (replace yourdomain.com):

  • dig +short TXT yourdomain.com — look for one starting with v=spf1.
  • dig +short TXT _dmarc.yourdomain.com — look for one starting with v=DMARC1.
  • dig +short TXT selector._domainkey.yourdomain.com — your email provider tells you the selector name (for example in its control panel).

If you do not use a terminal, any online DNS lookup tool shows the same records.

What to look for

  • No SPF, or more than one: a domain must have a single SPF record. Two records invalidate each other.
  • SPF ending in ~all: soft mode (flags as suspicious). -all is strict (rejects). Move to strict once you are sure every sender is included.
  • No DMARC: nobody tells the receiver what to do with fake messages. It is the most common finding and the easiest to close.
  • DMARC at p=none: it only observes and reports, it does not block. A good first step, but not protection yet.

How to fix it (in this order)

  1. SPF with your real providers: your email service and anything else that sends on your behalf (newsletters, CRM, invoicing, online store). Missing one here makes legitimate mail fail.
  2. DKIM: turn it on in your email provider's panel; it tells you the DNS record to publish.
  3. DMARC starting at p=none with an address to receive reports. For example: v=DMARC1; p=none; rua=mailto:dmarc@yourdomain.com. Read the reports for a few weeks; when only your legitimate senders appear, move to p=quarantine and later to p=reject.

Do not jump straight to reject: if you left a legitimate sender out, its messages will stop arriving.

Prefer to have us check it for you?

We run this check for free, using only public data about your domain, and send you a report with the exact line to change. Request my free check.

Want to know how your site is doing right now?

Scan your site for free: broken links, security headers and basic SEO in a single report.

Scan my site free