SPF Basics
SPF ip4 and ip6 Mechanisms
SPF ip4 and ip6 mechanisms authorize explicit IPv4 and IPv6 addresses or CIDR ranges without additional DNS lookups.
Quick answer
SPF ip4 and ip6 mechanisms authorize explicit IPv4 and IPv6 addresses or CIDR ranges in the policy itself. Unlike include or mx, they do not trigger extra DNS lookups beyond the initial TXT query. They are ideal for on-premise servers with stable IPs but require maintenance when providers change ranges unless those ranges are referenced via includes instead.
Beginner explanation
Direct IP authorization is fast for receivers because no further DNS queries are required to learn the allowed addresses. That makes ip mechanisms attractive for hybrid mail gateways and dedicated appliances.
The tradeoff is maintenance. When IPs change, you must update DNS. Includes delegate that maintenance to the provider.
Technical explanation
Receivers compare the connecting client IP against each ip mechanism in order until a match occurs. CIDR notation allows compact authorization of subnets used by on-premise clusters or VPN egress pools.
IPv6 support is mandatory for modern dual-stack environments. Omitting ip6 while IPv6-enabled senders exist causes authentication failures when those senders connect over IPv6 paths.
Business impact
During migrations, failure to remove legacy ip entries leaves dormant authorization that complicates audits and wastes TXT record space.
Common mistakes
- Using incorrect CIDR boundaries that accidentally authorize too much address space
- Forgetting ip6 mechanisms when enabling IPv6 on edge mail relays
How SPF Manager helps
Cleanup suggestions help remove stale office IPs after cloud migration projects.
Recommended next step
See how this applies to your domain before you change DNS.
Analyze my domainRelated articles
SPF Basics
What is an SPF Record?
An SPF record is a DNS TXT entry that lists which mail servers are allowed to send email on behalf of your domain.
Best Practices
SPF Flattening Explained
SPF flattening replaces nested includes with explicit IP mechanisms to reduce DNS lookups and avoid the ten-lookup limit.
SPF Basics
SPF Include Mechanism
The SPF include mechanism authorizes another domain's SPF policy as part of your own, enabling third-party senders without listing every IP.
Best Practices
SPF Record Validation
SPF record validation checks syntax, duplicate policies, lookup limits, and real-world resolution before you rely on a record in production.