Skip to content

Phishing Domain Protection: Which Settings to Start With

Phishing that pretends to come from your own domain is preventable. This guide shows the first settings to check, in a safe order, and what they cannot do.

10 min readUpdated Nov 22, 2026By XPASS Editorial Team

Phishing Domain Protection: Which Settings to Start With

When people talk about phishing, they usually picture a clumsy message from a stranger. The version that causes real damage is different: a message that appears to come from your own domain, or from a name very close to it, sent to your customers, suppliers or staff. If your domain has no email authentication, anyone on the internet can type your address into the "From" line of a message and many receiving servers will have no technical reason to doubt it. This is called spoofing, and it is the main thing domain protection is meant to reduce.

The good news is that the first layer of protection is made of a few DNS records and a handful of habits, and the order in which you do them matters more than any single setting. This guide walks through that order: know your senders, publish SPF and DKIM, add DMARC in monitoring mode, read the reports, tighten the policy, and then deal with the things DNS records cannot cover. Related topics such as BIMI and brand logos, finding unauthorised senders and DKIM selectors and key rotation each have their own guide.

What phishing against a domain actually looks like

It helps to separate three situations, because each has a different defence.

The first is exact-domain spoofing. A message claims to be from accounts@yourcompany.com but was sent by a server that has nothing to do with you. SPF, DKIM and DMARC are designed for this case.

The second is a lookalike domain. The attacker registers something such as yourcompany-billing.com or a name that swaps one letter for a similar one, then sets up perfectly valid authentication for that domain. Your own records are irrelevant here, because the message is honestly sent from the attacker's domain. Defence is monitoring, registration of obvious variants and user awareness.

The third is a compromised account. A real mailbox on your domain is taken over, perhaps through a reused password, and the attacker sends mail that passes every check because it really does come from your infrastructure. Defence is strong passwords, multi-factor authentication and monitoring of sign-ins.

DNS authentication therefore addresses only the first case, but it is the case that takes the least effort to close and the one customers are most likely to blame you for.

Step 1: List every service that sends mail as your domain

Before you publish anything, make an inventory. Most small businesses are surprised by how long it is. Typical entries include:

  • The main mailbox service used by staff.
  • A newsletter or marketing platform.
  • A website contact form or shop that sends order confirmations.
  • An invoicing or accounting tool.
  • A helpdesk or ticketing system.
  • Monitoring tools, printers or scanners that email reports.
  • Any old service a former employee configured and nobody remembers.

For each one, write down the service name, the address it sends from, who owns the account, and whether it uses your domain in the visible From address or in the hidden envelope sender. This list is the single most useful artefact in the whole project, because every later decision depends on it. If you skip it and publish a strict policy, you will block your own legitimate mail.

A practical way to build the list is to ask each team what tools send email on their behalf, then confirm with the reports described in Step 4. The reports will reveal senders nobody told you about.

Step 2: Publish an accurate SPF record

SPF, defined in RFC 7208, is a DNS TXT record that lists which servers are allowed to send mail for the envelope domain. A receiving server looks up the record and checks whether the connecting IP address matches.

