Opens in a new tab

DKIM t=y testing mode and revoked keys (empty p=)

A DKIM key record can carry flags: t=y marks the domain as testing DKIM, t=s requires signatures to come from the exact domain, and an empty p= means the key has been revoked — anything signed with it fails.

Syntaxt=y | t=s | p=
t=yTesting: failures should not be treated worse than unsigned mail
t=sThe i= domain must match d= exactly
p= (empty)Key revoked
Defined inRFC 6376 §3.6.1

What it does

With t=y, the specification says verifiers must not treat messages from a signer in testing mode differently from unsigned mail, even if the signature fails. It is meant for the first days of a new setup, and is easy to forget.

An empty p= is how a key is withdrawn: the selector still answers, but with no key, so every signature using it fails. That is the right way to retire a key that may have leaked, and the wrong state for a key a service still signs with.

Examples

v=DKIM1; t=y; k=rsa; p=MIIBIjANBgkq…

A key still in testing mode.

v=DKIM1; p=

A revoked key: signatures with this selector fail.

See what your own DKIM record says

Every term of your published record, read and explained — including this one.

Common mistakes

  • t=y left on a key for years.
  • Revoking the key a service is still signing with, instead of rotating to a new selector first.

What we recommend

Remove t=y once DKIM is verified; rotate by publishing a new selector, switching the service to it, then emptying the old one.

Check your DKIM keys for testing and revoked flags →

Sources

Checked on 25 September 2026 against these official sources:

Know when your records change

Add your domain and we monitor its SPF, DKIM and DMARC every day, read the DMARC reports receivers send you, and email you when a record changes or a sender starts failing. Free for your first domain.

Create a free account