Topic: Dovecot fail2ban jail name is now dovecot-iredmail
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? donwloadable installer
- Linux/BSD distribution name and version: Ubuntu 18.04.5 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
The name of the jail in /etc/fail2ban/jail.d/dovecot.local" is [dovecot-iredmail] instead of [dovecot].
Following the "Tests" section in https://docs.iredmail.org/fail2ban.sql.html ; I had to change
fail2ban-client set dovecot banip 1.1.1.2"
to
fail2ban-client set dovecot-iredmail banip 1.1.1.2
which is not a big deal in itself. But running
mysql fail2ban -e "UPDATE banned SET remove=1 WHERE ip='1.1.1.2'"
and
/usr/local/bin/fail2ban_banned_db unban_db
failed cause the jail name in the mysql table is still "dovecot" and not "dovecot-iredmail".
I have been able to fix it by renaming [dovecot-iredmail] to [dovecot] in the dovecot jail (/etc/fail2ban/jail.d/dovecot.local), restarting fail2ban and re-testing it.
Please, can you confirm the fix ? Or am I missing something ?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.