mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
etc: Add fail2ban filter configuration example
This patch adds a fail2ban filter configuration example for chasquid. It can be used to configure fail2ban to detect IPs causing connection churn or high rate of errors.
This commit is contained in:
11
etc/fail2ban/filter.d/chasquid.conf
Normal file
11
etc/fail2ban/filter.d/chasquid.conf
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# fail2ban filter config for chasquid SMTP server.
|
||||||
|
[INCLUDES]
|
||||||
|
before = common.conf
|
||||||
|
|
||||||
|
[Definition]
|
||||||
|
# Identify addresses that triggered an SMTP connection error.
|
||||||
|
failregex = SMTP.Conn <ADDR>:\d+: error:
|
||||||
|
|
||||||
|
[Init]
|
||||||
|
journalmatch = _SYSTEMD_UNIT=chasquid.service
|
||||||
|
|
||||||
Reference in New Issue
Block a user