{"id":48110242,"url":"https://github.com/rsclarke/terraform-cloudflare-mta-sts","last_synced_at":"2026-04-04T16:03:27.409Z","repository":{"id":46205542,"uuid":"336502591","full_name":"rsclarke/terraform-cloudflare-mta-sts","owner":"rsclarke","description":"MTA-STS DNS records and policy worker","archived":false,"fork":false,"pushed_at":"2026-03-26T09:41:11.000Z","size":19,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-27T01:42:12.780Z","etag":null,"topics":["cloudflare","email","mta-sts","security","spam-protection","terraform","worker"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/modules/rsclarke/mta-sts/cloudflare/latest","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsclarke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","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},"funding":{"github":"rsclarke","thanks_dev":"u/gh/rsclarke"}},"created_at":"2021-02-06T09:38:26.000Z","updated_at":"2026-03-26T09:37:55.000Z","dependencies_parsed_at":"2025-08-18T21:46:36.166Z","dependency_job_id":null,"html_url":"https://github.com/rsclarke/terraform-cloudflare-mta-sts","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/rsclarke/terraform-cloudflare-mta-sts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsclarke%2Fterraform-cloudflare-mta-sts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsclarke%2Fterraform-cloudflare-mta-sts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsclarke%2Fterraform-cloudflare-mta-sts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsclarke%2Fterraform-cloudflare-mta-sts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsclarke","download_url":"https://codeload.github.com/rsclarke/terraform-cloudflare-mta-sts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsclarke%2Fterraform-cloudflare-mta-sts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31405241,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T10:20:44.708Z","status":"ssl_error","status_checked_at":"2026-04-04T10:20:06.846Z","response_time":60,"last_error":"SSL_read: 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":["cloudflare","email","mta-sts","security","spam-protection","terraform","worker"],"created_at":"2026-04-04T16:03:23.109Z","updated_at":"2026-04-04T16:03:27.398Z","avatar_url":"https://github.com/rsclarke.png","language":"HCL","funding_links":["https://github.com/sponsors/rsclarke","https://thanks.dev/u/gh/rsclarke"],"categories":[],"sub_categories":[],"readme":"# terraform-cloudflare-mta-sts\n\nThis module creates the necessary DNS records to support MTA-STS and SMTP TLS reporting.  In addition, a Cloudflare Worker serves the MTA-STS policy, note that this worker does not accept the reports and you must specify a location which does through the `rua` variable.\n\n## Usage\n\n```terraform\n\nresource \"cloudflare_zone\" \"example_com\" {\n  zone = \"example.com\"\n}\n\nmodule {\n  source = \"rsclarke/mta-sts/cloudflare\"\n\n  account_id = \"0123456789abcdef\"\n  zone_id    = cloudflare_zone.example_com.id\n  zone_name  = cloudflare_zone.example_com.name\n\n  mode    = \"enforce\"\n  mx      = [\"mx1.example.com\", \"mx2.example.net\"]\n  max_age = 604800 # 1 week in seconds\n  rua     = [\"mailto:tls_report@example.org\", \"https://example.org/mta-sts/report\"]\n}\n```\n\n## Providers\n\n| Name | Version |\n|------|---------|\n| cloudflare | `~\u003e5.0` |\n\n## Inputs\n\n| Name | Description | Type | Required |\n|------|-------------|------|:--------:|\n| account_id | Cloudflare Account ID | `string` | yes |\n| zone_id | Cloudflare Zone ID | `string` | yes |\n| zone_name | Cloudflare Zone Name | `string` | yes |\n| mode | Sending MTA policy application, [rfc8461#section-5](https://tools.ietf.org/html/rfc8461#section-5).  Default `testing` | `string` | no |\n| mx | List of permitted MX hosts, at least one | `list(string)` | yes |\n| max_age | Maximum lifetime of the policy in seconds, up to 31557600, defaults to 604800 (1 week) | `number` | no |\n| rua | Locations to which aggregate reports about policy violations should be sent, either `mailto:` or `https:` schema. | `list(string)` | yes |\n\n## Outputs\n\nThis module does not expose any outputs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsclarke%2Fterraform-cloudflare-mta-sts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsclarke%2Fterraform-cloudflare-mta-sts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsclarke%2Fterraform-cloudflare-mta-sts/lists"}