A simple example for a domain that uses one mailbox provider and one newsletter service looks like this (the include names are placeholders from your providers' documentation):

v=spf1 include:mail.provider-one.example include:send.newsletter-two.example -all

Points to keep in mind:

  • A domain must have only one SPF record. Two separate records cause a permanent error. If you add a new service, merge it into the existing record.
  • SPF allows a limited number of DNS lookups (ten) while evaluating a record. Each include counts, and some includes trigger more lookups inside them. Too many services can push you over the limit and the record fails.
  • The ending matters. A soft fail (~all) tells receivers the list may be incomplete; a hard fail (-all) tells them anything else should be treated as unauthorised. Many teams start with ~all and tighten later, once DMARC reports show the list is complete.
  • SPF checks the envelope sender, not the visible From address. On its own it does not stop a message that looks right to the human reader, which is why DMARC exists.

Each provider publishes the exact include value to use. Copy it from their documentation rather than guessing.

Step 3: Turn on DKIM signing for each sender

DKIM, defined in RFC 6376, adds a cryptographic signature to each message. The signing server holds a private key; the public key is published in DNS under a name made of a selector, the label "_domainkey", and your domain. A receiver fetches the public key and verifies that the signed parts of the message were not altered and that the signature belongs to the claimed domain.

In practice you enable DKIM in each sending service and it gives you one or more DNS records, usually CNAME or TXT, to add. Each service uses its own selector, so you will end up with several DKIM records that do not conflict with one another. Our guide to DKIM selectors and key rotation explains how to name them and when to replace keys.

Things to check:

  • The signing domain should be your domain, or a subdomain of it, for DMARC alignment to pass. Some services sign with their own domain by default, which passes DKIM but does not align with your From address. Look for a "custom domain signing" or "authenticate your domain" option.
  • Use a key length your provider recommends. Longer keys sometimes need a TXT record split into several quoted strings; most DNS panels handle this automatically.
  • After publishing, send a test message to a mailbox you control and read the headers for "dkim=pass".

Step 4: Add DMARC in monitoring mode

DMARC, defined in RFC 7489, ties the visible From domain to SPF and DKIM. A message passes DMARC when at least one of SPF or DKIM passes and the passing domain aligns with the From domain. The record also tells receivers what to do with failures and where to send reports.

Start with a record like this, published as a TXT record at _dmarc.yourcompany.com:

v=DMARC1; p=none; rua=mailto:dmarc-reports@yourcompany.com

The p=none policy means "do not change how failing mail is treated; just send me reports". The rua address receives daily aggregate XML reports from large receivers. These reports list, for each sending IP address, how many messages were seen and whether SPF and DKIM passed and aligned.

Because raw XML is hard to read, many teams use a reporting tool or a managed service to turn it into a table. Whatever you use, keep the address you publish under your control, because the reports describe your mail traffic.

Step 5: Read the reports and fix the gaps

Leave p=none in place for several weeks, long enough to cover monthly invoicing runs and quarterly newsletters. Then review the reports with a simple question for each source: do I recognise it?

What you see What it usually means What to do
Known service, SPF and DKIM pass and align Healthy Leave as is
Known service, DKIM passes but does not align Service signs with its own domain Enable custom domain signing
Known service, SPF fails Service missing from your SPF record Add its include value
Unknown IP address, high volume Possible spoofing or a forgotten tool Investigate before tightening
Forwarded mail failing SPF Normal side effect of forwarding Rely on DKIM; do not panic

Forwarding deserves a note. When a message is forwarded, the forwarding server's IP address is not in your SPF record, so SPF fails even for legitimate mail. DKIM signatures usually survive forwarding, which is why aligning DKIM matters so much. Mailing lists that modify subjects or footers can break DKIM too, so a few failures from lists are normal.

If you want a closer look at how to investigate the strange sources, see detecting unauthorised email senders on your domain.

Step 6: Move the policy from none to quarantine to reject

When every legitimate sender passes and aligns, you can start enforcing. Do it gradually.

  1. Change to p=quarantine with pct=10 so only a tenth of failing mail is affected. Failing messages are typically sent to the spam folder.
  2. Watch the reports and your own helpdesk for complaints. Raise pct in steps (25, 50, 100) over several weeks.
  3. When quarantine at full percentage has been quiet, consider p=reject, which asks receivers to refuse failing mail.
  4. Optionally publish an sp= value to set the policy for subdomains, and keep sending reports so you notice future changes.

Not every organisation needs to reach reject. Some have so many third-party senders that quarantine is the practical ceiling. What matters is that the choice is deliberate and based on data.

Lookalike domains and the things DNS cannot do

Even a perfect DMARC policy does nothing against a message sent from a different domain. A few low-effort measures help:

  • Search registrations occasionally for names containing your brand, and check common typo variants.
  • Consider registering the most obvious variants yourself, such as the same name in the main extensions and the singular or plural form. See the domains page for options available through XPASS.
  • Tell customers clearly which addresses you use for invoices and payment requests, and state that you will never ask for a password by email.
  • Set up an internal address where staff can forward suspicious messages.
  • If you find a clearly fraudulent lookalike, report it to the registrar and the hosting provider, and keep screenshots and message headers.

Staff habits matter as much as records. Teach people to check the real sender address, to hover before clicking, to be suspicious of urgency and unusual payment requests, and to confirm bank detail changes by phone using a number they already trust. Government security agencies publish plain-language advice on recognising and reporting phishing that you can share.

Finally, protect the mailboxes themselves. Use unique passwords, turn on multi-factor authentication, and review forwarding rules, because attackers who get in often add a hidden rule to copy mail elsewhere.

Limits and what to watch for

  • DMARC covers exact-domain use. It does not stop lookalikes, display-name tricks ("Your CEO" from a personal address) or compromised accounts.
  • A strict policy applied too early will block your own newsletters or invoices. Always monitor first.
  • DNS changes can take time to propagate, and some DNS panels silently add your domain name to the end of record names. Check the published record with a lookup tool after each change.
  • Records need maintenance. Whenever you add or retire a sending service, update SPF and DKIM and check the DMARC reports a week later.
  • Passing authentication does not make a message trustworthy. Phishers can authenticate their own domains perfectly well.
  • Receivers make their own decisions. A policy is a request, and different providers handle edge cases differently.

If the work feels heavy, remember that the reports are the slowest part, not the DNS edits. A managed service can read them for you, and some teams prefer that over doing it manually.

Summary

Start by listing every service that sends mail as your domain. Publish one accurate SPF record, enable DKIM for each sender with aligned signing, and add DMARC with p=none and a reporting address. Read the reports for several weeks, fix the legitimate gaps, then move gradually through quarantine to reject. Alongside that, watch for lookalike domains, train staff to verify unusual requests, and secure the mailboxes with multi-factor authentication. No single setting stops every kind of phishing, but this order closes the easiest door first without breaking your own mail.

If you would like help applying these steps, the Email Security page and the Business Email page describe what is available.

Frequently asked questions

What is the first thing to set up to protect my domain from phishing?

Start by listing every service that legitimately sends email as your domain. Once you know your real senders, you can publish accurate SPF and DKIM records and then add a DMARC record in monitoring mode.

Should I start DMARC with a reject policy?

No. Begin with a monitoring policy (p=none) and read the reports. Move to quarantine and then reject only after every legitimate sender passes authentication, otherwise real mail may be blocked.

Does DMARC stop all phishing?

No. DMARC protects against others sending mail that claims to be from your exact domain. It does not stop lookalike domains, phishing from other domains, or a compromised mailbox, so staff habits and account security still matter.

How do lookalike domains fit in?

Attackers can register names that resemble yours. You cannot control those with DNS records, so monitor for similar registrations, consider registering the most obvious variants, and tell staff and customers which address you really use.

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

What Is BIMI, and Does Your Company Email Need It?

BIMI lets supporting mailbox providers show your verified logo beside your messages. Learn the requirements, the setup steps, and when it is worth the effort.

10 min read

Business Email Guides

How to Detect Unauthorised Email Senders on Your Domain

Unknown servers sending mail as your domain are either forgotten tools or real abuse. Here is how to see them, tell the difference and respond calmly.

10 min read

Business Email Guides

What Is a DKIM Selector, and When Should You Rotate Your Keys?

A DKIM selector is the label that tells receivers which public key to use. Learn how selectors work, when to rotate keys, and a safe step-by-step rotation.

10 min read