Hosting the policy file
This is the step people get stuck on. The policy must be reachable at https://mta-sts.yourdomain/.well-known/mta-sts.txt with a valid certificate. The simplest way is a static host: create a small site on GitHub Pages, Cloudflare Pages, Netlify or a Cloudflare Worker containing only that file, then point a CNAME from mta-sts.yourdomain at it and let the host issue the certificate.
Publish in this order: the policy file first, then the TLS-RPT record, then the _mta-sts TXT record last. Senders look for the TXT record first, so publishing it before the file exists produces fetch errors.