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

View File

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