-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
135 lines (115 loc) · 3.44 KB
/
Copy pathconfig.example.toml
File metadata and controls
135 lines (115 loc) · 3.44 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
app = { name = "ElecPostal" }
[http]
port = "8080"
[grpc]
port = "9090"
useTLS = false
certFile = ""
keyFile = ""
[database]
dsn = "host=postgres port=5432 user=dyson password=dyson dbname=elec_postal sslmode=disable"
[redis]
addr = ""
[nats]
# Set target in production to enable durable, horizontally scalable SMTP ingestion.
target = "nats://127.0.0.1:4222"
stream = "ELECPOSTAL_INBOUND"
subject = "elecpostal.smtp.inbound"
consumer = "elecpostal-smtp-workers"
workers = 8
[auth]
target = "stargate:9090" # Stargate auth gRPC target (DyAuthService; took over Padlock's auth surface); leave empty to disable auth
useTLS = true # Stargate serves the fleet self-signed cert
tlsSkipVerify = true
[filesystem]
target = "" # FileSystem gRPC target (host:port); leave empty to disable direct attachment uploads
useTLS = false
tlsSkipVerify = false
[workspace]
target = "" # Workspace gRPC target; required for workspace mailbox creation and email quota enforcement
useTLS = false
tlsSkipVerify = false
[mail.sendLimits.free]
mailboxDaily = 100
mailboxMonthly = 2000
workspaceDaily = 100
workspaceMonthly = 2000
[mail.sendLimits.pro]
mailboxDaily = 1000
mailboxMonthly = 20000
workspaceDaily = 3000
workspaceMonthly = 60000
[mail.sendLimits.enterprise]
mailboxDaily = 5000
mailboxMonthly = 100000
workspaceDaily = 25000
workspaceMonthly = 500000
[mail.relay]
adapter = "" # direct-smtp sends to MX directly; ses uses the AWS SDK
host = "mail.example.com" # required only by direct-smtp for HELO/EHLO
port = "587"
username = "" # reserved for SMTP-based adapters
password = "" # reserved for SMTP-based adapters
region = "ap-northeast-1" # required by adapter = "ses"; AWS SDK credentials use its default provider chain
inboundHost = "mail.example.com" # matching recipient MX records are delivered locally before the outbound adapter
dnsResolver = "1.1.1.1" # DNS server used to validate custom-domain DKIM, SPF, and inbound MX records
tlsMode = "starttls" # direct-smtp: starttls or required; listener modes: starttls, implicit, disabled
tlsHost = "" # optional TLS server-name override
tlsSkipVerify = false
[[mail.smtp]]
enabled = true
host = ""
port = "25" # public inbound MX listener; accepts local recipients only
tlsMode = "starttls"
certFile = ""
keyFile = ""
maxMessageBytes = 26214400
maxRecipients = 100
[[mail.smtp]]
enabled = true
host = ""
port = "587" # authenticated client submission
tlsMode = "starttls"
certFile = ""
keyFile = ""
maxMessageBytes = 26214400
maxRecipients = 100
requireAuth = true
[[mail.smtp]]
enabled = true
host = ""
port = "465" # authenticated implicit-TLS SMTP submission
tlsMode = "implicit"
certFile = ""
keyFile = ""
maxMessageBytes = 26214400
maxRecipients = 100
requireAuth = true
[[mail.imap]]
enabled = true
host = ""
port = "143" # use 993 for implicit TLS
tlsMode = "starttls"
certFile = ""
keyFile = ""
[[mail.pop3]]
enabled = true
host = ""
port = "110" # use 995 for implicit TLS
tlsMode = "starttls"
certFile = ""
keyFile = ""
[ring]
target = "" # Ring gRPC target (host:port); leave empty to disable notifications
useTLS = false
tlsSkipVerify = false
[websocket]
# DysonNetwork WebSocket gateway gRPC endpoint for mail.* realtime packets.
target = ""
useTLS = false
tlsSkipVerify = false
[sentry]
dsn = ""
tracesSampleRate = 0.01
environment = ""
release = ""