Email validation and security explained
SPF, DKIM, DMARC, and MTA-STS
When an email arrives claiming to come from a domain, the receiving mail system has to answer a simple question.
Is this message genuinely allowed to use that domain, or is someone trying to make the email look as if it came from a trusted organisation?
Email validation and security controls help answer that question. SPF checks whether a sending server is authorised. DKIM helps show whether a message has a valid signature. DMARC tells receiving systems what to do when SPF or DKIM does not align with the visible sending domain. MTA-STS helps protect mail delivery between mail servers where supported.
These controls do not stop every phishing attempt, but they help reduce unauthorised use of a real domain and make it harder for attackers to misuse familiar names.
This guide explains what each mechanism does, how they relate to one another, and what it means in practice when they are only partially implemented.
Browse this guide
This guide explains how email validation works, including SPF, DKIM, DMARC, and MTA-STS, how they relate to each other, and what they mean in practice. Use the links below to jump to the sections most relevant to your question.
- Why email validation exists
- What SPF does
- What DKIM does
- What DMARC does and why policy matters
- Detailed guide to DMARC records and policy settings
- Why many organisations do not reach DMARC reject
- What MTA-STS is used for
- Video explaining SPF, DKIM, DMARC and MTA-STS
- How DNS fits into email security
- Why DNS hygiene and monitoring still matter
- Using the NCSC email security checker
- When to seek help
- Need help with something covered in this guide?
- Further Guidance and Support
Why email validation exists
The sender name and address shown to a user are not enough to prove that an email is genuine.
Without validation, a message can be made to appear as if it came from a familiar organisation, supplier, manager, colleague or known contact. That can support invoice fraud, payment redirection, fake login alerts and other impersonation attempts.
Email validation exists because receiving mail systems need practical checks they can apply before deciding how much trust to place in a message.
The main questions are:
Is this sending server allowed to send email for this domain?
Has the message been signed in a way that links it to the domain?
What should happen if the checks fail or do not match the visible sending address?
SPF, DKIM and DMARC answer different parts of that problem. MTA-STS addresses a separate but related issue: how mail servers protect the connection used to deliver email between them.
What SPF does
SPF answers one practical question: is this sending server allowed to send email for this domain?
SPF, or Sender Policy Framework, allows a domain owner to publish a DNS record listing the mail servers or services authorised to send email for that domain.
This information is published in DNS records.
When an email is received, the receiving server checks whether the sending server is listed as authorised. If it is not, the message may be marked as suspicious or rejected.
SPF alone does not authenticate the visible From address that users see. It only checks the technical sending path. Because of this, SPF must be combined with other mechanisms to be effective.
What DKIM does
DKIM answers a different question: has this message been signed in a way that links it to a domain and helps show that the message has not been altered in transit?
DKIM, or DomainKeys Identified Mail, adds a digital signature to outgoing email. Receiving systems can check that signature against a public key published in DNS.
This signature allows receiving servers to verify that:
-
- The message was authorised by the sending domain
- The content has not been altered during delivery
DKIM relies on public keys published in DNS. If the signature does not validate, the message fails DKIM checks.
DKIM provides message integrity, but on its own it does not instruct receiving servers what to do when validation fails.
What DMARC does and why policy matters
DMARC brings SPF and DKIM together and asks a further question: does the authentication result line up with the domain the recipient can see in the From address?
If the answer is no, DMARC tells the receiving system what the domain owner wants to happen. The policy may make no enforcement request, may ask for suspicious messages to be treated with caution, or may ask for failed messages to be rejected.
DMARC allows a domain owner to state:
-
-
Whether SPF or DKIM must pass and align with the visible From address
-
What receiving servers should do if authentication fails
-
Where reports about email authentication should be sent
-
DMARC policy states
-
-
p=none
This is a non enforcement policy. It tells participating receiving systems not to change how they handle a message because of the DMARC policy.
By itself,
p=nonedoes not quarantine or reject failing messages. When it is used with a reporting address such asrua=mailto:dmarcreports@example.com, it is commonly used during the discovery stage to collect DMARC reports and understand which systems are sending email using the domain. -
p=quarantine
This is an enforcement policy. It asks receiving systems to treat messages that fail DMARC as suspicious.
In practice, this may mean the message is placed in spam, junk, quarantine or handled with extra caution. The exact behaviour depends on the receiving mail system.
-
p=reject
This is the strongest normal DMARC enforcement policy. It asks receiving systems to reject messages that fail DMARC.
This is normally the preferred end position once legitimate sending services have been reviewed and SPF or DKIM alignment is working correctly.
-
An important distinction
DMARC reporting and DMARC enforcement are related, but they are not the same thing.
Reporting is controlled by tags such as rua and, where supported, ruf.
Enforcement is controlled by the policy value, such as p=quarantine or p=reject.
A record using p=none with a valid rua address can provide useful visibility, but it does not ask receivers to block or quarantine failed messages.
A record using p=quarantine or p=reject moves beyond visibility and asks receivers to take action when messages fail DMARC.
DMARC is designed to reduce unauthorised use of a domain in the visible From address. The strongest normal enforcement position is p=reject, but it should be applied only after legitimate senders have been identified and alignment issues have been corrected.
Policies such as p=none and p=quarantine can be useful during deployment when reporting is also configured. They help the domain owner review legitimate senders and alignment problems, but they should not normally be treated as the final position for a domain that sends business email.
Detailed guide to DMARC records and policy settings
For a more detailed guide to DMARC records, reporting addresses, percentage based enforcement, subdomain policy, and strict versus relaxed SPF and DKIM alignment, see our dedicated guide:
Why many organisations do not reach DMARC reject
Despite its importance, many organisations stop short of enforcing DMARC.
Common reasons include:
-
-
Legacy systems sending email without proper authentication
-
Third-party services not correctly aligned with the domain
-
Incomplete SPF or DKIM configuration
-
Fear of disrupting legitimate email delivery
-
These concerns are valid during deployment, but remaining permanently in a non-enforcing state leaves the domain open to abuse.
The safer approach is to treat DMARC enforcement as a staged process, where legitimate senders are identified, alignment problems are corrected, and stricter policy is applied only when the email environment supports it.
What MTA-STS is used for
MTA-STS, or Mail Transfer Agent Strict Transport Security, protects email while it is being transferred between mail servers.
It does this by:
-
-
Enforcing encrypted connections using TLS
-
Preventing downgrade attacks during delivery
-
MTA-STS does not authenticate senders or prevent spoofing. It addresses a different risk, namely interception of email in transit.
Because it operates independently of SPF, DKIM, and DMARC, it is often misunderstood or incorrectly assumed to provide the same protection.
In simple terms, SPF, DKIM and DMARC help receiving systems decide whether an email is authorised to use a domain. TLS and MTA-STS help protect the message while it travels between mail servers. Both are useful, but they are not the same control.
Video explaining SPF, DKIM, DMARC and MTA-STS email security
It shows how these email authentication and transport security mechanisms work together to reduce unauthorised use of a domain, support safer mail handling, and make direct domain spoofing harder where the receiving system enforces the relevant checks.
The video is provided as a visual reference to support the written explanation rather than a replacement for it.
How DNS fits into email security
All of these mechanisms rely on DNS.
DNS records are used to publish:
-
-
SPF authorisation lists
-
DKIM public keys
-
DMARC policies and reporting addresses
-
MTA-STS policies
-
Misconfigured or incomplete DNS records are one of the most common causes of email authentication failure.
Changes to DNS should always be approached carefully, as errors can affect email delivery across an entire domain.
Because email authentication relies on DNS, wider DNS integrity and DNS security practices also matter.
Why DNS hygiene and monitoring still matter
Publishing SPF, DKIM, DMARC and MTA-STS records is only part of the work. Email security also depends on those records staying accurate as systems, providers, and third party services change over time.
DMARC works by bringing SPF and DKIM together and checking alignment against the visible From domain. In practice, that means changes to sending services, relay paths, forwarding behaviour, or DNS records can affect how mail is authenticated and how safely stricter policies can be enforced.
Where legitimate sending services are properly configured and aligned, DMARC can also support more reliable handling of genuine email by helping receiving systems distinguish authorised mail from unauthorised use of the domain.
This is why DMARC is not best treated as a record that is published once and forgotten. Reports should be reviewed, legitimate sending services should be confirmed, and DNS records should be checked periodically so that outdated or conflicting entries do not cause delivery problems or weaken protection.
This is also relevant for parked or non sending domains. Where a domain is not meant to send email, a stricter DMARC policy can help reduce the risk of domain spoofing, provided the wider DNS and mail configuration has been reviewed properly.
Using the NCSC email security checker
The UK National Cyber Security Centre provides a free tool to check email security configuration.
You can access it here:
The checker identifies whether SPF, DKIM, DMARC, and related records are present and highlights common weaknesses.
It is important to understand that this tool:
-
- Reports on configuration
- Does not fix issues
- Does not guarantee full protection if DMARC is not enforced
A passing result does not necessarily mean a domain is protected against impersonation.
A configuration check is useful, but it is not the same as a full review of the organisation’s live email ecosystem. A domain may publish the expected records and still need further work on alignment, third party senders, forwarding behaviour, or older DNS entries before stricter DMARC enforcement is applied safely.
When to seek help
Email security mechanisms interact with DNS, mail providers, and third-party services. Changes made in isolation can unintentionally disrupt legitimate email flow.
If reports indicate alignment issues, or if DMARC enforcement is being considered, it is usually advisable to review the full email ecosystem rather than making piecemeal changes.
Evening Computing can assist with assessing email validation and security settings and advising on safe, staged improvements where appropriate.
Supporting references
The following sources support the factual context in this guide:
UK Government Cyber Security Breaches Survey 2025 to 2026
Need help with something covered in this guide?
A guide can explain the issue and outline useful checks, but some situations need the actual device, account, service, website, network or supplier arrangement to be reviewed. Evening Computing can help review what is happening and advise on suitable next steps before changes are made.
Further Guidance and Support
This guide forms part of a broader layered security approach. For structured guidance on security and resilience planning, see our Security and Resilience page.
Related guide: DMARC records and policy settings
For information about practical implementation and ongoing support, you can review our IT services and local IT support coverage across London, Hertfordshire, and Essex.
Author
Elías Sánchez
IT Support Consultant
Evening Computing
London, United Kingdom
This guide was prepared by Elías Sánchez with research and drafting assistance from AI tools. All technical content has been reviewed and adapted for clarity and accuracy.
Last reviewed
10 June 2026
