Automatic exim4 ban ip

brute-force-attacksexim

I would like to know if it is possible to automatically ban/filter an IP for few time in case of multiple authentication failure in exim4 server.

Best Answer

fail2ban can watch logfiles of various programs, including exim and ban IPs which match a given pattern to block them for a given time using iptables.

Look for a fail2ban package in you operating system's package manager. Usually many examples are included in the package itself, you can also find some information in the project's wiki page on exim.