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