-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
autodiscovery.tf
70 lines (58 loc) · 1.8 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
resource "digitalocean_record" "autodiscovery_smtp" {
count = "${var.enable_email_autodiscovery ? 1 : 0}"
domain = "${var.domain}"
type = "SRV"
name = "_submission._tcp"
priority = "1" # If set to "0", terraform will omit the value
weight = "1"
port = "587"
value = "smtp.fastmail.com."
}
resource "digitalocean_record" "autodiscovery_imaps" {
count = "${var.enable_email_autodiscovery ? 1 : 0}"
domain = "${var.domain}"
type = "SRV"
name = "_imaps._tcp"
# Terraform currently omits "0" values, which causes a DigitalOcean API error
# priority = "0"
priority = "1"
weight = "1"
port = "993"
value = "imap.fastmail.com."
}
resource "digitalocean_record" "autodiscovery_pop3s" {
count = "${var.enable_email_autodiscovery ? 1 : 0}"
domain = "${var.domain}"
type = "SRV"
name = "_pop3s._tcp"
# Terraform currently omits "0" values, which causes a DigitalOcean API error
# priority = "0"
priority = "1"
weight = "1"
port = "995"
value = "pop.fastmail.com."
}
resource "digitalocean_record" "autodiscovery_carddavs" {
count = "${var.enable_carddav_autodiscovery ? 1 : 0}"
domain = "${var.domain}"
type = "SRV"
name = "_carddavs._tcp"
# Terraform currently omits "0" values, which causes a DigitalOcean API error
# priority = "0"
priority = "1"
weight = "1"
port = "443"
value = "carddav.fastmail.com."
}
resource "digitalocean_record" "autodiscovery_caldavs" {
count = "${var.enable_caldav_autodiscovery ? 1 : 0}"
domain = "${var.domain}"
type = "SRV"
name = "_caldavs._tcp"
# Terraform currently omits "0" values, which causes a DigitalOcean API error
# priority = "0"
priority = "1"
weight = "1"
port = "443"
value = "caldav.fastmail.com."
}