Topic: /var/log/daemon: fail2ban.utils[xxx]: ERROR xxx No such file or direct
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version 1.7.1
- Deployed with iRedMail downloadable installer
- OpenBSD 7.4
- Store mail accounts in PGSQL
- Web server Nginx
- Manage mail accounts with iRedAdmin-Pro? No
====
Looks like there may be a typo in one of the fail2ban scripts, as I'm getting the following errors in /var/log/daemon:
Nov 3 03:59:55 mail fail2ban.utils[xxxxx]: ERROR aba98f31c40 -- exec: ['f2bV_ipjailmatches=$0 \n/usr/local/bin/fail2ban_banned_db ban 165.154.208.108 80,443,25,587,465,110,995,143,993,4190 tcp postfix 5 $f2bV_ipjailmatches', 'Nov 3 03:59:45 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:48 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:50 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:52 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:54 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]']
Nov 3 03:59:55 mail fail2ban.utils[xxxxx]: ERROR aba98f31c40 -- stderr: 'env: bash: No such file or directory'
Nov 3 03:59:55 mail fail2ban.utils[xxxxx]: ERROR aba98f31c40 -- returned 127
Nov 3 03:59:55 mail fail2ban.utils[xxxxx]: ERROR aba98f14a00 -- exec: ['f2bV_ipjailmatches=$0 \n/usr/local/bin/fail2ban_banned_db ban 165.154.208.108 80,443,25,587,465,110,995,143,993,4190 tcp postfix 5 $f2bV_ipjailmatches', 'Nov 3 03:59:45 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:48 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:50 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:52 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:54 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]']
Nov 3 03:59:55 mail fail2ban.utils[xxxxx]: ERROR aba98f14a00 -- stderr: 'env: bash: No such file or directory'
Nov 3 03:59:55 mail fail2ban.utils[xxxxx]: ERROR aba98f14a00 -- returned 127
Nov 3 03:59:55 mail fail2ban.actions[xxxxx]: ERROR Failed to execute ban jail 'postfix' action 'banned_db' info 'ActionInfo({'ip': '165.154.208.108', 'family': 'inet4', 'fid': <function Actions.ActionInfo.<lambda> at 0xaba98e80040>, 'ipjailmatches': 'Nov 3 03:59:45 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:48 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:50 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:52 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]\nNov 3 03:59:54 mail postfix/smtpd[xxxxx]: lost connection after AUTH from unknown[165.154.208.108]', 'ipjailfailures': 5, 'raw-ticket': <function Actions.ActionInfo.<lambda> at 0xaba98e80700>})': Error banning 165.154.208.108
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.