commit f221fdb8936a7c9caf24b4672205574080cc2c00
parent c18053bdab242b0b9e9d42b570087183fb76b8c5
Author: Petar Yotsev <petar@yotsev.xyz>
Date: Sun, 19 Dec 2021 14:00:20 +0000
Add SPF record for secondary domains
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/mmv b/mmv
@@ -205,6 +205,7 @@ maindom="$(cat /etc/mail/maindom)"
mkdir /etc/mail/dns/$domain
echo "$domain. IN MX 0 $maindom." > /etc/mail/dns/$domain/mx &&
+echo "$domain. IN TXT \"v=spf1 mx -all\"" > /etc/mail/dns/$domain/spf &&
success "Wrote relevant dns records in /etc/mail/dns/$domain/" ||
failure "Failed to write relevant dns records in /etc/mail/dns/$domain/"