strip mail. from domain when calling vmail-dovecot-enable.sh

This commit is contained in:
Matthew Saunders Brown 2024-01-29 15:32:17 -08:00
parent 92af4b365b
commit fba36f1276
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ if [[ -d /var/tmp/letsencrypt/ ]]; then
if [[ "$domain" =~ ^mail.* ]]; then
vmaildomain="${domain/mail./}"
if [[ -d /var/vmail/$vmaildomain ]]; then
/usr/local/bin/vmail-dovecot-enable.sh -d $domain
/usr/local/bin/vmail-dovecot-enable.sh -d $vmaildomain
/usr/local/bin/vhost-enable.sh -d $domain -m VMailHTTPS
fi
elif [[ -d /srv/www/$domain ]]; then