From b41ca65cd33bd2dbc7ca07c8483543763ec1b49f Mon Sep 17 00:00:00 2001 From: bn4t <17193640+bn4t@users.noreply.github.com> Date: Fri, 8 May 2020 07:02:58 +0000 Subject: [PATCH] dist: Update fail2ban filter Remove unnessecary log prefix matching. --- dist/fail2ban/filter.d/maddy-auth.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/fail2ban/filter.d/maddy-auth.conf b/dist/fail2ban/filter.d/maddy-auth.conf index 81b8ade..bbaf31b 100644 --- a/dist/fail2ban/filter.d/maddy-auth.conf +++ b/dist/fail2ban/filter.d/maddy-auth.conf @@ -2,5 +2,5 @@ before = common.conf [Definition] -failregex = (smtp|submission|lmtp|imap):\ authentication failed\t\{\"reason\":\".*\",\"src_ip\"\:\":\d+\"\,\"username\"\:\".*\"\}$ +failregex = authentication failed\t\{\"reason\":\".*\",\"src_ip\"\:\":\d+\"\,\"username\"\:\".*\"\}$ journalmatch = _SYSTEMD_UNIT=maddy.service + _COMM=maddy