Add Exim service on Fail2Ban – Ubuntu

Date Posted: 21-06-2017

In our previous, we explained on how to install Fail2ban on Ubuntu host. Incase, if fail2ban is not installed then follow below post to install.

Install Fail2Ban on Ubuntu

Implementation:

If you followed our previous post, just append the below lines on jail.local file

vi /etc/fail2ban/jail.local

[exim-auth]

enabled = true
filter = exim
action = iptables[name=SMTP, port=25, protocol=tcp]
logpath = /var/log/exim4/mainlog
maxretry = 3

Incase if path of the exim is different, edit the logpath.

Restart the fail2ban service.

systemctl restart fail2ban

 

Leave a Reply