Skip to main content

How to fix: MTA-STS Policy ID Not Rotated

The MTA-STS id= field has not changed, meaning previously cached policies may not be invalidated when the policy changes. Sending servers cache MTA-STS policies for up to max_age seconds.

Why it matters

Stale cached policies prevent rapid policy changes from taking effect. During an incident where you need to change MX records or revoke TLS enforcement, sending servers may continue enforcing the old policy for hours.

The id= tag in the _mta-sts DNS TXT record serves as a cache-buster. When you update the policy file (e.g., change mode from testing to enforce, or update MX hostnames), you must also update id= to a new value. Sending servers compare the cached id against the current DNS id; if different, they fetch the new policy.

How to fix it

  1. 1Update id= to a new value (e.g., a UTC timestamp like 20240101120000) whenever the policy file changes.
  2. 2Also update id= when changing MX records to ensure sending servers pick up the new MX list.

Code examples

DNS TXT: updated id

DNS
_mta-sts.example.com. IN TXT "v=STSv1; id=20240101120000"
# Increment id every time the mta-sts.txt policy changes

References

Detected automatically by VulnRadar. The check id is email-mta-sts-id-not-rotated, stable across every scan so you can filter or diff on it.

See every email check

Questions

How severe is MTA-STS Policy ID Not Rotated?
VulnRadar rates this low severity in the email category. The severity is fixed per check, not scored per site, so the same finding is the same severity on every scan.
Does VulnRadar check for this automatically?
Yes. It runs as part of every scan under the check id email-mta-sts-id-not-rotated, which stays the same between runs so you can filter, diff, or gate CI on it.

Missing a check?

The detection set is open. If you know a misconfiguration this does not catch, propose it: the issue template asks for the threat model, how to detect it, the false-positive risk, and a test fixture, which is the same thing a maintainer would have to work out anyway.

Propose a checkHow a check is built

Scan your own site for mta-sts policy id not rotated

VulnRadar runs this check and hundreds more against a URL in seconds. No agent to install, just paste a URL.

Or scan this site as a demoRead the docs

How to fix: MTA-STS Policy ID Not Rotated | VulnRadar