commit c18053bdab242b0b9e9d42b570087183fb76b8c5
parent 9f861cada475780127d3739298605d1abeded7d1
Author: Petar Yotsev <petar@yotsev.xyz>
Date: Sun, 19 Dec 2021 13:57:52 +0000
Fix bug: wrong domain for MX record
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mmv b/mmv
@@ -201,8 +201,10 @@ success "Adding domain $domain to existing setup"
# dns
#
+maindom="$(cat /etc/mail/maindom)"
+
mkdir /etc/mail/dns/$domain
-echo "$domain. IN MX 0 $maildom." > /etc/mail/dns/$domain/mx &&
+echo "$domain. IN MX 0 $maindom." > /etc/mail/dns/$domain/mx &&
success "Wrote relevant dns records in /etc/mail/dns/$domain/" ||
failure "Failed to write relevant dns records in /etc/mail/dns/$domain/"