fix(mailserver): : add extra_hosts to prevent IMAP connections from closing

This commit is contained in:
2026-03-24 05:37:50 +08:00
parent bafefc812d
commit d2da0d167e

View File

@@ -2,6 +2,8 @@ services:
mailserver:
image: analogic/poste.io:latest
hostname: ${MAIL_HOSTNAME}
extra_hosts:
- "${MAIL_HOSTNAME}:127.0.0.1"
restart: always
ports:
- "25:25"
@@ -30,6 +32,8 @@ services:
caddy:
image: caddy:latest
restart: always
env_file:
- .env
ports:
- "80:80"
- "443:443"