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 763c4aa commit fbf2fc3Copy full SHA for fbf2fc3
bin/v-rebuild-mail-domains
@@ -61,8 +61,12 @@ for domain in $(search_objects 'mail' 'SUSPENDED' "*" 'DOMAIN'); do
61
rebuild_mail_domain_conf
62
if [ ! -z "$WEB_SYSTEM" ] || [ ! -z "$PROXY_SYSTEM" ]; then
63
if [ ! -z "$IMAP_SYSTEM" ]; then
64
+ WEBMAIL=$(get_object_value 'web' 'DOMAIN' "$domain" "$WEBMAIL")
65
$BIN/v-delete-sys-webmail $user $domain '' 'yes'
- $BIN/v-add-sys-webmail $user $domain '' 'yes'
66
+ $BIN/v-add-sys-webmail $user $domain $WEBMAIL '' 'yes'
67
+ if [ $? -ne 0 ]; then
68
+ $BIN/v-add-sys-webmail $user $domain '' '' 'yes'
69
+ fi
70
fi
71
72
done
0 commit comments