<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — fail2ban error Command not found]]></title>
		<link>https://forum.iredmail.org/topic20910-fail2ban-error-command-not-found.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20910.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in fail2ban error Command not found.]]></description>
		<lastBuildDate>Wed, 11 Jun 2025 08:20:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: fail2ban error Command not found]]></title>
			<link>https://forum.iredmail.org/post90950.html#p90950</link>
			<description><![CDATA[<p>Here it is:</p><p>ls -l /usr/local/bin/fail2ban_banned_db<br />-r-xr-x--- 1 root root 8555 Jun&nbsp; 3 09:10 /usr/local/bin/fail2ban_banned_db</p><p>It looks like the problem possibly was, that it specified non-existing path to bash on first line:</p><p>#!/usr/local/bin/bash</p><p>I did that second step, monitoring log now - so far seems it helped.</p><p>Thanks !</p>]]></description>
			<author><![CDATA[null@example.com (pavel.kasparek)]]></author>
			<pubDate>Wed, 11 Jun 2025 08:20:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90950.html#p90950</guid>
		</item>
		<item>
			<title><![CDATA[Re: fail2ban error Command not found]]></title>
			<link>https://forum.iredmail.org/post90947.html#p90947</link>
			<description><![CDATA[<p>Please show us command output:<br /></p><div class="codebox"><pre><code>ls -l /usr/local/bin/fail2ban_banned_db</code></pre></div><p>And try to fix it with commands below, run as root user:<br /></p><div class="codebox"><pre><code>wget https://github.com/iredmail/iRedMail/raw/master/samples/fail2ban/bin/fail2ban_banned_db
mv fail2ban_banned_db /usr/local/bin/
chmod 0550 /usr/local/bin/fail2ban_banned_db</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 10 Jun 2025 13:41:07 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90947.html#p90947</guid>
		</item>
		<item>
			<title><![CDATA[fail2ban error Command not found]]></title>
			<link>https://forum.iredmail.org/post90945.html#p90945</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version: 1.7.3 <br />- Deployed with: downloadable installer<br />- Linux distribution: Debian 12 <br />- Store mail accounts in backend: MySQL<br />- Web server: Nginx<br />- Manage mail accounts with iRedAdmin-Pro: no<br />====</p><p>Hello, </p><p>on basic iRedmail install, I observe errors like this in journal:</p><p>```<br />Jun 10 13:13:40 srv-un-19 fail2ban.utils[493]: ERROR 7fcce4fcd080 -- stderr: &#039;2025-06-10T13:13:39.382646+02:00 srv-un-19 postfix/postscreen[530172]: PREGREET 219 after 0 from [65.49.1.30]:11831: GET / HTTP/1.1\\r\\nHost: 212.79.111.19:25\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWe: 2: /usr/local/bin/fail2ban_banned_db: not found&#039;<br />Jun 10 13:13:40 srv-un-19 fail2ban.utils[493]: ERROR 7fcce4fcd080 -- returned 127<br />Jun 10 13:13:40 srv-un-19 fail2ban.utils[493]: INFO HINT on 127: &quot;Command not found&quot;.&nbsp; Make sure that all commands in [&#039;f2bV_ipjailmatches=$0 \n/usr/local/bin/fail2ban_banned_db ban 65.49.1.30 80,443,25,587,465,110,995,143,993,4190 tcp pregreet 1 $f2bV_ipjailmatches&#039;, &#039;2025-06-10T13:13:39.382646+02:00 srv-un-19 postfix/postscreen[530172]: PREGREET 219 after 0 from [65.49.1.30]:11831: GET / HTTP/1.1\\r\\nHost: 212.79.111.19:25\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWe&#039;] are in the PATH of fail2ban-server process (grep -a PATH= /proc/`pidof -x fail2ban-server`/environ). You may want to start &quot;fail2ban-server -f&quot; separately, initiate it with &quot;fail2ban-client reload&quot; in another shell session and observe if additional informative error messages appear in the terminals.<br />Jun 10 13:13:40 srv-un-19 fail2ban.actions[493]: ERROR Failed to execute ban jail &#039;pregreet&#039; action &#039;banned_db&#039; info &#039;ActionInfo({&#039;ip&#039;: &#039;65.49.1.30&#039;, &#039;family&#039;: &#039;inet4&#039;, &#039;fid&#039;: &lt;function Actions.ActionInfo.&lt;lambda&gt; at 0x7fcce5112160&gt;, &#039;ipjailmatches&#039;: &#039;2025-06-10T13:13:39.382646+02:00 srv-un-19 postfix/postscreen[530172]: PREGREET 219 after 0 from [65.49.1.30]:11831: GET / HTTP/1.1\\r\\nHost: 212.79.111.19:25\\r\\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWe&#039;, &#039;ipjailfailures&#039;: 1, &#039;raw-ticket&#039;: &lt;function Actions.ActionInfo.&lt;lambda&gt; at 0x7fcce51128e0&gt;})&#039;: Error banning 65.49.1.30<br />```</p><p>Is that smth to worry about ? Thanks in advance for any help.</p>]]></description>
			<author><![CDATA[null@example.com (pavel.kasparek)]]></author>
			<pubDate>Tue, 10 Jun 2025 11:40:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post90945.html#p90945</guid>
		</item>
	</channel>
</rss>
