Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions deploy/compose/mta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ services:
env_file: ../../.env
volumes:
- data-tls:/etc/postfix/tls:ro
- data-spool:/var/spool/postfix
# For using external certificates uncomment the following lines
# and change the path on the left side of the colon.
# - /home/user/certs/mail.example.com.crt:/etc/postfix/tls.crt:ro
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ volumes:
data-tls:
data-filter:
data-redis:
data-spool:
3 changes: 3 additions & 0 deletions docs/development/architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ volumes:
data-tls: # TLS certificates and keys
data-filter: # RSpamd filter data and statistics
data-redis: # Redis cache and session data
data-spool: # Postfix mail queue and spool directory
```

### Volume Mounts by Service
Expand All @@ -36,6 +37,7 @@ volumes:
#### Mail Transfer Agent (`mta`)

- **`data-tls:/etc/postfix/tls:ro`** - Read-only access to TLS certificates for SMTP encryption
- **`data-spool:/var/spool/postfix`** - Postfix mail queue and spool directory for message processing

#### Mail Delivery Agent (`mda`)

Expand All @@ -61,5 +63,6 @@ volumes:
- **`data-tls`**: Required for maintaining SSL/TLS certificates and encryption keys
- **`data-filter`**: Important for spam filter learning and statistics accumulation
- **`data-redis`**: Used for session management and temporary data caching
- **`data-spool`**: Stores Postfix mail queue and spool data, ensuring message processing continuity across restarts

These volumes ensure that your mail server data survives container updates, restarts, and even complete system reboots, making the deployment production-ready and reliable.