summaryrefslogtreecommitdiff
path: root/roles/mox/templates/mox.conf
blob: 8cafc2543e7eb7cdc20ee6c1cd97fd11a94a2e30 (plain)
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
DataDir: ../data
LogLevel: debug
User: mox
Hostname: mail.joeac.net
AdminPasswordFile: adminpasswd
CheckUpdates: true
Listeners:
	internal:
		IPs:
			- 127.0.0.1
			- ::1
		Hostname: localhost
		MetricsHTTP:
			Enabled: true
	public:
		IPs:
{% for interface in ansible_facts.interfaces | reject("eq", "lo") %}
			- {{ ansible_facts[interface].ipv4.address }}
{% for ipv6 in ansible_facts[interface].ipv6 | selectattr("scope", "eq", "global") %}
			- {{ ipv6.address }}
{% endfor %}
{% endfor %}
		NATIPs:
			- {{ router.wan.ipv4 }}
			- {{ ansible_facts.default_ipv6.address }}
		AccountHTTPS:
			Enabled: true
		AdminHTTPS:
			Enabled: true
		WebmailHTTPS:
			Enabled: true
		WebAPIHTTPS:
			Enabled: true
		AutoconfigHTTPS:
			Enabled: true
		MTASTSHTTPS:
			Enabled: true
		WebserverHTTP:
			Enabled: true
		WebserverHTTPS:
			Enabled: true
		TLS:
			KeyCerts:
{% for subdomain in ( subdomains | map(attribute='name') ) %}
				-
					CertFile: /etc/letsencrypt/live/{{ subdomain }}.joeac.net/fullchain.pem
					KeyFile: /etc/letsencrypt/live/{{ subdomain }}.joeac.net/privkey.pem
{% endfor %}
		SMTP:
			Enabled: true
			RequireSTARTTLS: true
		Submissions:
			Enabled: true
		IMAPS:
			Enabled: true
Postmaster:
	Account: me
	Mailbox: Postmaster
HostTLSRPT:
	Account: me
	Mailbox: TLSRPT
	Localpart: tlsreports