From d8ae31fcf3ede6c9cb9ba7d83ceae7e90208607d Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 8 Jun 2019 11:02:44 -0400 Subject: [PATCH 1/3] generate spf record --- emailwiz.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emailwiz.sh b/emailwiz.sh index f4763c2..d9c9c65 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -207,9 +207,13 @@ 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\\tTXT\\t\\tv=spf1 mx a:%s -all\\n" "@" "$maildomain" echo echo echo "$pval" + From 8a50caca80c715005f86afd7bac97e4cb759c3b5 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 8 Jun 2019 11:03:57 -0400 Subject: [PATCH 2/3] remove whitespace --- emailwiz.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/emailwiz.sh b/emailwiz.sh index d9c9c65..3938f9a 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -216,4 +216,3 @@ echo echo "$pval" - From ba71c3cfa8134cbdcc71f2ec09a368ff3d066dfc Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Sat, 8 Jun 2019 11:05:45 -0400 Subject: [PATCH 3/3] correct formatting --- emailwiz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emailwiz.sh b/emailwiz.sh index 3938f9a..cd6440a 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -210,7 +210,7 @@ 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\\tTXT\\t\\tv=spf1 mx a:%s -all\\n" "@" "$maildomain" +printf "%s\\tTXT\\t\\tv=spf1 mx a:%s -all\\n" "@" "$maildomain" echo echo echo "$pval"