Skip to content

Sooner or later, a customer or colleague forwards you an email that looks like it came from your company. It carries your logo, your domain, even the name of a real employee, and it asks for an urgent payment or a login. You did not send it. This is email spoofing, and it is one of the cheapest and most common tricks used against businesses of every size.

The uncomfortable truth is that the original email system was designed in an era of mutual trust. The part of a message that shows who it is from can be filled in by the sender with almost anything. Modern defences do not change that fact; instead, they give receiving mail servers a way to check a claim against evidence that only the real domain owner can publish. This article explains how that works and walks you through a practical order of work: understand the risk, publish SPF, DKIM and DMARC, tighten how your own systems send mail, protect the accounts behind the domain, and train people to notice what technology cannot catch. If you want to understand a closely related puzzle first, see why a sender name can look fake even on a company domain.

What spoofing is, and why it works

Every email has two sender identities. The envelope sender is used by mail servers to route the message and report bounces. The From header is what the recipient sees in their mail program. The protocol described in RFC 5321 transports mail but does not require these to match, nor does it prove that either one is truthful. A criminal can therefore send a message whose From line reads as your domain, from any computer, without ever touching your systems.

Spoofing is attractive for several reasons. It costs almost nothing to attempt. It exploits trust in a known brand. And it often needs no technical break-in, only a convincing message. Typical goals include invoice fraud, where a customer is told your bank details have changed, credential theft through a fake login page, delivering malicious attachments, and damaging your reputation by sending junk that appears to come from you.

It helps to separate three related things:

  • Exact-domain spoofing: the From address uses your real domain. This is what SPF, DKIM and DMARC are built to stop.
  • Display-name spoofing: the visible name says your company or a manager, but the underlying address is from some other domain. Authentication records on your domain do not prevent this, because it is not your domain.
  • Lookalike domains: the attacker registers a name that resembles yours, perhaps with a swapped letter. Your records are irrelevant because it is a different domain.

Knowing which one you are facing tells you which defence applies. Records on your domain address the first. Awareness, filtering and brand monitoring address the other two.

The three building blocks: SPF, DKIM and DMARC

Three DNS-based standards work together. Each answers a different question.

SPF (Sender Policy Framework, RFC 7208) answers: which servers are allowed to send mail using this domain in the envelope? You publish a TXT record listing your mail provider and any other services that send for you, and it ends with a rule for everything else. Receivers compare the connecting server against that list. SPF has limits: it checks the envelope sender, not the visible From, and it can break when mail is forwarded. It also allows only a limited number of DNS lookups, so a long chain of included services can silently fail.

DKIM (DomainKeys Identified Mail, RFC 6376) answers: was this message signed by a key that belongs to this domain, and has it been altered since? Your mail system signs each outgoing message with a private key. You publish the matching public key in DNS under a selector name. Receivers fetch the key and verify the signature. DKIM survives forwarding better than SPF because the signature travels with the message, as long as the signed parts are not changed.

DMARC (RFC 7489) answers: does the authenticated domain align with the visible From address, and what should the receiver do if not? DMARC requires that SPF or DKIM passes and that the domain it authenticated matches the From domain. Your DMARC record also states a policy and an address for reports. The three policy levels are none (monitor only), quarantine (treat as suspicious, often spam folder) and reject (refuse the message). The overview at dmarc.org is a good neutral introduction.

Together they close the loop: SPF and DKIM provide evidence, and DMARC makes that evidence apply to the address people actually see. If you need the DNS record groundwork for transactional mail, such as receipts, read which DNS records to set before an automated receipt system.

Step by step: a safe rollout

Rushing to a strict policy is the most common way to hurt yourself. Follow this order.

1. Inventory every system that sends as your domain

List the obvious ones: your business mailboxes, the website contact form, the online shop's order emails, the invoicing tool, the newsletter platform, the helpdesk, the CRM and any application that sends alerts. Ask each department what they use. Forgotten senders are what break when a policy tightens.

2. Publish SPF

Create one SPF record per domain, not several. Include each legitimate sending service as its provider documents it. End the record with a policy for unlisted servers. Many organisations begin with a softer ending while testing, then move to a stricter one once reports show everything is covered. Keep the lookups within the limit by removing services you no longer use.

3. Enable DKIM for each sender

In each sending service, switch on DKIM signing for your domain and publish the key records it gives you. Use a distinct selector per service so you can retire one without disturbing others. Confirm by sending a test and viewing the message headers for a passing result.

4. Publish DMARC in monitoring mode

Add a DMARC record at the standard subdomain used for DMARC with the policy set to none and a mailbox for aggregate reports. Reports arrive as XML files from large receivers, and many organisations use a report-reading service to turn them into charts. Collect at least a few weeks of data, including month-end when billing runs.

5. Fix what the reports reveal

Look for legitimate sources that fail alignment and fix them: add a missing service to SPF, enable DKIM, or configure a custom sending domain. Also notice sources you do not recognise. Those may be the spoofing attempts you want to stop.

6. Tighten gradually

Move to quarantine, optionally applying it to a small percentage of mail first, and watch for complaints. When reports are clean and nothing legitimate is failing, move to reject. Keep reporting on afterwards, because new tools get added over time.

A worked example

Consider a small design studio using a business mailbox service, an invoicing app and a newsletter tool. A client forwards a message that appears to come from the studio's director asking them to pay an invoice to a new account. The studio checks and finds it was spoofed.

