1

Topic: Fail2ban error

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version 1.3.1 MARIADB edition.
- Deployed with  downloadable installer?
- Linux/BSD distribution Ubuntu 20.04.3 LTS (GNU/Linux 5.4.0-91-generic x86_64)
- Store mail accounts in which backend (/MySQL/):
- Web server ( Nginx):
====

when running staus  it is running but these errors are showing
service fail2ban status (I have removed front bit )

fail2ban.utils [12590]: ERROR 7f8eb06f6500 -- exec: ['f2bV_ipjailmatches=$0 \n/usr/local/bin/fail2ban_banned_db ban 222.186.30.112 22 tcp sshd 30 $f2bV_ipjailmatch>
fail2ban.utils [12590]: ERROR 7f8eb06f6500 -- stderr: "ERROR 1054 (42S22) at line 1: Unknown column 'rdns' in 'field list'"
fail2ban.utils [12590]: ERROR 7f8eb06f6500 -- returned 1
fail2ban.actions [12590]: ERROR Failed to execute ban jail 'sshd' action 'banned_db' info 'ActionInfo({'ip': '222.186.30.112', 'family': 'inet4', 'fid': <function >
fail2ban.actions [12590]: NOTICE [sshd] Unban 112.85.42.49

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team.

2

Re: Fail2ban error

Seems your sql structure in “fail2ban.banned” is out of date, simply drop it and recreate it should fix it for you.

FYI: https://github.com/iredmail/iRedMail/bl … 2ban.mysql