summaryrefslogtreecommitdiff
path: root/emailwiz.sh
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-08-11 14:10:40 -0400
committerLuke Smith <luke@lukesmith.xyz>2023-08-11 14:10:40 -0400
commit5e81fdb738412ec6c8949394633f171727d0282e (patch)
treeefaa746fbc63a6980d62bc9f8db657f43d8c5c92 /emailwiz.sh
parentbcfa1b45ad9a568dda98de37262f867dd5528869 (diff)
ensure systemd backend for fail2ban
Diffstat (limited to 'emailwiz.sh')
-rw-r--r--emailwiz.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index 01ff194..7b00eae 100644
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -317,6 +317,8 @@ enabled = true
[dovecot]
enabled = true" > /etc/fail2ban/jail.d/emailwiz.local
+sed -i "s|^backend = auto$|backend = systemd|" /etc/fail2ban/jail.conf
+
# Enable SpamAssassin update cronjob.
sed -i "s|^CRON=0|CRON=1|" /etc/default/spamassassin