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