mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
add postfix spamhaus jail
This commit is contained in:
parent
1292dce11e
commit
3bf241c3e0
11
conf/fail2ban/filter.d/postfix-spamhaus.conf
Normal file
11
conf/fail2ban/filter.d/postfix-spamhaus.conf
Normal 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 =
|
@ -87,4 +87,11 @@ 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
|
||||||
|
@ -131,13 +131,13 @@ EOF
|
|||||||
|
|
||||||
cat > /etc/logrotate.d/solr <<EOF
|
cat > /etc/logrotate.d/solr <<EOF
|
||||||
/var/log/solr.log {
|
/var/log/solr.log {
|
||||||
copytruncate
|
rotate 14
|
||||||
weekly
|
daily
|
||||||
rotate 12
|
missingok
|
||||||
|
notifempty
|
||||||
compress
|
compress
|
||||||
delaycompress
|
delaycompress
|
||||||
missingok
|
create 640 solr adm
|
||||||
create 640 syslog adm
|
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user