Skip to content

Commit edf1b65

Browse files
committed
📩 update port forwarding for smtp, imap and pop
1 parent e025c89 commit edf1b65

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

Caddyfile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,25 @@ chroma.mrag.krajnc.cc {
1818

1919
# MAIL ->
2020

21-
# HTTP-01
21+
# HTTP site just for ACME
2222
mail.krajnc.cc {
23-
# This tells Caddy to obtain/renew the cert for mail.krajnc.cc
2423
tls admin@krajnc.cc
25-
26-
# We don’t need to actually serve a website here, so just 404 everything
2724
respond "Not Found" 404
2825
}
2926

30-
# IMAPS
27+
# IMAPS (port 993)
3128
mail.krajnc.cc:993 {
3229
tls admin@krajnc.cc
3330
reverse_proxy stalwart:993
3431
}
3532

36-
# POP3S
33+
# POP3S (port 995)
3734
mail.krajnc.cc:995 {
3835
tls admin@krajnc.cc
3936
reverse_proxy stalwart:995
4037
}
4138

42-
# SMTP Submission (STARTTLS)
39+
# SMTP Submission w/ STARTTLS
4340
mail.krajnc.cc:587 {
4441
tls admin@krajnc.cc
4542
reverse_proxy stalwart:587

docker-compose.prod.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,12 @@ services:
107107
image: stalwartlabs/stalwart:latest
108108
container_name: stalwart
109109
restart: unless-stopped
110+
expose:
111+
- "25" # SMTP
112+
- "587" # Submission (SMTP/TLS)
113+
- "993" # IMAPS
114+
- "995" # POP3S
110115
ports:
111-
- "25:25" # SMTP
112-
- "587:587" # Submission (SMTP/TLS)
113-
- "993:993" # IMAPS
114-
- "995:995" # POP3S
115116
- "8060:8080" # Admin GUI
116117
volumes:
117118
- stalwart_data:/data

0 commit comments

Comments
 (0)