Skip to content

Commit 82252b3

Browse files
author
Kristan Kenney
committed
Rebuild webmail configuration with mail domains
1 parent 0095433 commit 82252b3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/v-rebuild-mail-domains

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ fi
5353
# Starting loop
5454
for domain in $(search_objects 'mail' 'SUSPENDED' "*" 'DOMAIN'); do
5555
rebuild_mail_domain_conf
56+
if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
57+
$BIN/v-delete-webmail $1 $domain 'no'
58+
$BIN/v-add-webmail $1 $domain 'yes'
59+
sleep 0.5
60+
fi
5661
done
5762

5863

0 commit comments

Comments
 (0)