Email Spoofing
How attackers forge your sender address — and how SPF, DKIM, and DMARC shut it down.
Email spoofing is the forgery of an email’s sender address so a message appears to come from someone it doesn’t. Because the classic SMTP protocol never verified who was allowed to use a domain in the From line, an attacker can put your domain on an email they send from their server — and, without the right DNS records in place, receiving servers have no reliable way to catch it. Spoofing is the engine behind most phishing, business email compromise (BEC), and invoice fraud, and the defense is the same trio of DNS records this site is built around: SPF, DKIM, and DMARC.
How email spoofing works
Every email actually carries two sender identities. There’s the envelope sender (the MAIL FROM address used during the SMTP conversation) and the header From (the friendly address your mail client displays). Attackers exploit the gap between them:
- The attacker connects to a mail server and starts a normal SMTP session.
- In the message headers they simply write your domain into the
Fromfield — nothing stops them typingbilling@yourcompany.com. - The receiving server delivers the message. Unless your domain publishes authentication records, the recipient sees a trusted-looking sender and no warning.
Nothing is “hacked” in a spoofing attack — no password is stolen and no server is breached. The attacker is abusing the fact that, by default, a domain doesn’t declare which servers are allowed to send on its behalf. That declaration is exactly what SPF, DKIM, and DMARC provide.
The main types of email spoofing
Spoofing shows up in several distinct forms, each with its own tell and its own fix:
- Domain spoofing — the attacker forges your exact domain in the
Fromaddress. This is what SPF, DKIM, and DMARC directly prevent. - Display-name spoofing — the visible name reads “Your CEO” while the real address behind it is a free webmail account. DMARC can’t block this alone, because the sending domain is genuinely the attacker’s.
- Look-alike / cousin domains — messages come from
yourcompany-support.comoryourcompanny.com, domains the attacker actually owns and can authenticate. Defeating these needs monitoring and user awareness, not just SPF. - Echo / reply-chain spoofing — attackers reuse a real, previously-sent thread to make a forged reply look legitimate.
Knowing which type you’re facing tells you whether authentication records will stop it outright or whether you also need protection tooling and monitoring.
How SPF, DKIM and DMARC stop spoofing
The three records work as a layered check on every inbound message:
- SPF publishes the list of IP addresses allowed to send mail for your domain. A receiver checks whether the sending server is on that list. Build and audit yours with the SPF Checker.
- DKIM adds a cryptographic signature that proves the message wasn’t altered and really came from your domain.
- DMARC ties SPF and DKIM to the visible
Fromaddress (alignment) and tells receivers what to do when a message fails —none,quarantine, orreject.
Published together with a -all SPF policy and a p=reject DMARC policy, they make it practically impossible for an attacker to send domain-spoofed mail that lands in an inbox. Our full walkthrough on how to prevent email spoofing covers the exact records to publish.
The catch: SPF alone isn’t enough — and it breaks quietly
Publishing SPF is the first step, but SPF has a hard limit of 10 DNS lookups, and every ESP, CRM, and marketing tool you authorize eats into it. Cross the limit and SPF returns PermError, which invalidates the whole record — at which point legitimate mail starts failing and, worse, your anti-spoofing protection silently drops. This is the problem AutoSPF solves: it keeps your SPF record flattened and under the limit automatically, so the authentication that stops spoofing stays healthy as your sending stack changes. Pair it with DKIM and a p=reject DMARC policy and domain spoofing simply stops working.
New to the underlying records? Start with how to create an SPF record and the SPF record syntax reference, and make sure yours stays under the 10-lookup limit.
Frequently Asked Questions
What is email spoofing?
Email spoofing is forging the sender address of an email so it appears to come from a person or domain that didn’t actually send it. It relies on the fact that basic SMTP doesn’t verify the From address, and it’s the primary technique behind phishing and business email compromise. SPF, DKIM, and DMARC are the DNS records that let receivers detect and reject it.
Does SPF stop email spoofing?
SPF stops attackers from forging your exact domain by telling receivers which servers may send for it — but only when it’s paired with DKIM and a DMARC policy set to quarantine or reject, and only while the SPF record stays valid under the 10-lookup limit. SPF on its own, or a broken SPF record, leaves gaps that spoofers exploit.
Can email spoofing be completely prevented?
Domain spoofing — forging your exact domain — can be effectively eliminated with SPF, DKIM, and a p=reject DMARC policy. Display-name and look-alike-domain spoofing can’t be blocked by your DNS records alone (the attacker isn’t using your domain), so those also need recipient awareness and monitoring.
Is email spoofing the same as phishing?
No. Spoofing is a technique — forging the sender address — while phishing is the goal: tricking someone into revealing information or money. Most phishing uses spoofing, but not all. See email spoofing vs phishing for the full distinction.
How do I know if my domain is being spoofed?
Signs include bounce messages for emails you never sent (backscatter), recipients reporting suspicious mail from your domain, and — most reliably — DMARC aggregate reports showing mail failing authentication from IPs you don’t recognize. Publishing DMARC (even at p=none) turns on that reporting.
Email Spoofing, Explained in Depth
How to Prevent Email Spoofing →
The exact SPF, DKIM & DMARC records to publish to lock attackers out.
Domain Spoofing →
When an attacker forges your exact domain — and how DMARC stops it.
Display-Name Spoofing →
The "CEO fraud" trick DNS records can’t block on their own.
Email Spoofing Protection →
Solutions, monitoring, and tooling beyond the base records.
Email Spoofing vs Phishing →
How the technique differs from the attack it powers.
Keep the SPF that stops spoofing valid
AutoSPF flattens your SPF record and keeps it under the 10-lookup limit automatically, so your anti-spoofing protection never silently breaks.
What Our Customers Say
"AutoSPF Flattens SPF Records Seamlessly & Keeps Changes Logged - I am quite pleased with the product"
It does what it promises to do, and does it very well. I appreciate that it keeps a log of changes made, which prevents many mistakes. A client's SPF record would have way too many lookups, but AutoSPF makes that problem go away. The length of the SPF record is typically not the issue; it's the amount of lookups in the record that are. AutoSPF "flattens" the record, automatically expanding the defined lookups to IP addresses or ranges. And it auto-updates the record when the un-flattened lookups change.
Peter J.
President · Small-Business (50 or fewer emp.)
"Helped us go beyond capacity"
AutoSPF did exactly as described, it helped us get past our 10 lookup limit. Afterwards, we hit another limit regarding overall capacity and when contacted, they quickly provided us with a new solution to eliminate capacity issues entirely going forward, so now we can add as many SPF records as needed. They also provided us with a personalized support video explaining their new method in its entirety using our instance as the example.
Verified User
Financial Services · Mid-Market (51-1000 emp.)