Skip to content

What Is Email Spoofing and How Do You Stop It?

How attackers forge the From address, which spoofing DMARC stops and which it cannot, and the steps that protect your domain.

Published 7 min read

Email spoofing is sending a message with a forged sender, usually a From: address that belongs to someone else. It works because SMTP, the protocol that carries email, lets the sender write any From address it likes. You stop exact-domain spoofing of your own domain by publishing SPF, DKIM and a DMARC policy at p=quarantine or p=reject; lookalike domains and compromised accounts need other defenses.

Why email can be spoofed

SMTP was designed in the early 1980s for a network of trusted hosts. A message has two separate sender identities, and neither is verified by the protocol itself:

  • The envelope sender, given in the SMTP MAIL FROM command. It is used for bounces and usually appears as Return-Path in the delivered message.
  • The header From, the From: line inside the message. This is what mail clients display.

A sending server can put anything in either one. This session is valid SMTP:

HELO mail.attacker.example.net
MAIL FROM:<bounce@attacker.example.net>
RCPT TO:<ap@customer.example>
DATA
From: "Example Accounts" <accounts@example.com>
To: ap@customer.example
Subject: Updated bank details for invoice 4471

Please use the new account below for this and future payments.
.

Without authentication, the recipient sees a message from accounts@example.com. SPF, DKIM and DMARC were added later to let receivers detect this.

Types of email spoofing

Not every attack forges your domain. The type determines what stops it.

Type Example From line Does DMARC on your domain stop it?
Exact-domain spoofing accounts@example.com Yes, at p=quarantine or p=reject
Subdomain spoofing billing@pay.example.com Yes, if sp (and np) are enforced
Lookalike domain accounts@examp1e.com, accounts@example-billing.com No, it is a different domain
Display name spoofing "Example Accounts" <x83@freemail.example> No, the address is the free mail domain
Compromised account accounts@example.com, sent from the real mailbox No, the mail is fully authenticated
Reply-To redirection From is legitimate or lookalike, Reply-To: points to the attacker Only if the From is your exact domain

Exact-domain spoofing

The attacker uses your real domain in the From header. It is the most convincing form because the address is correct, and it is the form DMARC was built to stop. With an enforced policy, receivers that check DMARC filter or refuse it.

Subdomain spoofing

Attackers often pick subdomains that do not exist, such as secure.example.com or invoices.example.com, hoping only the main domain is protected. By default subdomains inherit the main domain's policy. The sp tag sets it explicitly, and RFC 9989 added np for subdomains that do not exist in DNS. See DMARC for subdomains and parked domains.

Lookalike domains

examp1e.com, example.co, exarnple.com (with rn for m), or internationalized domains that use characters from other scripts. The attacker registers the domain and can even publish valid SPF, DKIM and DMARC for it. DMARC on your domain has nothing to say about another domain.

Display name spoofing

Many mail clients, especially on mobile, show only the display name. "Example CEO" <ceo.example@freemail.example> appears as "Example CEO". This passes DMARC for the free mail domain.

Compromised accounts

If an attacker takes over a real mailbox or a sending platform account, every message they send passes SPF, DKIM and DMARC. Authentication proves where mail came from, not whether the sender is honest.

How SPF, DKIM and DMARC stop spoofing

  • SPF checks that the sending IP is allowed for the envelope domain. Alone, it does not protect the From header.
  • DKIM verifies a signature for the domain in d=. Alone, it does not say which domain should have signed.
  • DMARC requires that one of them passes for a domain aligned with the From header, and publishes what to do when that fails.

The DMARC vs SPF vs DKIM guide compares the three in detail.

Worked example: the spoofed invoice

Using the SMTP session above, example.com publishes:

example.com.         IN  TXT  "v=spf1 include:_spf.google.com -all"
_dmarc.example.com.  IN  TXT  "v=DMARC1; p=reject; rua=mailto:dmarc@example.com"

The receiver evaluates:

Check Result Domain Aligned with example.com?
SPF pass (the attacker publishes SPF for their own domain) attacker.example.net No
DKIM none No
DMARC fail

With p=reject, the receiver refuses the message during the SMTP transaction. The attempt appears in your next aggregate report as an unknown source IP.

Change the record to p=none and the same message is delivered, possibly to the inbox. The only difference between a monitored domain and a protected one is the policy.

