|
|
@@ -283,6 +283,9 @@ for x in spamassassin opendkim dovecot postfix; do |
|
|
|
service "$x" restart && printf " ...done\\n" |
|
|
|
done |
|
|
|
|
|
|
|
service ufw disable |
|
|
|
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" |
|
|
|