mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 05:37:34 +03:00
dist: Copy fail2ban configuration from wiki
This commit is contained in:
parent
2e9a0ea818
commit
8e8fee2b6b
5 changed files with 14 additions and 0 deletions
7
dist/README.md
vendored
7
dist/README.md
vendored
|
@ -15,3 +15,10 @@ the system to a bare minimum. Subset of these options makes it impossible for
|
|||
privileged authentication helper binaries to gain required permissions, so you
|
||||
may have to disable it when using system account-based authentication with
|
||||
maddy running as a unprivilieged user.
|
||||
|
||||
## fail2ban configuration
|
||||
|
||||
Configuration files for use with fail2ban. Assume either `backend = systemd` specified
|
||||
in system-wide configuration or log file written to /var/log/maddy/maddy.log.
|
||||
|
||||
See https://github.com/foxcpp/maddy/wiki/fail2ban-configuration for details.
|
||||
|
|
2
dist/fail2ban/filter.d/maddy
vendored
Normal file
2
dist/fail2ban/filter.d/maddy
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
[Definition]
|
||||
failregex = authentication failed for (.+) \(from <HOST>:[0-9]+\)
|
5
dist/fail2ban/jail.d/maddy
vendored
Normal file
5
dist/fail2ban/jail.d/maddy
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
[maddy]
|
||||
enabled = true
|
||||
port = 143,993,587,465,25
|
||||
filter = maddy
|
||||
logpath = /var/log/maddy/maddy.log
|
Loading…
Add table
Add a link
Reference in a new issue