Skip to content

Commit ba36749

Browse files
authored
Merge pull request #274 from dandi/add-sandbox-email
Handle emails sent to info@sandbox.dandiarchive.org
2 parents b29596e + 2b9ac99 commit ba36749

2 files changed

Lines changed: 29 additions & 0 deletions

File tree

terraform/domain_sandbox.tf

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,22 @@ resource "aws_route53_record" "gui_sandbox" {
3636
ttl = "300"
3737
records = ["75.2.60.5"] # Netlify's load balancer, which will proxy to our app
3838
}
39+
40+
resource "aws_route53_record" "sandbox_email" {
41+
zone_id = aws_route53_zone.dandi_sandbox.zone_id
42+
name = "" # apex
43+
type = "MX"
44+
ttl = "300"
45+
records = [
46+
"10 mx1.improvmx.com.",
47+
"20 mx2.improvmx.com.",
48+
]
49+
}
50+
51+
resource "aws_route53_record" "sandbox_email_spf" {
52+
zone_id = aws_route53_zone.dandi_sandbox.zone_id
53+
name = "" # apex
54+
type = "TXT"
55+
ttl = "300"
56+
records = ["v=spf1 include:spf.improvmx.com ~all"]
57+
}

terraform/email_forwarding.tf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,13 @@ resource "improvmx_email_forward" "community" {
2626
alias_name = "community"
2727
destination_email = "kabi@mit.edu,roni.choudhury@kitware.com,satra@mit.edu,yoh@onerussian.com"
2828
}
29+
30+
resource "improvmx_domain" "sandbox" {
31+
domain = "sandbox.dandiarchive.org"
32+
}
33+
34+
resource "improvmx_email_forward" "sandbox_info" {
35+
domain = improvmx_domain.sandbox.domain
36+
alias_name = "info"
37+
destination_email = "dandi@mit.edu"
38+
}

0 commit comments

Comments
 (0)