mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2026-05-23 05:48:59 +02:00
Write failed login attempts on the management interface to the syslog to allow fail2ban to ban repeat offenders
This commit is contained in:
@@ -28,7 +28,7 @@ maxretry = 20
|
||||
enabled = true
|
||||
filter = miab-management-daemon
|
||||
port = http,https
|
||||
logpath = /var/log/mailinabox.log
|
||||
logpath = /var/log/syslog
|
||||
maxretry = 20
|
||||
findtime = 30
|
||||
|
||||
|
||||
@@ -8,5 +8,5 @@ before = common.conf
|
||||
|
||||
_daemon = mailinabox
|
||||
|
||||
failregex = Failed login from ip <HOST>
|
||||
failregex = MIAB: Failed login attempt from ip <HOST> - timestamp .*
|
||||
ignoreregex =
|
||||
|
||||
Reference in New Issue
Block a user