Hi Tim,
we use fail2ban http://www.fail2ban.org to block bruteforce attacks. It
scans specific daemon-logs for expressions and blocks the IP via
IPTABLES for a configurable amount of seconds. Works very fine on SSHD
and PROFTPD, but i never tried it on DOVECOT. But its quite easy to
configure to nearly any daemon/logfile because its only based on a
regular expression search over them.
Greets
Roman
On Tue, 2009-08-11 at 08:54 +0200, Xin CHEN wrote:
> Hi All,
>
> We are encountering this being hacked problem these days. All our BQ
> and BX Server are under attack from certain IP.
> The Service under attacking is Dovecot.
>
> The following is the messages from MAILLOG file: (Hacker IP:
> 65.68.51.61)
> Aug 11 15:54:22 s10 dovecot: pop3-login: Aborted login: user=<login>,
> method=PLAIN, rip=65.68.51.61, lip=122.100.2.66
> Aug 11 15:54:22 s10 dovecot: pop3-login: Aborted login:
> user=<support>, method=PLAIN, rip=65.68.51.61, lip=122.100.2.67
> Aug 11 15:54:22 s10 dovecot: pop3-login: Aborted login: user=<Thomas>,
> method=PLAIN, rip=65.68.51.61, lip=122.100.2.66
>
> I have blocked this IP by using IPTABLES, however, once they changed
> the IP, won't be blocked anymore.
>
> Does anyone have the same issue before? Is there any tool can block
> the IP automatically based on some certain events?
>
> Thanks,
> tim
>