Chris1
Regular Pleskian
Hi everyone,
I'm getting the following attempts every few minutes, I'd to put a stop to it with Fail2Ban but so far I've been unsuccessful. I get no IP bans in the Fail2Ban panel in Plesk 12.
Dec 3 23:24:14 XXX postfix/smtpd[2535]: warning: ca215.calcit.fastwebserver.de[146.0.42.84]: SASL LOGIN authentication failed: authentication failure
/etc/fail2ban/filter.d/sasl.conf
# Fail2Ban filter for postfix authentication failures
#
[INCLUDES]
before = common.conf
[Definition]
_daemon = postfix/smtpd
failregex = (?i): warning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed
ignoreregex =
# Author: Yaroslav Halchenko
/etc/fail2ban/jail.local
[sasl]
enabled = true
logpath = /var/log/maillog
filter = sasl
maxretry = 1
action = iptables[name=sasl, port=smtp, protocol=tcp]
port = smtp
I also have the following under [DEFAULT] in my jail.local file:
findtime = 600
bantime = 3600
A Fail2Ban regex test shows the following:
[root@XXX fail2ban]# fail2ban-regex /var/log/maillog /etc/fail2ban/filter.d/sasl.conf
Running tests
=============
Use failregex file : /etc/fail2ban/filter.d/sasl.conf
Use log file : /var/log/maillog
Results
=======
Failregex: 2329 total
|- #) [# of hits] regular expression
| 1) [2329] (?i): warning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed
`-
Ignoreregex: 0 total
Date template hits:
|- [# of hits] date format
| [74635] MONTH Day Hour:Minute:Second
`-
Lines: 74635 lines, 0 ignored, 2329 matched, 72306 missed
Missed line(s): too many to print. Use --print-all-missed to print all 72306 lines
*****************************************
Could someone please assist with letting me know where I'm going wrong?
Kind regards,
Chris
I'm getting the following attempts every few minutes, I'd to put a stop to it with Fail2Ban but so far I've been unsuccessful. I get no IP bans in the Fail2Ban panel in Plesk 12.
Dec 3 23:24:14 XXX postfix/smtpd[2535]: warning: ca215.calcit.fastwebserver.de[146.0.42.84]: SASL LOGIN authentication failed: authentication failure
/etc/fail2ban/filter.d/sasl.conf
# Fail2Ban filter for postfix authentication failures
#
[INCLUDES]
before = common.conf
[Definition]
_daemon = postfix/smtpd
failregex = (?i): warning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed
ignoreregex =
# Author: Yaroslav Halchenko
/etc/fail2ban/jail.local
[sasl]
enabled = true
logpath = /var/log/maillog
filter = sasl
maxretry = 1
action = iptables[name=sasl, port=smtp, protocol=tcp]
port = smtp
I also have the following under [DEFAULT] in my jail.local file:
findtime = 600
bantime = 3600
A Fail2Ban regex test shows the following:
[root@XXX fail2ban]# fail2ban-regex /var/log/maillog /etc/fail2ban/filter.d/sasl.conf
Running tests
=============
Use failregex file : /etc/fail2ban/filter.d/sasl.conf
Use log file : /var/log/maillog
Results
=======
Failregex: 2329 total
|- #) [# of hits] regular expression
| 1) [2329] (?i): warning: [-._\w]+\[<HOST>\]: SASL (?:LOGIN|PLAIN|(?:CRAM|DIGEST)-MD5) authentication failed
`-
Ignoreregex: 0 total
Date template hits:
|- [# of hits] date format
| [74635] MONTH Day Hour:Minute:Second
`-
Lines: 74635 lines, 0 ignored, 2329 matched, 72306 missed
Missed line(s): too many to print. Use --print-all-missed to print all 72306 lines
*****************************************
Could someone please assist with letting me know where I'm going wrong?
Kind regards,
Chris
Last edited: