Merge #438
438: terraform: use Gandi for email r=zimbatm a=zimbatm Co-authored-by: zimbatm <zimbatm@zimbatm.com>
This commit is contained in:
commit
404bb3dcf5
1 changed files with 13 additions and 2 deletions
|
@ -114,14 +114,25 @@ resource "cloudflare_record" "nix-community-org-apex-A" {
|
|||
proxied = false
|
||||
}
|
||||
|
||||
# Any email coming from that domain are SPAM
|
||||
resource "cloudflare_record" "nix-community-org-apex-TXT" {
|
||||
zone_id = local.nix_community_zone_id
|
||||
name = "@"
|
||||
value = "v=spf1 -all"
|
||||
value = "v=spf1 include:_mailcust.gandi.net -all"
|
||||
type = "TXT"
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "nix-community-org-apex-MX" {
|
||||
for_each = {
|
||||
"spool.mail.gandi.net." = 10
|
||||
"fb.mail.gandi.net." = 50
|
||||
}
|
||||
zone_id = local.nix_community_zone_id
|
||||
name = "@"
|
||||
value = each.key
|
||||
type = "MX"
|
||||
priority = each.value
|
||||
}
|
||||
|
||||
resource "cloudflare_record" "nix-community-org-github-challenge-TXT" {
|
||||
zone_id = local.nix_community_zone_id
|
||||
name = "_github-challenge-nix-community-org"
|
||||
|
|
Loading…
Add table
Reference in a new issue