AH Media
AH Media
SPF, DKIM and DMARC: Who Is Allowed to Send Email as Your Firm
Technology Decisions

SPF, DKIM and DMARC: Who Is Allowed to Send Email as Your Firm

By Alex Hayes ·

If a client received an email tomorrow, from your firm's address, asking them to pay fees into a new bank account, would anything stop it? For most of the accounting and advisory firms I have looked at, the honest answer is no. Three short DNS records decide who is allowed to send mail as your domain, and website projects are where they most often get broken.

The Domain on Your Website Is the One Being Forged

The Domain on Your Website Is the One Being Forged

Why Fraudsters Like Financial Firms

Most of the fraud I hear about from accounting firms does not involve anyone breaking into anything. A client receives an email that appears to come from the firm's own address, with a signature block copied from a genuine message, saying the bank account for fees has changed. Or a property buyer gets a note, apparently from their broker, with new settlement details two days before possession. The money goes, and the first the firm hears of it is an awkward phone call.

Financial firms attract this because the whole relationship runs on email and money. Clients expect invoices, they expect requests for documents, and they expect those requests to come from the address on the firm's website. A forged message only has to look ordinary, and in this sector ordinary means a payment instruction. A forgery that talks a staff member or client into handing over personal details can become a privacy problem as well, and the Privacy Commissioner's guidance on notifiable privacy breaches lists phishing among the usual causes.

The uncomfortable part is that, for many firms, nothing stops a stranger sending mail that claims to be from their domain. Receiving mail servers will often accept it, because the firm has never published anything saying otherwise. That instruction lives in three DNS records, and most partners have never heard of them.

Three Records, Three Different Jobs

DNS is the public directory attached to your domain name. It already tells the world where your website lives and which servers accept your incoming mail. The three records in question tell the world who may send mail as you.

SPF (Sender Policy Framework) is a published list of the servers allowed to send email for your domain: your main mailbox provider, perhaps the practice management system that emails statements, perhaps a newsletter service. A receiving server checks whether the message came from somewhere on the list.

DKIM (DomainKeys Identified Mail) is a signature. Your sending service stamps each outgoing message with a cryptographic key, and the matching public half sits in your DNS. If the signature checks out, the receiver knows the message came from an authorised sender and was not altered on the way.

DMARC (Domain-based Message Authentication, Reporting and Conformance) sits on top of both. It tells receivers what to do when a message fails: deliver it anyway, send it to junk, or reject it outright. It also asks them to send you reports on what they saw.

What DMARC Adds That the Other Two Cannot

SPF and DKIM on their own have a gap that fraudsters know well. Both check technical sending addresses the client never sees, so a message can pass both and still display your firm's address in the From line. A forger can sign mail with their own domain, pass every check, and put your name at the top of the message.

DMARC closes that gap by requiring alignment: the domain that passed SPF or DKIM has to match the domain in the visible From address. That is the address your client actually reads, and the only one that matters for invoice fraud.

The reporting half is the part firms underrate. Once DMARC is published with a reporting address, the large mail providers send daily summaries of every server that sent mail claiming to be you. The first week of reports is usually an education. I have seen firms discover a forgotten survey tool, an old copier that emails scans, and a former bookkeeper's software still sending reminders, alongside genuine forgery attempts from overseas. You cannot enforce a policy safely until you know what legitimately sends as you, and the reports are how you find out.

How Website Projects Quietly Break Email

How Website Projects Quietly Break Email

The DNS Move Nobody Mentioned

Email authentication rarely fails because someone made a decision. It fails because a website project moved something and nobody checked what else lived there.

The common version goes like this. A firm commissions a new site, and the developer prefers a different host. To point the domain at the new server, they move the DNS to the host's control panel, or to their own account. The website records get recreated carefully, because the developer is watching the website. The mail records get copied by hand, partially, or not at all. Outgoing mail keeps working for a while, then starts landing in clients' junk folders, and nobody connects it to the launch three weeks earlier.

The second version is quieter. The DNS ends up in the developer's account, the relationship ends, and the firm no longer has access to its own records. I have sat in a meeting where a practice manager learned that the only person who could change the firm's domain settings was a contractor who had since moved to Brisbane.

Before any website project starts, find out where your DNS is hosted and who holds the login, and get an export of the current records. It takes ten minutes and can save weeks.

Forms, Newsletters and Booking Tools Sending as You

The other way websites break email is by sending it. A contact form that emails enquiries to reception, a booking tool that confirms appointments, a client portal that sends password resets, a newsletter platform that sends the quarterly tax update: each one is a sender, and each often sends as your domain.

The cheapest builds send form mail straight from the web server, with a From address of info@ at your domain. That server is not on your SPF list and does not hold your DKIM key, so the message fails. Before DMARC is enforced, that just means enquiries quietly go to junk. After enforcement, it means they disappear, which is the worse outcome for a firm that judges its website by the enquiries it produces.

The fix is to route these messages through an authorised service, set up with its own DKIM signature on your domain or on a subdomain such as mail.yourfirm.co.nz kept for automated mail. The trade-off is SPF's limit of ten DNS lookups: every service added to the list uses some, and a record that grows past the limit fails for everyone. Signing each tool with DKIM, rather than piling them all into SPF, keeps you under that ceiling.

Getting It Right Without Losing Legitimate Mail

Getting It Right Without Losing Legitimate Mail

Questions to Put to Whoever Runs Your Domain

Most partners will never edit a DNS record, and should not need to. What they need is to ask the right person the right questions and recognise a vague answer. Whether that person is your IT provider, your website developer or the staff member who set up the firm's email years ago, these are the questions I would put to them:

The last one surprises people. The old firm name from before a merger or rebrand still looks credible to clients, and with no records published it is easier to forge than the live domain.

If the answers come back as "it should be fine", ask to see the records. A competent provider can show them to you in a couple of minutes.

A Staged Rollout That Does Not Block Your Own Invoices

The mistake I see most often is a provider jumping straight to a strict policy, and the firm's own statements and form enquiries vanishing the next morning. A staged rollout avoids that, at the cost of a few months, and it matches the government's advice to businesses on spoofing: start lenient, test, then tighten.

  1. Publish SPF, turn on DKIM for every known sender, then add DMARC with a policy of none and a reporting address. Nothing is blocked yet; you are collecting evidence.
  2. Read the reports for four to six weeks, across a month end and ideally a GST period, so the irregular senders show up.
  3. Fix each legitimate sender that fails, or retire it.
  4. Move to quarantine, which sends failures to junk, starting with a percentage of mail if your provider supports it.
  5. Move to reject once the reports have been clean for several weeks.

The trade-off is real either way. Every week at none is a week a forger can still use your name, but jumping to reject while a forgotten system still sends as you means clients miss genuine invoices. For a firm whose clients pay on email instructions, I would rather spend two extra months at quarantine. Keep reading the reports after reject, too: new tools get added, and each one is a fresh chance to break this.

None of this shows on your website, which is exactly why it gets left out of website projects. The homepage gets weeks of attention and sign-off from every partner, while the records that decide whether the firm's name can be forged get copied in a hurry by whoever moved the DNS. Of everything a launch can disturb, this is the piece clients only notice once it has already cost them money.

The Briefing

Digital strategy analysis for NZ financial professionals. No jargon, no upsells, no SEO promises -- just the insights Alex would give you over coffee if you had the meeting.