{"id":25431993,"url":"https://github.com/vojtechmares/terraform-cloudflare-no-mail","last_synced_at":"2025-10-31T22:30:22.588Z","repository":{"id":41438975,"uuid":"350089136","full_name":"vojtechmares/terraform-cloudflare-no-mail","owner":"vojtechmares","description":"Terraform module for a Cloudflare DNS, to configure to prevent spammers sending mail from your domain","archived":false,"fork":false,"pushed_at":"2024-08-26T20:32:45.000Z","size":8,"stargazers_count":2,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-27T23:16:42.661Z","etag":null,"topics":["cloudflare","dkim","dns-records","mail","null-mx","spf"],"latest_commit_sha":null,"homepage":"","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/vojtechmares.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}},"created_at":"2021-03-21T18:48:33.000Z","updated_at":"2023-05-12T13:18:39.000Z","dependencies_parsed_at":"2024-08-26T23:04:11.323Z","dependency_job_id":null,"html_url":"https://github.com/vojtechmares/terraform-cloudflare-no-mail","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vojtechmares%2Fterraform-cloudflare-no-mail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vojtechmares%2Fterraform-cloudflare-no-mail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vojtechmares%2Fterraform-cloudflare-no-mail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vojtechmares%2Fterraform-cloudflare-no-mail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vojtechmares","download_url":"https://codeload.github.com/vojtechmares/terraform-cloudflare-no-mail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239236491,"owners_count":19604907,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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","dkim","dns-records","mail","null-mx","spf"],"created_at":"2025-02-17T04:42:42.738Z","updated_at":"2025-10-31T22:30:22.542Z","avatar_url":"https://github.com/vojtechmares.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Cloudflare No Mail Module\n\nThis module is created to help you keep your domains safe off spam lists, block lists etc.\n\nFor Every domain, you do not use emails, configure these DNS records, to deny any mail going from your domains (if you did not set it up yourself) to keep your domain spam free, off spam list and non blocked.\n\nNo spammers can send valid mail from your domain.\n\nTechnically, spammers still can send mails from your domain, but every good behaving mail server will reject these mails with this DNS configuration.\n\n## Usage\n\nYou only need to provide singe variable `zone_id` of the domain you wish to add these DNS records to.\n\nThis module requires Cloudflare provider **2.19.2** or newer.\n\n### Example\n\n```hcl\nmodule \"example_com_no_mail\" {\n  source  = \"vojtechmares/no-mail/cloudflare\"\n  version = \"1.0.0\"\n  zone_id = cloudflare_zone.example_com.id // or variable\n}\n```\n\n## Null MX record\n\nAccording to [RFC 7505](https://tools.ietf.org/html/rfc7505), Null MX record has a priority of `0` and content `.`.\n\n**NOTE**: TTL of this record is 1 second.\n\n## No Cloudflare\n\nIf you are not using Cloudflare for your DNS, add these DNS records to your DNS manually:\n\n- MX: name `@`, content `.`, priority `0` (if you add MX record in the future, cache won't be an issue)\n- TXT: name `@`, content `v=spf1 -all`\n- TXT: name `_dmarc`, content `v=DMARC1; p=reject;`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvojtechmares%2Fterraform-cloudflare-no-mail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvojtechmares%2Fterraform-cloudflare-no-mail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvojtechmares%2Fterraform-cloudflare-no-mail/lists"}