Browse Source

Update emailwiz.sh

pull/308/head
tfasano1 11 months ago
committed by GitHub
parent
commit
0aa7a8df38
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      emailwiz.sh

+ 1
- 1
emailwiz.sh View File

@@ -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"


Loading…
Cancel
Save