How to check if your domain can be spoofed

  1. Look up your DMARC record. No record, or p=none, means receivers have no instruction to block forged mail. Use the DMARC checker.
  2. Check the subdomain policy. sp=none leaves every subdomain open.
  3. Check SPF. A record ending in +all authorizes the whole internet. ?all is neutral. Test with the SPF checker.
  4. Check DKIM. Confirm your providers sign with your domain using the DKIM checker.
  5. Check parked domains. Every domain you own, including ones that never send mail, needs a reject policy.

The full domain scan runs these checks together.

Steps to protect your domain

1. Authenticate every legitimate sender

List all systems that send as your domain, publish SPF for them, and turn on DKIM with your domain as d=. Third-party platforms need their own setup; see authenticating third-party senders.

2. Publish DMARC in monitoring mode

_dmarc.example.com.  IN  TXT  "v=DMARC1; p=none; rua=mailto:dmarc@example.com"

Read the aggregate reports for a few weeks. They show every source using your domain: your own senders that need fixing, and the spoofing you are about to block. The aggregate reports guide explains how to tell them apart.

3. Enforce

_dmarc.example.com.  IN  TXT  "v=DMARC1; p=reject; sp=reject; rua=mailto:dmarc@example.com"

Move through p=quarantine to p=reject once legitimate sources pass. The setup guide has a timeline, and the DMARC generator builds the record.

4. Lock down domains that send no mail

example.org.         IN  TXT  "v=spf1 -all"
_dmarc.example.org.  IN  TXT  "v=DMARC1; p=reject;"

Parked domains are attractive because nobody watches them.

5. Add the defenses DMARC does not cover

  • Lookalike domains: register the most obvious variants of your domain, and watch for new registrations that resemble it.
  • Display name spoofing: configure your own mail system to flag external mail that uses an internal person's name, and show external sender banners.
  • Compromised accounts: require multi-factor authentication for mailboxes and for every sending platform.
  • Process controls: verify any change to payment details through a known phone number, not by replying to the email.

6. Consider BIMI

Once you are at enforcement, BIMI can display your logo next to authenticated mail in supporting inboxes, which makes unauthenticated lookalikes easier to spot. See the BIMI guide and the BIMI checker.

Common questions

Is email spoofing illegal?

Forging a sender address is a technique, not an offense in itself, but spoofing used for fraud, phishing or impersonation falls under fraud and computer misuse laws in most jurisdictions. Consult a lawyer for your situation.

Why am I getting bounces for mail I never sent?

Someone is sending mail with your address as the envelope sender, and the receiving servers return undeliverable messages to you. This is called backscatter. An enforced DMARC policy makes receivers reject the forged messages during the SMTP session, which reduces backscatter from receivers that honor it.

Can someone spoof my personal Gmail or Outlook address?

They can put it in the From line. Whether receivers block it depends on the provider's own DMARC record, which you cannot change. At the time of writing yahoo.com publishes p=reject, while gmail.com and outlook.com publish p=none, so forgeries of those addresses are left to each receiver's spam filtering. If you need control over spoofing of your address, send from a domain you own.

How do I tell if a message I received was spoofed?

Open the raw headers and read Authentication-Results. A spoofed exact-domain message shows dmarc=fail. A lookalike shows header.from= with a domain that is not quite yours. The email headers guide walks through it.

Does DMARC stop phishing?

It stops one major kind: phishing that uses your exact domain. It does not stop lookalikes, display name tricks or compromised accounts.

Common mistakes

  • Leaving DMARC at p=none indefinitely. Spoofed mail is still delivered.
  • Forgetting sp. An explicit sp=none leaves subdomains open to spoofing.
  • Ignoring parked domains. They need SPF -all and DMARC p=reject.
  • Using +all in SPF. It authorizes every IP.
  • Expecting DMARC to block lookalikes. It only covers the domain that publishes it.

Key takeaways

  • SMTP lets any sender write any From address, so authentication has to be added on top.
  • DMARC at p=quarantine or p=reject stops exact-domain and subdomain spoofing at receivers that check it.
  • Lookalike domains, display name spoofing and compromised accounts need other controls.
  • Aggregate reports show who is spoofing you before you enforce.
  • Protect parked domains too.

See whether your domain can be spoofed today with the free DMARC checker.

Check your domain now