-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.example.toml
More file actions
97 lines (75 loc) · 2.05 KB
/
config.example.toml
File metadata and controls
97 lines (75 loc) · 2.05 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
# SMTP Server Configuration
# Copy this file to config.toml and customize for your environment
#
# Configuration priority (highest to lowest):
# 1. Command-line arguments
# 2. Environment variables (SMTP_*)
# 3. Configuration file (this file)
# 4. Profile defaults (set via SMTP_PROFILE env var)
[server]
# Network binding
host = "0.0.0.0"
port = 2525
hostname = "mail.example.com"
# Connection limits
max_connections = 1000
max_message_size = 26214400 # 25MB
max_recipients = 100
[timeouts]
# All values in seconds
connection = 300 # General connection timeout
data = 600 # DATA command timeout (needs longer for large emails)
command = 60 # Timeout between commands
greeting = 30 # Timeout for initial greeting
[tls]
enabled = false
cert_path = "/etc/ssl/certs/mail.pem"
key_path = "/etc/ssl/private/mail.key"
[auth]
enabled = true
[rate_limit]
per_ip = 100 # Requests per hour per IP
per_user = 500 # Requests per hour per authenticated user
cleanup_interval = 3600 # Cleanup interval in seconds
[webhook]
enabled = false
url = "https://your-webhook-endpoint.com/email"
[antispam]
dnsbl = false # DNS-based blacklist checking
greylist = false # Greylisting for spam prevention
[observability]
tracing = false # OpenTelemetry tracing
service_name = "mail" # Service name for traces
json_logging = false # JSON format for log output
[dkim]
rotation_enabled = false
rotation_interval_days = 90
[sieve]
enabled = false
[dane]
enabled = false
[mta_sts]
enabled = false
[acme]
enabled = false
email = ""
[tls_rpt]
enabled = false
[arc]
enabled = false
[bimi]
enabled = false
[list_unsubscribe]
enabled = false
url_base = "https://mail.example.com/unsubscribe"
[autoconfig]
enabled = false
[managesieve]
enabled = false
port = 4190
[milter]
enabled = false
# Profile-specific overrides can be set via environment:
# SMTP_PROFILE=production (uses production defaults)
# SMTP_PROFILE=development (uses development defaults)
# SMTP_PROFILE=testing (uses testing defaults)