We are running a CentOS 6.8 (Final) VPS Server with Plesk 12.5.30 #48 and have a issue with IP Address Banning.
When it's on the logfile /var/log/fail2ban.log shows:
2016-09-27 18:44:01,060 fail2ban.filter [16304]: WARNING Error decoding line from '/var/log/maillog' with 'UTF-8'. Consider setting logencoding=utf-8 (or another appropriate encoding) for this jail. Continuing to process line ignoring invalid characters: 'Sep 26 06:28:38 xxxxx smtp_auth[6546]: FAILED: #001D\xc7... - password incorrect from (null) [xxx.xxx.xxx.xxx]\n'
and stops working (don't ban ip's).
I tried to add the:
logencoding = utf-8
(also try logencoding = auto and logencoding = us-ascii) to /etc/fail2ban/jail.conf and /etc/fail2ban/jail.local but without results.
(That is reported in here: https://talk.plesk.com/threads/fail2ban.338421/ )
Any ideias ?
Thanks for your help!!!
When it's on the logfile /var/log/fail2ban.log shows:
2016-09-27 18:44:01,060 fail2ban.filter [16304]: WARNING Error decoding line from '/var/log/maillog' with 'UTF-8'. Consider setting logencoding=utf-8 (or another appropriate encoding) for this jail. Continuing to process line ignoring invalid characters: 'Sep 26 06:28:38 xxxxx smtp_auth[6546]: FAILED: #001D\xc7... - password incorrect from (null) [xxx.xxx.xxx.xxx]\n'
and stops working (don't ban ip's).
I tried to add the:
logencoding = utf-8
(also try logencoding = auto and logencoding = us-ascii) to /etc/fail2ban/jail.conf and /etc/fail2ban/jail.local but without results.
(That is reported in here: https://talk.plesk.com/threads/fail2ban.338421/ )
Any ideias ?
Thanks for your help!!!