Complete rewrite of mailinaboxctl with comprehensive features: Container Management: - install, check, update, status, logs, shell commands - Better prerequisite checking and Docker integration Email Account Management: - user-add/del/list/passwd for email accounts - alias-add/del/list for email aliases - Uses docker-mailserver setup command Domain & SSL: - domain-add/list for virtual domains - ssl-status/renew for certificate management - Let's Encrypt integration Backup & Restore: - Full backup with automatic container stop - Restore with confirmation prompt Diagnostics: - health: comprehensive health check - dns-check: verify MX, SPF, DMARC records - ports: check listening ports - config: show current configuration - test-email: send test message Updated configuration with: - Separate hostname and domain options - Feature flags for ClamAV, SpamAssassin, Fail2ban, POP3 - SSL type selection (letsencrypt, manual, self-signed) - Complete port mapping options Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
31 lines
834 B
Plaintext
31 lines
834 B
Plaintext
config mailinabox 'main'
|
|
option enabled '0'
|
|
option image 'ghcr.io/docker-mailserver/docker-mailserver:latest'
|
|
option data_path '/srv/mailserver'
|
|
|
|
# Domain configuration (MUST be configured before use)
|
|
option hostname 'mail.example.com'
|
|
option domain 'example.com'
|
|
option timezone 'UTC'
|
|
|
|
# Port mappings
|
|
option smtp_port '25'
|
|
option submission_port '587'
|
|
option submissions_port '465'
|
|
option imap_port '143'
|
|
option imaps_port '993'
|
|
option pop3_port '110'
|
|
option pop3s_port '995'
|
|
|
|
# Feature flags
|
|
option enable_pop3 '0'
|
|
option enable_clamav '0'
|
|
option enable_spamassassin '1'
|
|
option enable_fail2ban '1'
|
|
|
|
# SSL configuration
|
|
# Options: letsencrypt, manual, self-signed
|
|
option ssl_type 'letsencrypt'
|
|
# Email for Let's Encrypt notifications (optional but recommended)
|
|
#option letsencrypt_email 'admin@example.com'
|