Email

Email Spoofing: How Forged Senders Work

Learn why a sender address can be faked, how to check a suspicious message, and which domain records stop others from using your name.

Key takeaways

  • The From address you see is a field written by the sender, and basic mail delivery does not verify it.
  • SPF checks the sending server, DKIM checks a signature, and DMARC ties either result to the visible From domain.
  • Lookalike domains and false display names can pass every authentication check, because the sender really owns what was authenticated.
  • Judge important messages by verified authentication results and by confirming requests through a separate channel.

Email spoofing is sending a message whose visible sender is not who really sent it. It is possible because the original email protocol, SMTP, accepts whatever sender information the sending system supplies. Checks added later, mainly SPF, DKIM and DMARC, let a receiving server test whether a domain actually authorized a message.

Those checks stop a large class of forgery when the domain owner and the receiver both use them. They leave other tricks open, such as misleading display names and lookalike domains, so it helps to know which kind of fake you are looking at.

Why email lets senders claim anything

SMTP was designed when the network connected a comparatively small community. A sending server states who the message is from, who it is for, and then provides the content. Nothing in the base protocol demands proof, much as a paper letter can carry any return address.

A message actually has two kinds of sender information:

  • The envelope sender, given during the SMTP conversation (defined in RFC 5321). Bounces go there. Recipients usually do not see it.
  • The header From, part of the message itself (RFC 5322). This is what your mail app displays.

The two can differ for honest reasons. A newsletter service may use its own bounce address while showing the author in From. The same gap gives forgers room to work.

Sender fields in one hypothetical message
Example Support 1 [email protected] 2 [email protected] 3 [email protected] 4 192.0.2.80 5 Display name Free text chosen by the sender. Proves nothing. 1 Header From The address shown to you. DMARC protects its domain. 2 Envelope sender Where failures return. SPF checks this domain. 3 Reply-To Optional. Redirects your answer somewhere else. 4 Connecting server The address that actually handed the message over. 5 Example Support 1 [email protected] 2 [email protected] 3 [email protected] 4 192.0.2.80 5 Display name Free text chosen by the sender. Proves nothing. 1 Header From The address shown to you. DMARC protects its domain. 2 Envelope sender Where failures return. SPF checks this domain. 3 Reply-To Optional. Redirects your answer somewhere else. 4 Connecting server The address that actually handed the message over. 5

Four different deceptions

People call all of these spoofing, but they need different defenses.

Exact domain forgery

The From header shows your bank's or company's real domain, though its systems never sent the message. Authentication checks are designed for this case.

Display name impersonation

The name reads like your manager's, while the address belongs to an unrelated free mailbox. Many phone mail apps show only the name until you tap it, which is why this works so often.

Lookalike domains

The sender registers a domain that resembles the real one: exarnple.com with "r n" in place of "m", an extra word such as example-secure.com, or a different ending. Because they own that domain, they can configure SPF, DKIM and DMARC correctly for it. Some lookalikes use characters from other alphabets; browsers and mail apps handle these differently, and an IDNA inspector or Unicode inspector reveals what the characters are.

Compromised accounts

The message comes from the real person's mailbox, now controlled by someone else. It is authentic in every technical sense. This is a core method in business email compromise.

How authentication catches exact forgery

SPF lets a domain publish which servers may send mail using it in the envelope. The receiver compares the connecting IP address against that list.

DKIM has the sending system sign selected headers and the body. The receiver fetches the public key from the signing domain's DNS and verifies the signature.

Neither one alone requires the checked domain to match the From header. A forger could pass SPF with their own envelope domain while showing yours. DMARC closes that gap by requiring alignment: a passing SPF or DKIM domain has to match the From domain. The owner publishes what receivers should do with failures: nothing, quarantine or reject.

A receiver checks a forged message
Forging server Receiving server DNS Message claiming From example.com 1 Look up SPF for the envelope domain 2 Fetch DKIM key if signed 3 Look up DMARC for example.com 4 Policy: reject failures 5 Rejected: nothing aligned with example.com 6 Forging server Receiving server DNS Message claiming From example.co m 1 Look up SPF for the envelope domain 2 Fetch DKIM key if signed 3 Look up DMARC for example.co m 4 Policy: reject failures 5 Rejected: nothing aligned with example.co m 6

The details of each record are in SPF explained, DKIM explained and DMARC explained.

Reading the evidence in a message

To check a suspicious message, open its original or raw source. The menu name varies, often "Show original" or "View source". Look for an Authentication-Results header added by your own provider:

