Browse Source

Fix issue with apache2 only + LE on mail domains

Jaap Marcus 4 years ago
parent
commit
78767df699
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/v-add-letsencrypt-domain

+ 1 - 1
bin/v-add-letsencrypt-domain

@@ -331,7 +331,7 @@ for auth in $authz; do
                     check_result $? "Proxy restart failed" > /dev/null
                 fi
             else  
-                get_object_value 'mail' 'DOMAIN' "$domain" "WEBMAIL" 
+                get_object_value 'mail' 'DOMAIN' "$root_domain" "WEBMAIL" 
                 if [ ! -z "$WEBMAIL" ]; then 
                     well_known="/var/lib/$WEBMAIL/.well-known"
                     acme_challenge="$well_known/acme-challenge"