First run:
Code: Select all
mcedit /etc/fail2ban/filter.d/dovecot.conf
Code: Select all
ignoreregex =
Code: Select all
ignoreregex = .*@some-domain.com.*
.*@another-domain.com.*
Code: Select all
mcedit /etc/fail2ban/filter.d/exim.conf
Then restart fail2ban:
Code: Select all
systemctl restart fail2ban
Code: Select all
fail2ban-regex -v --print-all-ignored /var/log/dovecot.log /etc/fail2ban/filter.d/dovecot.conf
Code: Select all
fail2ban-regex -v --print-all-ignored /var/log/exim4/mainlog /etc/fail2ban/filter.d/exim.conf