1
0
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:
github@kiekerjan.isdronken.nl 2021-04-28 15:57:52 +02:00
parent f51c0934ab
commit 7368b4caea
2 changed files with 4 additions and 20 deletions

View File

@ -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 =

View File

@ -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