use domain instead of @

This commit is contained in:
Fabian Thomas 2021-08-06 13:19:51 +02:00
parent 1835ea2eb6
commit 8d63310c5f

View File

@ -293,7 +293,7 @@ service ufw stop
pval="$(tr -d "\n" </etc/postfix/dkim/$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"
dmarcentry="_dmarc.$domain TXT v=DMARC1; p=reject; rua=mailto:dmarc@$domain; fo=1"
spfentry="@ TXT v=spf1 mx a:$maildomain -all"
spfentry="$domain TXT v=spf1 mx a:$maildomain -all"
useradd -m -G mail dmarc