From f99531acc3dc1ff9945db209619850abba8644cd Mon Sep 17 00:00:00 2001 From: j4n Date: Tue, 24 Feb 2026 12:07:12 +0100 Subject: [PATCH] docker: skip dns check when mail_domain is an ip and try the ci skip skip-checks:true --- docker/files/chatmail-init.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/files/chatmail-init.sh b/docker/files/chatmail-init.sh index 8cada556..2242c99d 100755 --- a/docker/files/chatmail-init.sh +++ b/docker/files/chatmail-init.sh @@ -58,7 +58,12 @@ else echo "[DEBUG] Listening ports before deploy:" ss -lptn | while IFS= read -r line; do echo " $line"; done export CMDEPLOY_STAGES="${CMDEPLOY_STAGES:-configure,activate}" - $CMDEPLOY run --config "$CHATMAIL_INI" --ssh-host @local + # Skip DNS check when MAIL_DOMAIN is a bare IP address + SKIP_DNS="" + if [[ "$MAIL_DOMAIN" =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]] || [[ "$MAIL_DOMAIN" =~ : ]]; then + SKIP_DNS="--skip-dns-check" + fi + $CMDEPLOY run --config "$CHATMAIL_INI" --ssh-host @local $SKIP_DNS echo "$current_fp" > "$FINGERPRINT_FILE" fi