-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
267 lines (240 loc) · 19.5 KB
/
.env.example
File metadata and controls
267 lines (240 loc) · 19.5 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# =============================================================================
# CS-ClusterMTA - Mail Server Configuration
# =============================================================================
# Documentation: https://poste.io/doc/
# Poste.io FAQ: https://poste.io/doc/faq
# =============================================================================
#
# Quick Start:
# 1. Copy this file: cp .env.example .env
# 2. Edit hostname: nano .env
# 3. Start server: ./clustermta.sh start
# 4. Access admin: https://<hostname>/admin/
#
# Alternatively, run setup.sh which auto-generates .env with detected values
#
# =============================================================================
# -----------------------------------------------------------------------------
# STACK IDENTIFICATION
# -----------------------------------------------------------------------------
# Unique stack name for container and volume naming
# Use lowercase, no special characters except underscore
# Examples: mx1_example_com, mail_company_org
STACK_NAME=mx1_simply_send_com
# -----------------------------------------------------------------------------
# POSTE.IO IMAGE
# -----------------------------------------------------------------------------
# Official images:
# - analogic/poste.io (free version)
# - analogic/poste.io:full (with Haraka high-performance queue)
#
# Available versions: https://hub.docker.com/r/analogic/poste.io/tags
# Docker image repository
POSTEIO_REPOSITORY=analogic/poste.io
# Poste.io version (check Docker Hub for latest)
POSTEIO_VERSION=2.5.8
# -----------------------------------------------------------------------------
# GENERAL SETTINGS
# -----------------------------------------------------------------------------
# Timezone (auto-detected by setup.sh)
# List: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TIME_ZONE=Etc/UTC
# Mail server hostname
# IMPORTANT: This must match your DNS MX record!
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ HOSTNAME REQUIREMENTS │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ 1. Must have A/AAAA DNS record pointing to this server │
# │ 2. Must be the same as MX record target │
# │ 3. PTR (reverse DNS) must resolve back to this hostname │
# │ 4. Used for SSL certificate generation (Let's Encrypt) │
# └─────────────────────────────────────────────────────────────────────────────┘
SERVICE_HOSTNAME=mx1.simply-send.com
# HTTPS Mode
# ┌──────────┬────────────────────────────────────────────────────────────────┐
# │ Value │ Description │
# ├──────────┼────────────────────────────────────────────────────────────────┤
# │ ON │ Let's Encrypt automatic certificates (default) │
# │ OFF │ Self-signed certificates (for testing or behind proxy) │
# └──────────┴────────────────────────────────────────────────────────────────┘
HTTPS_MODE=ON
# -----------------------------------------------------------------------------
# SERVICE MODULES
# -----------------------------------------------------------------------------
# Enable or disable optional services
#
# ┌───────────────────┬────────────────┬──────────────────────────────────────┐
# │ Variable │ Default │ Description │
# ├───────────────────┼────────────────┼──────────────────────────────────────┤
# │ DISABLE_CLAMAV │ FALSE │ Antivirus scanning │
# │ │ │ TRUE saves ~1GB RAM │
# ├───────────────────┼────────────────┼──────────────────────────────────────┤
# │ DISABLE_RSPAMD │ FALSE │ Spam filtering with Rspamd │
# │ │ │ Includes DKIM signing │
# ├───────────────────┼────────────────┼──────────────────────────────────────┤
# │ DISABLE_ROUNDCUBE │ FALSE │ Roundcube webmail interface │
# │ │ │ Can use external webmail client │
# └───────────────────┴────────────────┴──────────────────────────────────────┘
#
# Memory requirements (approximate):
# Base system: ~500 MB
# ClamAV: ~1.0 GB (virus definitions)
# Rspamd: ~200 MB
# Roundcube: ~100 MB
# Total: ~1.8 GB (all enabled)
# ClamAV Antivirus (TRUE=disabled, FALSE=enabled)
# Disable on low-memory servers (<2GB RAM)
DISABLE_CLAMAV=FALSE
# Rspamd Spam Filter (TRUE=disabled, FALSE=enabled)
# Required for DKIM signing!
DISABLE_RSPAMD=FALSE
# Roundcube Webmail (TRUE=disabled, FALSE=enabled)
# Disable if using external webmail client
DISABLE_ROUNDCUBE=FALSE
# =============================================================================
# DNS CONFIGURATION (simply-send.com)
# =============================================================================
#
# Complete DNS zone for the default configuration (simply-send.com):
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ A/AAAA RECORDS (Host IP addresses) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ simply-send.com. 3600 IN A 116.202.101.48 │
# │ simply-send.com. 3600 IN AAAA 2a01:4f8:c012:754d::1 │
# │ mx1.simply-send.com. 3600 IN A 116.202.101.48 │
# │ mx1.simply-send.com. 3600 IN AAAA 2a01:4f8:c012:754d::1 │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ MX RECORD (Mail routing) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ simply-send.com. 3600 IN MX 10 mx1.simply-send.com. │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ CNAME RECORDS (Aliases) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ mx.simply-send.com. 3600 IN CNAME mx1.simply-send.com. │
# │ www.simply-send.com. 3600 IN CNAME simply-send.com. │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ SPF RECORD (Sender Policy Framework) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ simply-send.com. 3600 IN TXT "v=spf1 redirect=_spf.simply-send.com" │
# │ _spf.simply-send.com. 3600 IN TXT "v=spf1 mx ip4:116.202.101.48 │
# │ ip6:2a01:4f8:c012:754d::/64 -all" │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ DKIM RECORD (DomainKeys Identified Mail) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ s20260125000._domainkey.simply-send.com. 3600 IN TXT "k=rsa; p=..." │
# │ _adsp._domainkey.simply-send.com. 3600 IN TXT "dkim=all" │
# │ │
# │ Note: DKIM key is generated by Poste.io - copy from admin panel │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ DMARC RECORD (Domain-based Message Authentication) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ _dmarc.simply-send.com. 3600 IN TXT "v=DMARC1; p=reject; pct=100; │
# │ sp=none; adkim=r; aspf=r" │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ CAA RECORDS (Certificate Authority Authorization) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ simply-send.com. 3600 IN CAA 0 issue "letsencrypt.org" │
# │ simply-send.com. 3600 IN CAA 0 issuewild "letsencrypt.org" │
# │ simply-send.com. 3600 IN CAA 0 iodef "mailto:abuse@bauer-group.com" │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# ┌─────────────────────────────────────────────────────────────────────────────┐
# │ PTR RECORD (Reverse DNS - configure at hosting provider) │
# ├─────────────────────────────────────────────────────────────────────────────┤
# │ 116.202.101.48 → mx1.simply-send.com │
# │ 2a01:4f8:c012:754d::1 → mx1.simply-send.com │
# └─────────────────────────────────────────────────────────────────────────────┘
#
# See README.md for detailed DNS documentation
#
# =============================================================================
# -----------------------------------------------------------------------------
# CUSTOM PORTS (Optional)
# -----------------------------------------------------------------------------
# Override default HTTP/HTTPS ports
# Use when running behind a reverse proxy like Traefik
#
# ┌─────────────┬─────────┬────────────────────────────────────────────────────┐
# │ Variable │ Default │ Description │
# ├─────────────┼─────────┼────────────────────────────────────────────────────┤
# │ HTTP_PORT │ 80 │ HTTP port for web interface and ACME challenges │
# │ HTTPS_PORT │ 443 │ HTTPS port for secure web interface │
# └─────────────┴─────────┴────────────────────────────────────────────────────┘
#
# Example for Traefik integration (avoid port conflict):
# HTTP_PORT=8080
# HTTPS_PORT=8443
# -----------------------------------------------------------------------------
# MULTI-IP SUPPORT (Optional)
# -----------------------------------------------------------------------------
# Control which IP addresses the mail server listens on and sends from.
# Useful for multi-homed servers or running multiple instances.
#
# ┌──────────┬───────────────────────────────────────────────────────────────┐
# │ Value │ Description │
# ├──────────┼───────────────────────────────────────────────────────────────┤
# │ * │ Listen on all interfaces (default, standard Poste.io) │
# │ host │ Listen only on hostname's resolved IPs │
# │ 1.2.3.4 │ Listen on specific IP address │
# │ 1.2 5.6 │ Listen on multiple IPs (space-separated) │
# └──────────┴───────────────────────────────────────────────────────────────┘
#
# LISTEN_ON: Which IPs to accept incoming connections on
# SEND_ON: Which IP to use for outgoing mail (defaults to first LISTEN_ON)
#
# Examples:
# LISTEN_ON=* # All interfaces (default)
# LISTEN_ON=116.202.101.48 # Single IPv4
# LISTEN_ON="116.202.101.48 2a01:4f8:c012:754d::1" # IPv4 + IPv6
#
# LISTEN_ON=*
# SEND_ON=
# =============================================================================
# TRAEFIK INTEGRATION (Optional)
# =============================================================================
#
# For environments using Traefik as reverse proxy, see:
# config/traefik/mail-server.yml
#
# Configuration for Traefik mode:
# 1. Set custom ports to avoid conflict:
# HTTP_PORT=8080
# HTTPS_PORT=8443
#
# 2. Copy Traefik config:
# cp config/traefik/mail-server.yml /path/to/traefik/config/
#
# 3. Adjust hostname in mail-server.yml
#
# Traefik routes:
# - https://mail.example.com → mail-server:8443
#
# =============================================================================
# =============================================================================
# MANAGEMENT COMMANDS
# =============================================================================
#
# Start: ./clustermta.sh start
# Stop: ./clustermta.sh stop
# Restart: ./clustermta.sh restart
# Status: ./clustermta.sh status
# Logs: ./clustermta.sh logs
# Backup: ./clustermta.sh backup (stack must be running)
# Restore: ./clustermta.sh restore (stack must be stopped)
# Update: ./clustermta.sh update (pull latest and rebuild)
# Destroy: ./clustermta.sh destroy (remove containers and volumes)
#
# =============================================================================