Requests today 335
Cyber attacks today 1
Last cyber attack 2h ago
Against this website

← Back to Email Auth Checker

Email authentication is published as TXT records in DNS. Receivers use them to check that a message was sent by someone you authorized (SPF), that it was not altered in transit (DKIM), and what to do when those checks fail (DMARC).

The sending IPs below use the placeholder range 11.11.x.x (written as ip4:11.11.0.0/16). Do not copy these values onto a real domain.

SPF

SPF (Sender Policy Framework) lists which servers may send mail for your domain. It is a TXT record on the domain itself (the apex). Keep it to one SPF record, stay within the 10 DNS-lookup budget, and end with a trailing all mechanism.

Sample record

Name example.com
Type TXT
v=spf1 ip4:11.11.0.0/16 include:_spf.example.com a mx -all

ip4:11.11.0.0/16 is an example for a sending range in the 11.11.x.x style. Replace it with your real mail-server addresses or prefixes.

Parameters

ParameterWhat it isHow to prepare it
v Version tag. Must be first and exactly v=spf1. Start every SPF record with this token. Do not publish a second v=spf1 TXT on the same name.
ip4 / ip6 Authorizes a specific IPv4 or IPv6 address or CIDR prefix to send mail. List the public IPs of servers you operate (example: ip4:11.11.0.0/16 for the 11.11.x.x range, or a single host). Prefer prefixes you actually send from.
include Pulls in another domain’s SPF (typical for Google, Microsoft, or a mailbox host). Use the include target your provider documents (example: include:_spf.example.com). Each include counts toward the 10-lookup limit.
a Authorizes the A / AAAA addresses of a hostname (the current domain if no name is given). Add a only if that host also sends mail. A named form looks like a:mail.example.com.
mx Authorizes the domain’s MX hosts as senders. Use this when the same servers both receive and send mail. It also costs a DNS lookup.
all The default result for senders that did not match earlier mechanisms. Usually last. Use -all (fail) when your list is complete, or start with ~all (softfail) while you monitor. Avoid +all and a missing all.
redirect Replaces this domain’s SPF with another domain’s record (a modifier, not a mechanism). Use redirect=_spf.example.com only when that other domain should be the entire policy. Do not mix it carelessly with a trailing all.
DKIM

DKIM (DomainKeys Identified Mail) publishes a public key so receivers can verify a signature the sending server adds to each message. The TXT lives at <selector>._domainkey.example.com. The selector name is chosen when you enable DKIM at your mail provider (for example s1 or google).

Sample record

Name s1._domainkey.example.com
Type TXT
v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC…IDAQAB

The p= value is shortened with an ellipsis in the middle so the page stays readable. A real RSA public key is a long Base64 string with no gaps. Do not publish this example key.

Parameters

ParameterWhat it isHow to prepare it
v Version. Should be DKIM1. Include v=DKIM1 at the start of the TXT (most provider records already do).
k Key type. Commonly rsa. Some providers also offer ed25519. Match the algorithm your mail server uses to sign. If omitted, receivers treat it as RSA.
p The public key (Base64). An empty p= means the key is revoked. Paste the exact key your provider gives you. Use 2048-bit RSA (or ed25519) for new keys. Never put the private key in DNS.
s Optional service type. s=email means the key is for email only. You can omit this, or set s=email. Other values are uncommon.
t Optional flags. t=y marks the domain as testing; t=s tightens some identity rules. Use t=y only while you test, then remove it so signatures are treated as production.
DMARC

DMARC (Domain-based Message Authentication, Reporting and Conformance) tells receivers what to do when a message fails SPF or DKIM alignment, and where to send reports. Publish a TXT at _dmarc.example.com.

Sample record

Name _dmarc.example.com
Type TXT
v=DMARC1; p=none; sp=none; adkim=r; aspf=r; pct=100; rua=mailto:[email protected]; ruf=mailto:[email protected]

This example starts at p=none (monitor only) so you can collect reports before asking receivers to quarantine or reject unauthenticated mail.

Parameters

ParameterWhat it isHow to prepare it
v Version. Must be first and exactly DMARC1. Start the record with v=DMARC1;.
p Policy for the organizational domain: none, quarantine, or reject. Start with p=none. After you review reports and fix gaps, raise to quarantine, then reject.
sp Policy for subdomains, if you want it to differ from p. Omit it to inherit p, or set sp=none / quarantine / reject for subdomain mail.
rua Aggregate report address (usually a mailto: URI). Create a mailbox you control, e.g. rua=mailto:[email protected]. External addresses may need a confirming DNS record.
ruf Optional forensic (failure) report address. Add ruf=mailto:[email protected] only if you want per-message failure samples. Many receivers send these rarely.
adkim DKIM identifier alignment: r (relaxed, default) or s (strict). Start with relaxed (adkim=r or omit it). Use strict only when the signature domain must match the From domain exactly.
aspf SPF identifier alignment: r (relaxed, default) or s (strict). Same idea as adkim, for the SPF-authenticated domain versus the From domain.
pct Percentage of messages the policy applies to (0–100). Default is 100. Use pct=100 in normal operation. A lower value can help when you first raise p, then return to 100.
How to prepare and publish
  1. List every system that sends mail as example.com (mailbox host, newsletters, ticketing, and so on).
  2. Publish one SPF TXT on example.com that authorizes those senders (ip4/ip6 and include as needed) and ends with ~all or -all.
  3. Turn on DKIM at each sending service, then publish the selector TXT they give you at <selector>._domainkey.example.com.
  4. Publish DMARC at _dmarc.example.com starting with p=none and a rua mailbox you read.
  5. Wait for DNS TTL to expire, then use the Email Auth Checker to confirm the records are visible.
  6. Review aggregate reports, fix gaps, and only then raise DMARC to p=quarantine and later p=reject. When ready, tighten SPF from ~all to -all.

DNS changes are not instant. A typo in a TXT value can affect mail, so copy provider records carefully and test on a domain you are authorized to manage.

FAQ

Are these live DNS lookups?

No. This page shows static example SPF, DKIM, and DMARC TXT records for example.com only. It does not query live DNS. Use the Email Auth Checker to inspect a real domain.

Can I copy these records onto a production domain?

Use them as a format guide only. Replace placeholder values (including the example 11.11.x.x sending range and the shortened DKIM key) with records from your mail provider. Do not publish the sample keys or addresses as-is.

How do I check the records I published?

After DNS has time to update, open the Email Auth Checker and look up the domain you manage.