iRedMail icon indicating copy to clipboard operation
iRedMail copied to clipboard

/usr/local/bin/fail2ban_banned_db: not found

Open FoZo opened this issue 2 months ago • 2 comments

REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER:

  • iRedMail version (check /etc/iredmail-release): 1.7.4 MARIADB edition
  • Deployed with iRedMail Easy or the downloadable installer? downloadable installer
  • Linux/BSD distribution name and version: Ubuntu 24.04
  • Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
  • Web server (Apache or Nginx): Nginx
  • Manage mail accounts with iRedAdmin-Pro? no
  • [IMPORTANT] Related original log or error message is required if you're experiencing an issue.

2025-09-26T08:39:55.694763+02:00 mail fail2ban.utils[149746]: ERROR 75406d83d500 -- stderr: '2025-09-26T08:09:02.453172+02:00 mail sshd[147740]: Invalid user client from xx.xx.xx.xx port 29252: 2: /usr/local/bin/fail2ban_banned_db: not found'

Wrong path to the shell.

# head /usr/local/bin/fail2ban_banned_db
#!/usr/local/bin/bash
# Author: Zhang Huangbin <[email protected]>
# Puprpose:
#   - Store banned IP address in SQL db while it's banned by Fail2ban.
#   - Remove unbanned IP address from SQL db while it's unbanned by Fail2ban.
#   - Unban IP addresses which have column `remove=1`.

# Usage:
#
#   *) Store a banned IP address:

FoZo avatar Sep 26 '25 06:09 FoZo

Is it same as this issue? https://github.com/iredmail/iRedMail/issues/290

iredmail avatar Sep 26 '25 12:09 iredmail

Seems like. The issue is on a fresh installation.

FoZo avatar Sep 26 '25 12:09 FoZo