Configuration variables
| Variable | Default | Description |
|---|---|---|
| ZINQ_EDITION | community | community, free, or cloud |
| ZINQ_DB_PATH | ./data/zinq.db | Path to SQLite database file |
| ZINQ_BLOB_DIR | ./data/blobs | Local directory for .eml and attachments |
| ZINQ_JWT_SECRET | auto-generated | HS256 secret for webmail sessions |
| ZINQ_MAIL_HOSTNAME | mail.<domain> | EHLO/banner hostname for SMTP and IMAP |
| ZINQ_SERVER_IP | YOUR_SERVER_IP | Public IPv4 shown in DNS setup helper |
| TRUSTED_PROXY_COUNT | 0 | Trusted reverse proxy hops for client IP extraction |
| ZINQ_ALLOW_SIGNUP | false | Allow open registration after first owner exists |
Outbound mail & object storage
Configure Mailgun HTTP API (recommended for cloud VMs) or an SMTP relay, plus optional Backblaze B2 storage (US or EU) for attachment blobs.
.env.production
MAILGUN_API_KEY=key-xxxxxxxxxxxxxxxxxxxx
MAILGUN_DOMAIN=mg.yourdomain.com
MAILGUN_WEBHOOK_SIGNING_KEY=whsec_xxxxxxxxxxxx