Authentication-Results: mx.example.org;
  spf=pass smtp.mailfrom=mail.example.net;
  dkim=pass header.d=example.net;
  dmarc=fail header.from=example.com

In this example, SPF and DKIM both pass for example.net, yet DMARC fails because the From domain is example.com. Somebody authenticated their own infrastructure and claimed yours.

Trust only the results added by your receiving system. A sender can insert fake headers further down. Check Reply-To, and compare it with From. The Received lines trace the route, newest at the top; those below the point where your provider accepted the message can be invented. See how to read email headers.

Why a passing check can still mislead

Authentication answers a narrow question: did a given domain take responsibility for this message? Readers often hear a broader one: is this safe? The table shows how far apart those can be.

Situation Likely DMARC result Is it trustworthy?
Real company, properly configured Pass Usually, if the account is not compromised
Criminal using their own lookalike domain Pass No
Stolen mailbox at a real company Pass No
Genuine mail sent through a list that altered it May fail Possibly
Forgery of a domain with no DMARC record No result Cannot tell from the check

So read a pass as confirmation of the domain, then judge the domain and the request. Is it the domain you have dealt with before, spelled exactly? Does the request fit that relationship? Search your own mail for earlier messages from the address. A first contact that claims long familiarity deserves a second look.

A fail also needs context. A single failure on a message from a mailing list may be an artifact of the list. A failure on an unexpected invoice that claims to come from your bank is a strong reason to delete or report it.

What you can do as a reader

  • Expand the sender line and read the actual address, especially on a phone.
  • Treat unexpected requests for money, passwords, codes or files with suspicion whatever the sender shows.
  • Do not use links or phone numbers from a doubtful message. Go through a bookmark, app or number you already have.
  • Use your provider's report button, which helps filters learn.
  • If a friend's account sends something odd, tell them by phone or text so they can secure it.
  • If you get bounces for mail you never sent, a forger is probably using your address as the envelope sender, known as backscatter. Check your account's security, then filter the bounces.

What you can do as a domain owner

  1. Publish SPF listing only the services that send for you, ending in -all or ~all.
  2. Turn on DKIM signing with your domain at every sending service.
  3. Add DMARC with p=none and a reporting address.
  4. Study the aggregate reports and fix legitimate senders that fail.
  5. Move to p=quarantine and then p=reject.
  6. Protect domains that never send mail with records like these:
parked.example.            TXT  "v=spf1 -all"
_dmarc.parked.example.     TXT  "v=DMARC1; p=reject"

You can also register obvious misspellings of an important domain, watch certificate transparency logs and new registrations for lookalikes, and report abusive ones to the registrar. You cannot register every variant, so tell customers how you will and will not contact them.

Limits and side effects

Forwarding and mailing lists complicate authentication. A forwarder breaks SPF, and a list that edits the subject or adds a footer breaks DKIM. Some lists rewrite the From address to compensate. The ARC standard (RFC 8617) lets intermediaries record the results they saw, and receivers decide whether to trust them.

Enforcement also depends on the receiver. A strict policy is a request that most large providers honor in some form, and they may apply local judgment. BIMI can show a logo for domains that enforce DMARC at participating providers, which gives readers a visual cue, though a missing logo proves nothing.

For stronger proof between particular people, signatures with S/MIME or OpenPGP verify an individual sender. Email encryption options covers them.

When someone is impersonating you

Finding out that your address or brand appears on scam mail is unsettling, and there are limits to what you can stop. Work through what is in your control.

First, confirm which kind of fake it is. Ask a recipient to send the original message with full headers, preferably as an attached file, since forwarding the visible text loses the evidence. If the From domain is yours and authentication failed, your records are doing their job at receivers that enforce them, and a stricter policy will help. If it passed, assume a sending account or system of yours is compromised and investigate it. If the domain is a lookalike, collect the evidence and report it to the registrar, the hosting provider and the mail provider the sender used.

Then tell the people likely to be targeted. A short notice on your website and a message to customers, stating what you will never ask for by email, gives them something to check against. Keep it factual and avoid links in the warning itself, so it does not train people to click.

Common questions

Does spoofing mean your account was hacked?

Usually not. Anyone can type your address into a From field. Check your sent folder and sign-in activity if you want to be sure.

Why did a forged message still reach the inbox?

The domain may have no enforcing policy, the message may use a lookalike or a display name trick, or the receiver may have overridden the result.

Can you stop people from spoofing your address at a free provider?

The provider controls that domain's records. With your own domain, you set the policy yourself.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Email →

Latest news on this topic