Skip to content

Commit 093b7f9

Browse files
authored
fix(compose): add data-spool volume for Postfix mail queue and update documentation (fixes #652)
1 parent 7bf4fb3 commit 093b7f9

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

deploy/compose/mta.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ services:
1111
env_file: ../../.env
1212
volumes:
1313
- data-tls:/etc/postfix/tls:ro
14+
- data-spool:/var/spool/postfix
1415
# For using external certificates uncomment the following lines
1516
# and change the path on the left side of the colon.
1617
# - /home/user/certs/mail.example.com.crt:/etc/postfix/tls.crt:ro

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ volumes:
2929
data-tls:
3030
data-filter:
3131
data-redis:
32+
data-spool:

docs/development/architecture.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ volumes:
2525
data-tls: # TLS certificates and keys
2626
data-filter: # RSpamd filter data and statistics
2727
data-redis: # Redis cache and session data
28+
data-spool: # Postfix mail queue and spool directory
2829
```
2930
3031
### Volume Mounts by Service
@@ -36,6 +37,7 @@ volumes:
3637
#### Mail Transfer Agent (`mta`)
3738

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

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

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

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

0 commit comments

Comments
 (0)