The studio publishes an SPF record listing its mailbox service and invoicing app, turns on DKIM in all three services, and starts DMARC at none. After three weeks of reports, it sees mail from the newsletter tool failing alignment because the tool was signing with its own domain. The studio sets up a custom signing domain in the tool. It also sees a stream of failing mail from unknown servers in several countries, which confirms the spoofing.

With clean reports for another two weeks, the studio moves DMARC to quarantine, then to reject. From that point, receivers that honour DMARC refuse messages that claim the studio's domain but fail authentication. Fake invoices using the exact domain mostly stop arriving in inboxes. The studio then turns to the remaining gap: display-name tricks and lookalike domains, handled through staff briefing and a procedure for confirming bank-detail changes by phone.

Harden the rest of the picture

Authentication records stop outsiders from impersonating the domain, but they do nothing if an attacker logs in as a real user. Protect the accounts and flows behind the domain.

  • Turn on two-step verification for every mailbox, the mail admin console and the DNS account. A stolen password sends perfectly authenticated mail.
  • Restrict who can edit DNS. An attacker who changes your records can make fake mail pass.
  • Limit which applications may send through your mail service, and review them regularly. Remove old credentials and shared mailbox passwords.
  • Set automatic forwarding rules to be reviewed. Attackers often add a hidden forward rule to a compromised mailbox to watch mail.
  • Add a separate sending subdomain for bulk or automated mail so that problems with a newsletter do not damage the reputation of your main staff mail.
  • Consider monitoring for newly registered domains that resemble your brand, and know how to report abuse to the registrar and hosting provider.

You can also publish additional protections later. Brand indicators can display your logo in supporting mail clients once DMARC is enforced, and strict transport settings can make mail delivery between servers more secure. These are extras; the three core records come first. For product details on email protection options, see the Email Security page.

Teach people what technology cannot catch

Even a perfect configuration leaves human-facing gaps, so give staff and customers simple rules.

  • Treat any request to change payment details, send gift cards or share a code as suspicious until confirmed through a second channel, such as a known phone number.
  • Hover over links and check the real address before signing in. Better still, type the address or use a saved bookmark.
  • Be wary of urgency and secrecy. Fraud messages often insist on speed and discretion.
  • Look at the full sender address, not only the display name, especially on mobile screens that show only the name.
  • Report suspicious messages to a named person, and thank people who do. A quick reporting habit shortens the time an attack stays live.
  • Tell customers how you will and will not contact them. A short page stating that you never ask for passwords by email reduces successful fraud.

Limits and what to watch for

Be honest about what the records can and cannot do.

  • Enforcement depends on the receiver. Most large mail providers honour DMARC, but not every server does, so some fake mail may still arrive somewhere.
  • Records protect your exact domain only. They do not stop lookalike domains, display-name tricks or a compromised real mailbox.
  • Forwarding and mailing lists can break SPF and sometimes DKIM, which may cause genuine mail to fail. Monitor before enforcing.
  • SPF has a lookup limit and a common mistake is publishing two SPF records. Both lead to unpredictable results.
  • DKIM keys should be rotated from time to time and removed when a service is retired.
  • Parked or unused domains should also be protected with a policy stating that they send no mail, because attackers like to spoof domains nobody watches.
  • Features and limits depend on your mail provider and plan, so check what yours includes before assuming a setting is available.

Summary

Email spoofing works because the visible From address can be typed by anyone. SPF lists permitted servers, DKIM proves a message was signed by the domain, and DMARC ties both to the address people see and tells receivers what to do on failure. Roll them out in order: inventory senders, publish SPF, enable DKIM, start DMARC at monitoring, fix what reports reveal, then tighten to quarantine and reject. Protect the mail and DNS accounts with two-step verification, handle lookalike and display-name tricks through awareness and procedures, and review the setup whenever you add a new sending tool.

When you want help protecting your domain's mail, the business email page explains the hosted mailbox options and what each plan includes.

Frequently asked questions

Can anyone really send an email that appears to come from my domain?

The basic mail protocol does not check that the From address is genuine, so a sender can type any address there. Receiving servers decide whether to trust it by checking SPF, DKIM and DMARC results. Without those records, fake mail is far more likely to be accepted.

What is the difference between SPF, DKIM and DMARC?

SPF lists which servers may send mail for your domain. DKIM adds a digital signature that proves a message was not altered and came from a domain that holds the key. DMARC ties them to the visible From address and tells receivers what to do with mail that fails.

Should I set DMARC straight to reject?

Usually not. Start with a monitoring policy, read the reports to find every legitimate system that sends as your domain, fix those, and only then move to quarantine and finally reject. Jumping straight to reject can block your own invoices or newsletters.

Will these records stop every spoofing attempt?

No. They protect your exact domain. Attackers can still register lookalike domains or forge only the display name. Combine the records with staff awareness, careful account security and monitoring.

How long does it take to set up?

The records themselves can be published in minutes, but a careful rollout usually takes several weeks because you need time to collect reports and find every service that sends mail for you.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Protect your email and stop spoofing

Spam filtering and DMARC monitoring for your domain.

See email security

Keep reading

Business Email Guides

Why Your Sender Name Looks Fake Even on a Company Domain

A company domain does not guarantee a trustworthy-looking sender. Display names, system defaults, alignment gaps and mail client behaviour all change what people see.

9 min read

Business Email Guides

How to Set Up Online Store Order Emails So They Stay Out of Spam

Order confirmations and receipts are the emails customers most want to see. Here is how to authenticate them and keep them out of the spam folder.

10 min read

Business Email Guides

Which DNS Records to Set Before Using an Automated Receipt System

Automated receipts are only useful if they arrive. Learn which DNS records to check or add before connecting a receipt or invoicing system to your domain.

10 min read