Initial commit
This commit is contained in:
commit
11b84aa872
40 changed files with 995 additions and 0 deletions
7
files/fail2ban/postfix-sasl.conf
Normal file
7
files/fail2ban/postfix-sasl.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
[sasl]
|
||||
enabled = true
|
||||
findtime = 3600
|
||||
bantime = 3600
|
||||
port = submission
|
||||
filter = postfix-sasl
|
||||
logpath = /var/log/mail-sasl.log
|
21
files/fail2ban/postfix-sasl.local
Normal file
21
files/fail2ban/postfix-sasl.local
Normal file
|
@ -0,0 +1,21 @@
|
|||
# Fail2Ban filter for postfix authentication failures
|
||||
#
|
||||
|
||||
[INCLUDES]
|
||||
|
||||
before = common.conf
|
||||
|
||||
[Definition]
|
||||
|
||||
_daemon = postfix(-\w+)?/(?:submission/|smtps/)?smtp[ds]
|
||||
|
||||
failregex = ^%(__prefix_line)swarning: [-._\w]+\[<HOST>\]: SASL ((?i)LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed(: [ A-Za-z0-9+/:]*={0,2})?\s*$
|
||||
|
||||
ignoreregex = authentication failed: Connection lost to authentication server$
|
||||
|
||||
[Init]
|
||||
|
||||
journalmatch = _SYSTEMD_UNIT=postfix.service
|
||||
|
||||
|
||||
# Author: Yaroslav Halchenko
|
Loading…
Add table
Add a link
Reference in a new issue