Template repository for hosting mta-sts.YOURDOMAIN/.well-known/mta-sts.txt on GitHub Pages.
For more information about MTA-STS, including details of required DNS record setup and options available, please see this article: https://www.mailhardener.com/kb/mta-sts
- Add a
CNAMEDNS record atmta-sts.YOURDOMAINpointing toGITHUB_USER.github.io.. - Add a
TXTDNS record at_mta-sts.YOURDOMAINindicating the use of MTA-STS, and update theidvalue on policy change. - Create a new repository from this template repository.
- Replace
YOURDOMAINwith your custom domain inCNAME. - Update
.well-known/mta-sts.txtto setmxdirectives to match the MX DNS records of your domain. - Turn on GitHub Pages (Settings > Pages) for the repository, using the root (
/) of the main branch as source. - Turn on Enforce HTTPS setting for GitHub Pages.