-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
74 lines (62 loc) · 1.52 KB
/
config.example.toml
File metadata and controls
74 lines (62 loc) · 1.52 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
db = "./data/mail-card.db"
server_name = "mail.example.internal"
[smtp]
bind = "0.0.0.0:2525"
tls_bind = "0.0.0.0:465"
[pop3]
bind = "0.0.0.0:8110"
tls_bind = "0.0.0.0:995"
[imap]
bind = "0.0.0.0:8143"
tls_bind = "0.0.0.0:993"
[http]
bind = "0.0.0.0:8080"
tls_bind = "0.0.0.0:4443"
[limits]
max_message_bytes = 10485760
max_recipients = 50
[security]
smtp_require_auth = true
allow_self_signup = false
admin_token = "replace-with-long-random-admin-token"
reject_insecure_startup = true
min_password_length = 12
auth_window_seconds = 300
max_auth_failures = 5
max_concurrent_sessions = 512
http_expose_diagnostics = false
[domains]
allowed_local_domains = ["mail.example.internal"]
[tls]
cert_path = "./certs/server.crt"
key_path = "./certs/server.key"
enable_http_tls = true
enable_smtp_tls = true
enable_pop3_tls = true
enable_imap_tls = true
[relay]
enabled = false
hostname = "smtp.example.com"
port = 587
username = "relay-user"
password = "replace-with-relay-password"
use_tls = true
max_attempts = 5
retry_backoff_seconds = 60
[filtering]
spam_reject_score = 10
spam_keywords = ["viagra", "bitcoin", "winner", "urgent wire"]
clamav_addr = "127.0.0.1:3310"
enable_clamav = false
quarantine_mailbox = "quarantine@mail.example.internal"
[mail_auth]
dkim_enabled = false
dkim_domain = "mail.example.internal"
dkim_selector = "mail"
dkim_private_key_path = "./certs/dkim-private.pem"
spf_enforce = true
dmarc_enforce = true
[observability]
enable_metrics = true
metrics_token = "replace-with-long-random-metrics-token"
enable_audit_log = true