From e547d16a73f091e7c6a338fad3e3d4be241c6377 Mon Sep 17 00:00:00 2001 From: j4n Date: Wed, 25 Feb 2026 17:50:55 +0100 Subject: [PATCH] docker/chatmail-init.sh: disable port check its more hassle than its worth --- docker/chatmail-init.sh | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docker/chatmail-init.sh b/docker/chatmail-init.sh index e5c9b649..ed94fe82 100755 --- a/docker/chatmail-init.sh +++ b/docker/chatmail-init.sh @@ -3,6 +3,7 @@ set -euo pipefail export CHATMAIL_INI="${CHATMAIL_INI:-/etc/chatmail/chatmail.ini}" export CHATMAIL_NOSYSCTL=True +export CHATMAIL_NOPORTCHECK=True CMDEPLOY=/opt/cmdeploy/bin/cmdeploy @@ -63,17 +64,6 @@ if [ -z "${CMDEPLOY_STAGES:-}" ] \ && [ "$(cat "$FINGERPRINT_FILE")" = "$current_fp" ]; then echo "[INFO] No changes detected ($current_fp), skipping deploy." else - # Stop chatmail services so the port check sees a clean state as - # ss -p inside Docker can't identify processes, causing false - # "port occupied" failures - echo "[INFO] Stopping services for clean port check..." - systemctl stop postfix dovecot nginx opendkim unbound \ - filtermail doveauth chatmail-metadata iroh-relay mtail fcgiwrap 2>/dev/null || true - -# # Show listening ports before deploy (diagnostic for port-check failures) -# echo "[DEBUG] Listening ports before deploy:" -# ss -lptn | while IFS= read -r line; do echo " $line"; done - export CMDEPLOY_STAGES="${CMDEPLOY_STAGES:-configure,activate}" # Skip DNS check when MAIL_DOMAIN is a bare IP address