Skip to content

Commit 8bfe11b

Browse files
authored
Fixing missing mail._domainkey when adding domain
Closing issue outroll/vesta#990
1 parent e9ca075 commit 8bfe11b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/v-add-mail-domain

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ if [ ! -z "$DNS_SYSTEM" ] && [ "$dkim" = 'yes' ]; then
125125
policy="\"t=y; o=~;\""
126126
$BIN/v-add-dns-record $user $domain $record TXT "$policy"
127127

128+
# Wait one second to avoid editing bind zone in the same unixtime second, because bind will not reload zone if new and last modification occur in the same unixtime second
129+
sleep 1
130+
128131
record='mail._domainkey'
129132
selector="\"k=rsa\; p=$p\""
130133
$BIN/v-add-dns-record $user $domain $record TXT "$selector"

0 commit comments

Comments
 (0)