commit 51a885bbeff24a29b4758a6fae07429af7902fb4
parent feb1dea6559334d70f2d8cb071346fcf9bd36d61
Author: Petar Yotsev <petar@yotsev.xyz>
Date: Tue, 14 Dec 2021 11:24:24 +0000
Fix bug: DNS directory is not created on first use
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mmv b/mmv
@@ -155,7 +155,7 @@ success "Configured rspamd"
[ $firstuse = "true" ] &&
pub_key=$(grep -v -e "---" /etc/mail/dkim/public.key | tr -d '\n' ) &&
-mkdir -p /etc/mail/dns &&
+mkdir -p /etc/mail/dns/$domain &&
echo "mail._domainkey.$domain. IN TXT \"v=DKIM1;k=rsa;p=$pub_key\"" > /etc/mail/dns/$domain/dkim &&
echo "$domain. IN TXT \"v=spf1 mx -all\"" > /etc/mail/dns/$domain/spf &&
echo "_dmarc.$domain. IN TXT