-
|
After upgrading from Debian bookworm to trixie + a reboot the docker-mailserver was unable to start. It reported inability to detect proper hostname. eth0 is visible from host server I have searched on google and on the documentation on some hints on how to solve this, without any luck. I was forced to do a rollback in a hurry to restore system services:
mail:
# Ref
# https://github.com/docker-mailserver/docker-mailserver/blob/master/CHANGELOG.md#1120
image: mailserver/docker-mailserver:15.1.0
hostname: ${HOSTNAME}
domainname: ${DOMAINNAME}
container_name: ${CONTAINER_NAME}
ports:
- "25:25"
- "143:143"
- "465:465" # ESMTP (implicit TLS)
- "587:587"
- "993:993"
volumes:
- /opt/mailserver/maildata:/var/mail
- /opt/mailserver/mailstate:/var/mail-state
- /opt/mailserver/maillogs:/var/log/mail
- /etc/localtime:/etc/localtime:ro
- ./config/:/tmp/docker-mailserver/${SELINUX_LABEL}
- /etc/letsencrypt/:/tmp/ssl:ro
environment:
- SSL_TYPE=manual
- SSL_CERT_PATH=/tmp/ssl/live/gioorgi.com/fullchain.pem
- SSL_KEY_PATH=/tmp/ssl/live/gioorgi.com/privkey.pem
env_file:
- .env
- mailserver.env
cap_add:
- NET_ADMIN
- SYS_PTRACE
restart: always
stop_grace_period: 1m
mem_limit: 800M
#cpu_percent: 40
healthcheck:
# Reference https://docs.docker.com/engine/reference/builder/#healthcheck
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
interval: 45s
timeout: 3s
retries: 2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
The related logic is here: docker-mailserver/target/scripts/startup/setup.d/networking.sh Lines 16 to 27 in 066d314 If this changed from your Debian host upgrade, you'll need to see what the container has for a network interface in Trixie, like this: # Will list each interface available to the container,
# ignore the loopback interface `lo` (`127.0.0.1`)
docker compose exec mail ip addr showIt's not DMS specific, this would change across any containers (just most containers won't need to know).
Our ENV docs page documents So you can set that to match the appropriate interface from the Please do respond back with what the new interface name is for the benefit of others in your situation 👍 Feedback about your
|
Beta Was this translation helpful? Give feedback.

I confirm the problem was caused by exim4 keeping port 25 busy. This in turn caused strange error on boot of docker mail.
The issue is that exim do not start until you reboot the machine: so the issue pop ups at first reboot.
Solution:
After upgrading to trixie, ensure exim4 is unistalled issue something with
sudo apt purge exim4 exim4-base exim4-config exim4-daemon-lightor fix the port conflict in some way.