From 6b2e165f0ddbca746944bfc4ad85d39ad3d13e2c Mon Sep 17 00:00:00 2001 From: AiutoPcAmico <98831402+AiutoPcAmico@users.noreply.github.com> Date: Fri, 29 Dec 2023 09:41:44 +0100 Subject: [PATCH] - Added disable greylist functions - removed bootstrap script, I don't need because cloning repository - Changed default mail-in-a-box homepage --- README.md | 3 ++- conf/fail2ban/jails.conf | 28 ++++++++++++------------- conf/www_default.html | 45 ++++++++++++++++++++++++++++++++-------- setup/bootstrap.sh | 0 setup/functions.sh | 36 +++++++++++++++++++++++++------- setup/mail-postfix.sh | 9 ++++++++ setup/questions.sh | 35 ++++++++++++++++++++++++------- setup/start.sh | 1 + 8 files changed, 118 insertions(+), 39 deletions(-) delete mode 100644 setup/bootstrap.sh diff --git a/README.md b/README.md index c46ee6fa..34b7681d 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,9 @@ Upstream current implemented version: *v67* (v67-AiutoPcAmico) - At the moment, OwnCloud is disabled, because it not supports php8.2 - Updated php to version 8.2 - Changed SMTP server sign +- more restrictive Fail2Ban configuration +- ask the user if he wants to disable the graylist ## Future implementation -- ask the user if he wants to disable the graylist - Changing the default index page more easily diff --git a/conf/fail2ban/jails.conf b/conf/fail2ban/jails.conf index 5ad4c341..73534651 100644 --- a/conf/fail2ban/jails.conf +++ b/conf/fail2ban/jails.conf @@ -11,24 +11,24 @@ ignoreip = 127.0.0.1/8 PUBLIC_IP ::1 PUBLIC_IPV6 enabled = true filter = dovecotimap logpath = /var/log/mail.log -findtime = 30 -maxretry = 20 +findtime = 10 +maxretry = 120 [miab-management] enabled = true filter = miab-management-daemon port = http,https logpath = /var/log/syslog -maxretry = 20 -findtime = 30 +maxretry = 10 +findtime = 120 [miab-munin] enabled = true port = http,https filter = miab-munin logpath = /var/log/nginx/access.log -maxretry = 20 -findtime = 30 +maxretry = 3 +findtime = 120 #Disabling owncloud, that is not compatible with php 8.2 but I don't need it #[miab-owncloud] @@ -44,28 +44,28 @@ enabled = true port = 465 filter = miab-postfix-submission logpath = /var/log/mail.log -maxretry = 20 -findtime = 30 +maxretry = 10 +findtime = 120 [miab-postfix587] enabled = true port = 587 filter = miab-postfix-submission logpath = /var/log/mail.log -maxretry = 20 -findtime = 30 +maxretry = 10 +findtime = 120 [miab-roundcube] enabled = true port = http,https filter = miab-roundcube logpath = /var/log/roundcubemail/errors.log -maxretry = 20 -findtime = 30 +maxretry = 5 +findtime = 120 [recidive] enabled = true -maxretry = 10 +maxretry = 5 action = iptables-allports[name=recidive] # In the recidive section of jail.conf the action contains: # @@ -83,5 +83,5 @@ enabled = true [sshd] enabled = true -maxretry = 7 +maxretry = 5 bantime = 3600 diff --git a/conf/www_default.html b/conf/www_default.html index 68d0366b..c98f45cc 100644 --- a/conf/www_default.html +++ b/conf/www_default.html @@ -1,10 +1,37 @@ -
-take control of your email at https://mailinabox.email/
- - + + +Questo dominio (domain name here) è ad uso esclusivamente personale. Non vi alcun contenuto fruibile
+ pubblicamente.
+ Se avete raggiunto questa pagina attraverso altri domini,si tratta di un errore.
+ Alcuni webmaster distratti hanno impostato voci DNS per risolvere i loro nomi di dominio nel mio indirizzo
+ IP.
+ Questa è una contromisura per impedire che altri nomi di dominio risolvano il mio dominio.
+ Vi chiedo dunque di abbandonare immediatamente questa pagina!
+ Grazie!
+
+ This domain (domain name here) is for personal use only. There is no publicly available content.
+ If you have reached this page through other domains, this is an error.
+
+ Some careless webmasters have set up DNS entries to resolve their domain names to my IP address.
+ This is a countermeasure to prevent other domain names from resolving my domain.
+
+ I therefore ask you to leave this page immediately!
+ Thank you!
+