Skip to content

Commit

Permalink
feat: updated mail to fastmail
Browse files Browse the repository at this point in the history
  • Loading branch information
cecilia-sanare committed Feb 21, 2024
1 parent c0971e5 commit 14f3842
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
33 changes: 27 additions & 6 deletions terraform/modules/zone/main.tf
Original file line number Diff line number Diff line change
@@ -1,18 +1,39 @@
locals {
mx_records = [
"1 ASPMX.L.GOOGLE.COM",
"5 ALT1.ASPMX.L.GOOGLE.COM",
"5 ALT2.ASPMX.L.GOOGLE.COM",
"10 ALT3.ASPMX.L.GOOGLE.COM",
"10 ALT4.ASPMX.L.GOOGLE.COM"
"10 in1-smtp.messagingengine.com",
"20 in2-smtp.messagingengine.com",
]

records = concat(var.records, [
{
name = ""
type = "TXT"
records = [
"google-site-verification=${var.google}"
"v=spf1 include:spf.messagingengine.com ?all"
]
ttl = 300
},
{
name = "fm1._domainkey"
type = "CNAME"
records = [
"fm1.${var.domain}.dkim.fmhosted.com"
]
ttl = 300
},
{
name = "fm2._domainkey"
type = "CNAME"
records = [
"fm2.${var.domain}.dkim.fmhosted.com"
]
ttl = 300
},
{
name = "fm3._domainkey"
type = "CNAME"
records = [
"fm3.${var.domain}.dkim.fmhosted.com"
]
ttl = 300
},
Expand Down
5 changes: 0 additions & 5 deletions terraform/modules/zone/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,3 @@ variable "records" {
error_message = "Record Type must be 'A', 'AAAA', 'CAA', 'CNAME', 'DS', 'MX', 'NAPTR', 'NS', 'PTR', 'SOA', 'SPF', 'SRV', or 'TXT'."
}
}

variable "google" {
type = string
description = "Google Workspaces domain verification code"
}
5 changes: 1 addition & 4 deletions terraform/zones.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ locals {
module "cecilias_me" {
source = "./modules/zone"
domain = "cecilias.me"
google = "pFsrSZl3l9vbQScTjdtXieVHE1Ce8pkMkZRagaVlzxA"

records = [
{
Expand Down Expand Up @@ -61,7 +60,6 @@ module "cecilias_me" {
module "rains_cafe" {
source = "./modules/zone"
domain = "rains.cafe"
google = "8n2S6aE0zRfPbVTwhknvMfENZH28tVnlLB60SlxFXwY"

records = [
{
Expand Down Expand Up @@ -120,7 +118,6 @@ module "rains_cafe" {
module "devkit_lgbt" {
source = "./modules/zone"
domain = "devkit.lgbt"
google = "hhjM8G0PQBxkse8KHJkvmP8H9N5YrGJr31G8tYbfa_c"

records = [
{
Expand All @@ -137,7 +134,6 @@ module "devkit_lgbt" {
module "charcoal_gg" {
source = "./modules/zone"
domain = "charcoal.gg"
google = "bVauXlt-AWWHjES1jiZqqdubCwmV6p10aFlbJXDtkMA"

records = [
{
Expand All @@ -157,5 +153,6 @@ output "name_servers" {
"cecilias.me" = module.cecilias_me.name_servers
"rains.cafe" = module.rains_cafe.name_servers
"devkit.lgbt" = module.devkit_lgbt.name_servers
"charcoal.gg" = module.charcoal_gg.name_servers
}
}

0 comments on commit 14f3842

Please sign in to comment.