Hi,
i use Fail2ban for several Services. Now i want to protect our Mailservice eg: pop,pops,imap,imaps etc.
My Fail2ban Rule "courierlogin.conf" looks:
and my jail.conf:
but nothing happend when in /opt/psa/var/log/maillog:
- Debian 7
- Plesk 11.5
any hints?
i use Fail2ban for several Services. Now i want to protect our Mailservice eg: pop,pops,imap,imaps etc.
My Fail2ban Rule "courierlogin.conf" looks:
Code:
# Fail2Ban configuration file
#
# Author: Christoph Haas
# Modified by: Cyril Jaquier
#
# $Revision: 728 $
#
[Definition]
# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
# host must be matched by a group named "host". The tag "<HOST>" can
# be used for standard IP/hostname matching and is only an alias for
# (?:::f{4,6}:)?(?P<host>[\w\-.^_]+)
# Values: TEXT
#
failregex = LOGIN FAILED, ip=\[<HOST>\]$
# Option: ignoreregex
# Notes.: regex to ignore. If this regex matches, the line is ignored.
# Values: TEXT
#
ignoreregex =
Code:
[courierauth]
enabled = true
port = smtp,ssmtp,imap2,imap3,imaps,pop3,pop3s
filter = courierlogin
logpath = /opt/psa/var/log/maillog
maxretry = 5
bantime = 3600
but nothing happend when in /opt/psa/var/log/maillog:
Code:
Nov 18 02:41:00 phi74201 courier-imapd: LOGIN FAILED, user=cust@email.de, ip=[::ffff:123.456.789.000]
- Debian 7
- Plesk 11.5
any hints?