summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-11-09 10:49:36 -0500
committerGitHub <noreply@github.com>2019-11-09 10:49:36 -0500
commit1f4b00646209cc558c39e4c026f25997161805a1 (patch)
tree70a493979f76a0d41a9bf98bad44b6cf855af12d
parentbe2b5313272731029e545f7550ea50b63ded909d (diff)
parentba71c3cfa8134cbdcc71f2ec09a368ff3d066dfc (diff)
Merge pull request #9 from majestrate/master
add SPF record generation
-rwxr-xr-xemailwiz.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index ff39ac2..e1bb1fb 100755
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -234,7 +234,10 @@ echo
echo
echo
printf "Record Name\\tRecord Type\\tText of entry\\n"
+# the DKIM record is this one
printf "%s._domainkey\\tTXT\\t\\tv=DKIM1; k=rsa; %s\\n" "$subdom" "$pval"
+# the SPF record is this one
+printf "%s\\tTXT\\t\\tv=spf1 mx a:%s -all\\n" "@" "$maildomain"
echo
echo
echo "$pval"