disable ufw

This commit is contained in:
Luke Smith 2021-06-21 09:31:26 -04:00
parent e801955850
commit 0499eac5d2
No known key found for this signature in database
GPG Key ID: 4C50B54A911F6252
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,2 @@
custom: ["https://lukesmith.xyz/donate.html"]
github: lukesmithxyz
custom: ["https://lukesmith.xyz/donate", "https://paypal.me/lukemsmith", "https://lukesmith.xyz/crypto"]
patreon: lukesmith

View File

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