From 87563249f1310c2cfc738ff359e8dd23e4d3c65f Mon Sep 17 00:00:00 2001 From: Carlos Lapao Date: Sat, 7 Feb 2026 13:02:55 +0000 Subject: [PATCH] Add DNS-01 challenge variables to update migration for existing instances Existing mailcow installations were Not receiving the ACME_DNS_CHALLENGE, ACME_DNS_PROVIDER, and ACME_ACCOUNT_EMAIL options when running update.sh, as they were only defined in generate_config.sh for new installations. --- _modules/scripts/new_options.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/_modules/scripts/new_options.sh b/_modules/scripts/new_options.sh index 30c747b7..06448c88 100644 --- a/_modules/scripts/new_options.sh +++ b/_modules/scripts/new_options.sh @@ -57,6 +57,9 @@ adapt_new_options() { "DISABLE_NETFILTER_ISOLATION_RULE" "HTTP_REDIRECT" "ENABLE_IPV6" + "ACME_DNS_CHALLENGE" + "ACME_DNS_PROVIDER" + "ACME_ACCOUNT_EMAIL" ) sed -i --follow-symlinks '$a\' mailcow.conf @@ -292,6 +295,20 @@ adapt_new_options() { echo '# This key is used to encrypt email addresses within SOGo URLs' >> mailcow.conf echo "SOGO_URL_ENCRYPTION_KEY=$(LC_ALL=C /dev/null | head -c 16)" >> mailcow.conf ;; + ACME_DNS_CHALLENGE) + echo '# Enable DNS-01 challenge for ACME (acme-mailcow) - y/n' >> mailcow.conf + echo '# This requires you to set ACME_DNS_PROVIDER and ACME_ACCOUNT_EMAIL below' >> mailcow.conf + echo 'ACME_DNS_CHALLENGE=n' >> mailcow.conf + ;; + ACME_DNS_PROVIDER) + echo '# DNS provider for DNS-01 challenge (e.g. dns_cf, dns_azure, dns_gd, etc.)' >> mailcow.conf + echo '# See the dns-101 provider documentation for more information.' >> mailcow.conf + echo 'ACME_DNS_PROVIDER=dns_xxx' >> mailcow.conf + ;; + ACME_ACCOUNT_EMAIL) + echo '# Account email for ACME DNS-01 challenge registration' >> mailcow.conf + echo 'ACME_ACCOUNT_EMAIL=me@example.com' >> mailcow.conf + ;; *) echo "${option}=" >> mailcow.conf ;;