summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2023-03-02 10:07:04 -0500
committerLuke Smith <luke@lukesmith.xyz>2023-03-02 10:07:04 -0500
commit4e7e87338535d2a347bb2a1a753f003eebbdc911 (patch)
treeb8ef35afcceeb81638a23c90003f67d6b36c27c1
parentaa63926c4ba50c8ac4cedf8e18f873323116504b (diff)
enable spamassassin cronjob
-rw-r--r--emailwiz.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/emailwiz.sh b/emailwiz.sh
index ef8d283..01257a6 100644
--- a/emailwiz.sh
+++ b/emailwiz.sh
@@ -307,6 +307,9 @@ enabled = true
[dovecot]
enabled = true" > /etc/fail2ban/jail.d/emailwiz.local
+# Enable SpamAssassin update cronjob.
+sed -i "s|^CRON=0|CRON=1|" /etc/default/spamassassin
+
for x in spamassassin opendkim dovecot postfix fail2ban; do
printf "Restarting %s..." "$x"
service "$x" restart && printf " ...done\\n"