diff options
author | tfasano1 <54379134+tfasano1@users.noreply.github.com> | 2024-01-17 02:25:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 02:25:46 -0500 |
commit | 0aa7a8df389ea4474f5cd97c6604133c5222edf1 (patch) | |
tree | fc3b9dbb17bedaa210c434fe4d33ec1245b16b08 /emailwiz.sh | |
parent | e4ae00cd69e2651c03139487723173a0b0c9abde (diff) |
Update emailwiz.sh
Diffstat (limited to 'emailwiz.sh')
-rw-r--r-- | emailwiz.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/emailwiz.sh b/emailwiz.sh index 98151fd..3b1ee89 100644 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -349,7 +349,7 @@ done # In some cases, big name email services favor an spf record with certain mechanisms included. # See http://www.open-spf.org/SPF_Record_Syntax -mailip=ip4:$(ping -c 1 $domain | grep -m1 -Eo '([0-9]+\.){3}[0-9]+') +mailip=$(ping -c 1 $domain | grep -m1 -Eo '([0-9]+\.){3}[0-9]+') pval="$(tr -d '\n' <"/etc/postfix/dkim/$domain/$subdom.txt" | sed "s/k=rsa.* \"p=/k=rsa; p=/;s/\"\s*\"//;s/\"\s*).*//" | grep -o 'p=.*')" dkimentry="$subdom._domainkey.$domain TXT v=DKIM1; k=rsa; $pval" |