Skip to content

Commit 01293af

Browse files
author
Kristan Kenney
committed
Update mail domain routines
1 parent 68f3161 commit 01293af

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

func/domain.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -629,6 +629,10 @@ add_mail_ssl_config() {
629629

630630
# Delete SSL support for mail domain
631631
del_mail_ssl_config() {
632+
633+
# Remove old mail certificates
634+
rm -f $HOMEDIR/$user/conf/mail/$domain/ssl/*
635+
632636
# Remove dovecot configuration
633637
rm -f /etc/dovecot/conf.d/domains/mail.$domain.conf
634638

func/rebuild.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,7 @@ rebuild_mail_domain_conf() {
498498

499499
# Remove and recreate SSL configuration
500500
if [ "$SSL" = 'yes' ]; then
501+
del_mail_ssl_config
501502
add_mail_ssl_config
502503

503504
# Update counters

0 commit comments

Comments
 (0)