summaryrefslogtreecommitdiff
path: root/emailwiz.sh
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-06-21 09:31:26 -0400
committerLuke Smith <luke@lukesmith.xyz>2021-06-21 09:31:26 -0400
commit0499eac5d2750ad5dd08fd6cb97ab1f5c9ec85ec (patch)
tree97074661e123c8107ed90c4c559f6bd1d173c44c /emailwiz.sh
parente8019558504c0ca39f7f29f7f1eea0d7b8dc276e (diff)
disable ufw
Diffstat (limited to 'emailwiz.sh')
-rwxr-xr-xemailwiz.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 7cf5725..41bee56 100755
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -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"