From a7165b5bea358885fc7dda359d805f6b2dcbfb31 Mon Sep 17 00:00:00 2001 From: Mario Alegre Date: Wed, 25 Nov 2020 19:19:36 -0500 Subject: [PATCH] added fail2ban config for mailsrv --- fail2ban/jail.d/mailsrv.conf | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fail2ban/jail.d/mailsrv.conf diff --git a/fail2ban/jail.d/mailsrv.conf b/fail2ban/jail.d/mailsrv.conf new file mode 100644 index 0000000..2648390 --- /dev/null +++ b/fail2ban/jail.d/mailsrv.conf @@ -0,0 +1,9 @@ +[mailsrv-postfix] +enabled = true +filter = postfix[mode=extra] +action = iptables[name=mailsrv-postfix, port="smtp,submission,pop3,imap", protocol=tcp] +backend = polling +logpath = /srv/vol/mailsrv/log/mail.log +bantime = 24h +findtime = 5m +maxretry = 3