mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-24 07:37:04 +00:00
simplify fail2ban configuration
This commit is contained in:
parent
f51c0934ab
commit
7368b4caea
@ -1,11 +0,0 @@
|
|||||||
# Fail2Ban filter based on spamhaus entries
|
|
||||||
|
|
||||||
[INCLUDES]
|
|
||||||
|
|
||||||
before = common.conf
|
|
||||||
|
|
||||||
[Definition]
|
|
||||||
|
|
||||||
failregex = .*?box postfix/smtpd.*?NOQUEUE: reject: RCPT from.*?\[<HOST>\]: 554 5\.7\.1 Service unavailable.*?zen\.spamhaus\.org.*$
|
|
||||||
|
|
||||||
ignoreregex =
|
|
@ -81,17 +81,12 @@ findtime = 7d
|
|||||||
[postfix]
|
[postfix]
|
||||||
enabled = true
|
enabled = true
|
||||||
|
|
||||||
|
# postfix rbl also found by postfix jail, but postfix-rbl is more aggressive (maxretry = 1)
|
||||||
|
[postfix-rbl]
|
||||||
|
enabled = true
|
||||||
|
|
||||||
[sshd]
|
[sshd]
|
||||||
enabled = true
|
enabled = true
|
||||||
maxretry = 4
|
maxretry = 4
|
||||||
bantime = 3600
|
bantime = 3600
|
||||||
mode = aggressive
|
mode = aggressive
|
||||||
|
|
||||||
[postfix-spamhaus]
|
|
||||||
port = smtp,465,submission
|
|
||||||
filter = postfix-spamhaus
|
|
||||||
logpath = /var/log/mail.log
|
|
||||||
maxretry = 2
|
|
||||||
findtime = 120m
|
|
||||||
bantime = 1d
|
|
||||||
enabled = true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user