Practical IT Guide

SPF Email Authentication Guide

SPF tells receiving systems which servers are authorized to send mail for a domain.

Reviewed by Ahmed Gaber · Published September 12, 2026

01

Find the SPF TXT record

A domain should normally publish one SPF policy beginning with v=spf1.

02

Identify authorized senders

Review ip4, ip6, a, mx and include mechanisms and confirm every included service is still required.

03

Understand the ending

~all is a soft fail and -all is a hard fail. Choose enforcement only after legitimate senders are accounted for.

04

Avoid multiple SPF policies

Publishing multiple v=spf1 TXT records can cause SPF PermError and mail-delivery problems.

Use this as a practical starting point. Follow your organization's policies, licensing requirements and vendor documentation for production changes.

FAQ

Common questions

How many SPF records should a domain publish?

A domain should normally publish a single SPF policy beginning with v=spf1. Multiple SPF policies can produce a PermError.

Is -all always better than ~all?

No. A hard fail is appropriate only after all legitimate senders are known and included. Enforcement should follow validation, not precede it.

Knowledge map

Part of this topic.

Explore related projects, field notes and practical resources around the same technology area.

Copied