-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
37 lines (33 loc) · 1.36 KB
/
.env.example
File metadata and controls
37 lines (33 loc) · 1.36 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
# ============================================================
# Mail Service (SMTP + REST API)
# ============================================================
MONGO_URL=mongodb://mongodb:27017
DB_NAME=mailserver
JWT_SECRET=your-strong-jwt-secret-here
API_KEY=your-api-key-here
SMTP_HOSTNAME=mail.yourdomain.com
DOMAINS=yourdomain.com
API_PORT=8080
SMTP_PORT=25
MESSAGE_TTL_DAYS=3
# TLS / STARTTLS (optional - mount certs in docker-compose.yml)
# SMTP_TLS_CERT=/certs/fullchain.pem
# SMTP_TLS_KEY=/certs/privkey.pem
# ============================================================
# Mail Viewer (Web UI)
# ============================================================
ENVIRONMENT=production
DUCKMAIL_API_KEY=same-as-API_KEY-above
ACCESS_PASSWORD=your-viewer-login-password
SECRET_KEY=random-flask-session-secret
UNIFIED_PASSWORD=shared-mailbox-password
MAX_IMAGE_PROXY_BYTES=5242880
# ============================================================
# Resend (Optional - for sending emails)
# ============================================================
# RESEND_API_KEY=re_xxxxx
# ============================================================
# IMAP Server (Optional - for desktop/mobile mail clients)
# ============================================================
# IMAP_CERTS_PATH=/etc/letsencrypt/live/mail.yourdomain.com
# Or use a local certs/ directory with fullchain.pem + privkey.pem