-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
autodiscovery.tf
44 lines (40 loc) · 1.16 KB
/
autodiscovery.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
resource "gandi_livedns_record" "autodiscovery_smtp" {
count = var.enable_email_autodiscovery ? 1 : 0
zone = var.domain
type = "SRV"
name = "_submission._tcp"
values = ["0 1 587 smtp.fastmail.com."]
ttl = var.ttl
}
resource "gandi_livedns_record" "autodiscovery_imaps" {
count = var.enable_email_autodiscovery ? 1 : 0
zone = var.domain
type = "SRV"
name = "_imaps._tcp"
values = ["0 1 993 imap.fastmail.com."]
ttl = var.ttl
}
resource "gandi_livedns_record" "autodiscovery_pop3s" {
count = var.enable_email_autodiscovery ? 1 : 0
zone = var.domain
type = "SRV"
name = "_pop3s._tcp"
values = ["0 1 995 pop.fastmail.com."]
ttl = var.ttl
}
resource "gandi_livedns_record" "autodiscovery_carddavs" {
count = var.enable_carddav_autodiscovery ? 1 : 0
zone = var.domain
type = "SRV"
name = "_carddavs._tcp"
values = ["0 1 443 carddav.fastmail.com."]
ttl = var.ttl
}
resource "gandi_livedns_record" "autodiscovery_caldavs" {
count = var.enable_caldav_autodiscovery ? 1 : 0
zone = var.domain
type = "SRV"
name = "_caldavs._tcp"
values = ["0 1 443 caldav.fastmail.com."]
ttl = var.ttl
}