From 1292dce11e6cf9f863094c7b180bf9b438014a5a Mon Sep 17 00:00:00 2001 From: "github@kiekerjan.isdronken.nl" Date: Wed, 21 Apr 2021 22:42:10 +0200 Subject: [PATCH] merge from 1804 version --- conf/fail2ban/jails.conf | 4 ++++ management/daily_tasks.sh | 2 ++ setup/additionals.sh | 3 +++ 3 files changed, 9 insertions(+) diff --git a/conf/fail2ban/jails.conf b/conf/fail2ban/jails.conf index 0cf96751..b2faf27a 100644 --- a/conf/fail2ban/jails.conf +++ b/conf/fail2ban/jails.conf @@ -76,6 +76,10 @@ action = iptables-allports[name=recidive] [postfix-sasl] enabled = true +findtime = 7d + +[postfix] +enabled = true [sshd] enabled = true diff --git a/management/daily_tasks.sh b/management/daily_tasks.sh index db496399..8c36da5c 100755 --- a/management/daily_tasks.sh +++ b/management/daily_tasks.sh @@ -13,6 +13,8 @@ export LC_TYPE=en_US.UTF-8 # sent and received so the admin might notice server abuse. if [ `date "+%u"` -eq 1 ]; then management/mail_log.py -t week | management/email_administrator.py "Mail-in-a-Box Usage Report" + + pflogsumm -u 5 -h 5 --problems_first /var/log/mail.log.1 | management/email_administrator.py "Postfix log analysis summary" fi # Take a backup. diff --git a/setup/additionals.sh b/setup/additionals.sh index 701672af..cdd13134 100644 --- a/setup/additionals.sh +++ b/setup/additionals.sh @@ -1,6 +1,9 @@ source /etc/mailinabox.conf source setup/functions.sh +# Add additional packages +apt_install pflogsumm + # Cleanup old spam and trash email hide_output install -m 755 conf/cron/miab_clean_mail /etc/cron.weekly/