{"id":29962011,"url":"https://github.com/joscha/mta-sts-cloudflare","last_synced_at":"2026-04-17T04:33:48.230Z","repository":{"id":304994055,"uuid":"1021529859","full_name":"joscha/mta-sts-cloudflare","owner":"joscha","description":"A Cloudflare worker for mta-sts policy files","archived":false,"fork":false,"pushed_at":"2025-07-17T15:42:46.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-09T07:35:20.779Z","etag":null,"topics":["cloudflare","email","mta-sts","security"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joscha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-07-17T14:34:03.000Z","updated_at":"2025-07-27T09:49:41.000Z","dependencies_parsed_at":"2025-07-17T21:12:02.595Z","dependency_job_id":null,"html_url":"https://github.com/joscha/mta-sts-cloudflare","commit_stats":null,"previous_names":["joscha/mta-sts-cloudflare"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/joscha/mta-sts-cloudflare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fmta-sts-cloudflare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fmta-sts-cloudflare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fmta-sts-cloudflare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fmta-sts-cloudflare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joscha","download_url":"https://codeload.github.com/joscha/mta-sts-cloudflare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joscha%2Fmta-sts-cloudflare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915305,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cloudflare","email","mta-sts","security"],"created_at":"2025-08-03T23:44:02.164Z","updated_at":"2026-04-17T04:33:48.192Z","avatar_url":"https://github.com/joscha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `mta-sts` Cloudlfare worker\n\nTemplate for a Cloudflare worker for handling the MTA STS policy file.\n\nCreate a copy of this template and connect it via the github feature from Cloudflare workers:\n\n\u003cimg width=\"310\" height=\"345\" alt=\"SCR-20250717-orqf\" src=\"https://github.com/user-attachments/assets/1c7f2a72-4e21-4008-8826-67b45cbb2ade\" /\u003e\n\nand then: \n\n\u003cimg width=\"603\" height=\"98\" alt=\"SCR-20250717-opyc\" src=\"https://github.com/user-attachments/assets/2d42550e-5f93-4d07-a9d0-d78aeb2ff11e\" /\u003e\n\n\n---\n\nThis worker is designed to be able to neatly handle MTA-STS policies for multiple domains.\n\n- Make a new worker with this script and add your domains to the `stsPolicies` dict like the example.\n- Add a DNS `AAAA` record for `mta-sts.yourdomain.com` pointing to `100::` and set to proxied,\n- Then add a workers route for `mta-sts.yourdomain.com/*` pointing to this worker.\n- You should probably also create a Cloudflare configuration rule disabling Browser Integrity Check for the mta-sts subdomain to ensure MTAs aren't blocked from retrieving your policy.\n- You'll still need to manually add the appropriate `_mta-sts.yourdomain.com` `TXT` record to enable the policy, and the `_smtp._tls.yourdomain.com` `TXT` record for reporting.\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoscha%2Fmta-sts-cloudflare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoscha%2Fmta-sts-cloudflare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoscha%2Fmta-sts-cloudflare/lists"}