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

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny