{"id":40763277,"url":"https://github.com/co-cddo/mta-sts-template","last_synced_at":"2026-01-21T17:10:18.524Z","repository":{"id":222566487,"uuid":"757765407","full_name":"co-cddo/mta-sts-template","owner":"co-cddo","description":"This is a template for hosting a mta-sts.txt file using GitHub Pages","archived":false,"fork":false,"pushed_at":"2025-10-24T08:55:52.000Z","size":105,"stargazers_count":2,"open_issues_count":8,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-12T21:43:40.600Z","etag":null,"topics":["email-security","mta-sts","tls"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/co-cddo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-02-14T23:34:57.000Z","updated_at":"2025-10-24T08:55:56.000Z","dependencies_parsed_at":"2025-10-24T10:17:40.123Z","dependency_job_id":"73d24c7c-c734-4097-b22c-50e8618c783a","html_url":"https://github.com/co-cddo/mta-sts-template","commit_stats":null,"previous_names":["co-cddo/mta-sts-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/co-cddo/mta-sts-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-cddo%2Fmta-sts-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-cddo%2Fmta-sts-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-cddo%2Fmta-sts-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-cddo%2Fmta-sts-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/co-cddo","download_url":"https://codeload.github.com/co-cddo/mta-sts-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/co-cddo%2Fmta-sts-template/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28636815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T15:01:31.228Z","status":"ssl_error","status_checked_at":"2026-01-21T14:42:58.942Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["email-security","mta-sts","tls"],"created_at":"2026-01-21T17:10:18.450Z","updated_at":"2026-01-21T17:10:18.518Z","avatar_url":"https://github.com/co-cddo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mta-sts-template\n\nThis templated repository automatically deploys a GitHub Pages site for hosting a `mta-sts.txt` file.\nYou should be configuring a `mta-sts.txt` deployment for every domain you recieve emails with.\n\nWhen [using this template](https://github.com/new?template_name=mta-sts-template\u0026template_owner=co-cddo) you need to set the new name to the mta-sts fully qualified domain name, like `mta-sts.gc3.security.gov.uk`, this is to ensure the auto-discovery and deployment of Pages works appropriately. You can alternatively set the `MTASTS_DOMAIN` environment variable in the workflow.\n\nBy default, this repo looks up your MX records and sets the mta-sts to `testing` mode using the [configure](.github/workflows/configure.yml) workflow.\n\n## Steps\n1. Publish a TLS-RPT record, like `_smtp._tls 300 TXT \"v=TLSRPTv1;rua=mailto:tls-rua@mailcheck.service.ncsc.gov.uk\"`\n2. Use [this template](https://github.com/new?template_name=mta-sts-template\u0026template_owner=co-cddo), making sure to set the new repository name to the full mta-sts domain, like `mta-sts.gc3.security.gov.uk`\n3. Observe the [Actions](../../actions) to make sure [configure.yml](../../actions/workflows/configure.yml) and [gh-pages.yml](../../actions/workflows/gh-pages.yml) deploy correctly\n    - Make sure the build and deployment source is set to GitHub Actions in [Settings → Pages](../../settings/pages)\n    - You may need to select the `main` branch and `/ root` in [Settings → Pages](../../settings/pages)\n5. Configure [your DNS to point to GitHub](https://docs.github.com/en/pages/configuring-a-custom-domain-for-your-github-pages-site/managing-a-custom-domain-for-your-github-pages-site)\n    - If deploying in [co-cddo](https://github.com/co-cddo), use the CNAME `co-cddo.github.io` (`mta-sts 60 CNAME co-cddo.github.io.`)\n6. Check the `Custom domain` in [Settings → Pages](../../settings/pages) and ensure `Enforce HTTPS` is checked (this can take a few hours)\n7. Check your deployment by visiting the domain, where you should get automatically redirected to `/.well-known/mta-sts.txt` (e.g. \u003chttps://mta-sts.gc3.security.gov.uk\u003e)\n8. Set your `_mta-sts` TXT record, like `_mta-sts 60 TXT \"v=STSv1; id=20240215\"` (where the id value is set to the current date, you'll need to change this if `mta-sts.txt` is updated)\n\n## More information\nYou can find more about MTA-STS here: \n- https://www.security.gov.uk/guidance/email-guidance/mta-sts/\n- https://www.ncsc.gov.uk/collection/email-security-and-anti-spoofing/using-mta-sts-to-protect-the-privacy-of-your-emails\n\n## Example deployments\n- \u003chttps://github.com/co-cddo/mta-sts.gc3.security.gov.uk\u003e\n- \u003chttps://github.com/co-cddo/mta-sts.digital.cabinet-office.gov.uk\u003e\n- \u003chttps://github.com/cabinetoffice/mta-sts.cabinetoffice.gov.uk\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco-cddo%2Fmta-sts-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fco-cddo%2Fmta-sts-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fco-cddo%2Fmta-sts-template/lists"}