Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:stalwart [2025/02/13 14:52] – willy | services:stalwart [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Stalwart Mail Server ====== | ||
- | |||
- | **work in progress** | ||
- | |||
- | [[https:// | ||
- | |||
- | It's a modern emal server writte in Rust. | ||
- | |||
- | ===== Installation ===== | ||
- | |||
- | <code bash> | ||
- | seradd -m -d / | ||
- | mkdir / | ||
- | chown stalwart: | ||
- | </ | ||
- | |||
- | <file - docker-compose.yml> | ||
- | name: stalwart | ||
- | services: | ||
- | mail-server: | ||
- | tty: true | ||
- | stdin_open: true | ||
- | ports: | ||
- | - 2443:443 | ||
- | - 10025:125 # port 25 seems to create troubles in podman... | ||
- | - 2080:8080 | ||
- | - 2587:587 | ||
- | - 2465:465 | ||
- | - 2143:143 | ||
- | - 2993:993 | ||
- | - 4190:4190 | ||
- | - 2110:110 | ||
- | - 2995:995 | ||
- | volumes: | ||
- | - / | ||
- | container_name: | ||
- | image: stalwartlabs/ | ||
- | networks: | ||
- | - stalwart-net | ||
- | |||
- | networks: | ||
- | stalwart-net: | ||
- | </ | ||
- | |||
- | Note that i have used all ports above 1024 to avoid issues with root-only ports in rootless containers. | ||
- | |||
- | <code bash> | ||
- | podman compose pull | ||
- | podman compose up | ||
- | </ | ||
- | |||
- | Note your admin usernamne and password like: | ||
- | < | ||
- | [mail-server] | 🔑 Your administrator account is ' | ||
- | </ | ||
- | |||
- | Change the SMTP port to //125// to match the above compose file | ||
- | |||
- | |||
- | ===== Configuration ===== | ||
- | |||
- | From the web UI. | ||
- | |||
- | Set hostname to your main email server. | ||
- | |||
- | Create domain. | ||
- | |||
- | Configure DNS properly | ||
- | |||
- | Create account. | ||
- | |||
- | Open ports from remote to local: | ||
- | <code bash> | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | nft add rule wg prerouting iifname " | ||
- | </ | ||
- | |||
- | Link certificates. Create a certificate in GUI with these values: | ||
- | < | ||
- | %{file:/ | ||
- | %{file:/ | ||
- | </ | ||
- | and **copy** the certs from / | ||
- | (create folder and make files readable!) | ||
- | |||
- | |||
- | |||
- | |||