We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4513c3a commit fdbe522Copy full SHA for fdbe522
func/rebuild.sh
@@ -549,6 +549,14 @@ rebuild_mail_domain_conf() {
549
chown $user:mail $HOMEDIR/$user/mail/$domain_idn
550
fi
551
552
+ # Add missing SSL configuration flags to existing domains
553
+ # for per-domain SSL migration
554
+
555
+ sslcheck=$(grep "DOMAIN='$domain'" $USER_DATA/mail.conf | grep SSL)
556
+ if [ -z "$sslcheck" ]; then
557
+ sed -i "s|$domain'|$domain' SSL='no' LETSENCRYPT='no'|g" $USER_DATA/mail.conf
558
+ fi
559
560
# Remove and recreate SSL configuration
561
if [ -f "$HOMEDIR/$user/conf/mail/$domain/ssl/$domain.crt" ]; then
562
del_mail_ssl_config
0 commit comments