1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-15 17:37:22 +01:00

add postfix spamhaus jail

This commit is contained in:
github@kiekerjan.isdronken.nl
2021-04-23 22:03:22 +02:00
parent 1292dce11e
commit 3bf241c3e0
3 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
# 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

@@ -87,4 +87,11 @@ maxretry = 4
bantime = 3600
mode = aggressive
[postfix-spamhaus]
port = smtp,465,submission
filter = postfix-spamhaus
logpath = /var/log/mail.log
maxretry = 2
findtime = 120m
bantime = 1d
enabled = true