Skip to content

Email Authentication

Domain Course, Module 6 of 9. Reading time: about 8 minutes, followed by three practice questions.

This module explains why criminals can send email that appears to come from a company’s own address, and how three DNS records, called SPF, DKIM, and DMARC, are used to stop it.

The Situation

A customer calls the accounts department about an invoice. The email came from the company’s real billing address, used the company’s logo, and asked for payment to a new bank account.

The company never sent it. Nobody’s mailbox was broken into. A criminal simply wrote the company’s address in the “From” line of the message, and the customer’s email provider delivered it.

The customer paid. The company is now explaining to a long-standing client that an email from its own address was not from the company at all.

Why Forged Email Is Possible

Email was designed decades ago with no built-in way to confirm who sent a message. The “From” line is typed by the sender, in the same way that a return address is written on a paper envelope. Anyone can write any address.

Three standards were added later to close this gap. All three work through DNS (Domain Name System) records that the company publishes for its own domain name. Receiving mail servers look up those records and use them to judge whether a message is authentic.

If a company has not published these records, receiving servers have nothing to check against. Forged messages are far more likely to be delivered.

The Three Standards

Standard Stands for What it does Where it is published
SPF Sender Policy Framework Lists the servers and services that are permitted to send email for the domain name. A TXT record on the domain name
DKIM DomainKeys Identified Mail Adds a digital signature to each outgoing message. The signature proves the message came from an authorized sender and was not altered on the way. A TXT record containing a public key
DMARC Domain-based Message Authentication, Reporting, and Conformance Tells receiving servers what to do with a message that fails the SPF and DKIM checks, and where to send reports. A TXT record at the name _dmarc

A simple way to remember them: SPF is the guest list, DKIM is the tamper-proof seal, and DMARC is the instruction to the door staff about what to do with anyone who fails both checks.

How a receiving mail server checks a messageFour steps from top to bottom. A message arrives claiming to be from the company. The receiving server checks SPF and DKIM against the company’s DNS records. The server reads the company’s DMARC policy. The message is delivered, sent to spam, or rejected.Message arrivesclaiming to be from the companyserver looks up the company’s recordsSPF and DKIM are checkedpermitted sender? valid signature?if both fail, DMARC is consultedDMARC policy is readmonitor, quarantine, or rejectserver applies the policyMessage is handleddelivered, sent to spam, or refused
The company’s DNS records give the receiving server the information it needs to reject a forgery.

The Three DMARC Policies

A DMARC record contains a policy, which is the company’s instruction to the rest of the world.

Policy Written as What receiving servers do with a failing message
Monitor p=none Deliver it as usual, and send reports. This setting protects nobody. It exists for observation.
Quarantine p=quarantine Treat it as suspicious, which usually means the spam folder.
Reject p=reject Refuse it. The forged message is not delivered.

Companies normally begin at “monitor,” read the reports to find every legitimate service that sends email on their behalf, correct the SPF and DKIM settings for each one, and then move to “quarantine” and finally “reject.” The mistake is to stop at the first step. A DMARC record set to “monitor” for years gives the appearance of protection without the substance.

What These Records Do Not Do

SPF, DKIM, and DMARC protect the company’s exact domain name. They do not stop a criminal from registering a look-alike domain name, such as one with a single letter changed, and sending email from that. Look-alike domain names are covered in Module 7.

They also do not protect a mailbox that has been broken into. If a criminal has an employee’s password, email sent from that mailbox is authentic as far as these checks are concerned. The protections in Module 3 address that risk.

Common Mistakes

  • Publishing two SPF records. A domain name must have only one SPF record. A second one, often added while setting up a new service, causes the SPF check to fail for everything.
  • Deleting a TXT record because it looks like gibberish. DKIM records are long strings of letters and numbers. They are supposed to look that way.
  • Adding a new sending service without updating the records. A newsletter platform, an invoicing system, or a help desk that sends email as the company has to be authorized first. Otherwise its messages fail the checks.
  • Leaving DMARC at “monitor” indefinitely. Reports are only useful if someone reads them and acts.

What Employees Should Do

Most employees will never write one of these records. Three habits are enough.

  • Recognize them. TXT records that begin with v=spf1 or v=DMARC1, or that sit at a name containing _domainkey, are email authentication records. They should not be edited or removed casually.
  • Tell IT before adding any service that sends email as the company. This includes marketing platforms, billing systems, booking tools, and customer support software.
  • Report forged email. If a customer or supplier receives a suspicious message that appears to come from the company, pass it to the person responsible for the domain name. It is evidence that the records need attention.

Large mailbox providers, including Google and Yahoo, now require senders of bulk email to have these records in place. Email authentication has become a condition of reliable delivery as well as a security measure.

Key Points

  • The “From” line of an email can be forged unless the domain name’s DNS records say otherwise.
  • SPF lists permitted senders, DKIM signs each message, and DMARC tells receiving servers what to do with failures.
  • A DMARC policy of “monitor” observes but does not protect. “Quarantine” and “reject” protect.
  • A domain name must have only one SPF record.
  • Any new service that sends email as the company has to be authorized in these records first.

Check Your Understanding

These three practice questions are not graded or recorded. Choose an answer for each question, then select “Check my answers.”

Question 1. A customer receives a forged invoice that shows the company’s exact email address in the “From” line. No company mailbox was broken into. What made this possible?




Question 2. Which standard tells receiving mail servers what to do with a message that fails the SPF and DKIM checks?




Question 3. The marketing team wants to start sending newsletters through a new outside platform, using the company’s email address. What should happen first?




Continue to Module 7: Domain Scams and Social Engineering

Return to the Domain Course Overview