mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Fixing missing mail._domainkey when adding domain
Closing issue https://github.com/serghey-rodin/vesta/issues/990
This commit is contained in:
parent
e9ca075dd7
commit
8bfe11b86d
1 changed files with 3 additions and 0 deletions
|
@ -125,6 +125,9 @@ if [ ! -z "$DNS_SYSTEM" ] && [ "$dkim" = 'yes' ]; then
|
|||
policy="\"t=y; o=~;\""
|
||||
$BIN/v-add-dns-record $user $domain $record TXT "$policy"
|
||||
|
||||
# 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
|
||||
sleep 1
|
||||
|
||||
record='mail._domainkey'
|
||||
selector="\"k=rsa\; p=$p\""
|
||||
$BIN/v-add-dns-record $user $domain $record TXT "$selector"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue