Skip to content

Commit

Permalink
Add Proton MX, SPF, DKIM and DMARC DNS records (#3559)
Browse files Browse the repository at this point in the history
  • Loading branch information
whitone authored Jul 24, 2023
1 parent 6f84f29 commit 1f0382b
Showing 1 changed file with 35 additions and 3 deletions.
38 changes: 35 additions & 3 deletions infrastructure/global/domains/python_it/records.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ resource "aws_route53_record" "python_it_mx" {
zone_id = aws_route53_zone.pythonit.id
name = "python.it"
type = "MX"
records = ["10 mail0.develer.com.", "60 mail3.develer.com.", "50 mail2.bertos.org.", "20 mail.python.it."]
records = ["10 mail0.develer.com.", "60 mail3.develer.com.", "50 mail2.bertos.org.", "20 mail.python.it.", "70 mail.protonmail.ch", "80 mailsec.protonmail.ch"]
ttl = "172800"
}

Expand All @@ -34,18 +34,50 @@ resource "aws_route53_record" "python_it_spf" {
zone_id = aws_route53_zone.pythonit.id
name = "python.it"
type = "SPF"
records = ["v=spf1 include:pycon.it ~all"]
records = ["v=spf1 include:pycon.it include:_spf.protonmail.ch mx ~all"]
ttl = "3600"
}

resource "aws_route53_record" "python_it_txt" {
zone_id = aws_route53_zone.pythonit.id
name = "python.it"
type = "TXT"
records = ["v=spf1 include:pycon.it ~all", "google-site-verification=iuDKJUkUK41L-cG5bU3IcNrBeCmnvV1BlCX2m4W5LJY", "protonmail-verification=aa66b78b1ea723283e5525cdb1000567c801c72b"]
records = ["v=spf1 include:pycon.it include:_spf.protonmail.ch mx ~all", "google-site-verification=iuDKJUkUK41L-cG5bU3IcNrBeCmnvV1BlCX2m4W5LJY", "protonmail-verification=aa66b78b1ea723283e5525cdb1000567c801c72b"]
ttl = "172800"
}

resource "aws_route53_record" "_dmarc" {
zone_id = aws_route53_zone.pythonit.id
name = "_dmarc"
type = "TXT"
records = ["v=DMARC1; p=none"]
ttl = "172800"
}

resource "aws_route53_record" "protonmail_dkim" {
zone_id = aws_route53_zone.pythonit.id
name = "protonmail._domainkey"
type = "CNAME"
records = ["protonmail.domainkey.d7lcpn4eod4w6f4h2xu7f4fi52dbkgmbkavzr23vendi2w23tmemq.domains.proton.ch."]
ttl = "3600"
}

resource "aws_route53_record" "protonmail2_dkim" {
zone_id = aws_route53_zone.pythonit.id
name = "protonmail2._domainkey"
type = "CNAME"
records = ["protonmail2.domainkey.d7lcpn4eod4w6f4h2xu7f4fi52dbkgmbkavzr23vendi2w23tmemq.domains.proton.ch."]
ttl = "3600"
}

resource "aws_route53_record" "protonmail3_dkim" {
zone_id = aws_route53_zone.pythonit.id
name = "protonmail3._domainkey"
type = "CNAME"
records = ["protonmail3.domainkey.d7lcpn4eod4w6f4h2xu7f4fi52dbkgmbkavzr23vendi2w23tmemq.domains.proton.ch."]
ttl = "3600"
}

resource "aws_route53_record" "_matrix__tcp_python_it_srv" {
zone_id = aws_route53_zone.pythonit.id
name = "_matrix._tcp.python.it"
Expand Down

1 comment on commit 1f0382b

@vercel
Copy link

@vercel vercel bot commented on 1f0382b Jul 24, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

pycon – ./frontend/

pycon-python-italia.vercel.app
2023.pycon.it
www.pycon.it
pycon.it
pycon-git-main-python-italia.vercel.app

Please sign in to comment.