<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — OpenBSD Auto learn spam/ham crontab]]></title>
		<link>https://forum.iredmail.org/topic20407-openbsd-auto-learn-spamham-crontab.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20407.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in OpenBSD Auto learn spam/ham crontab.]]></description>
		<lastBuildDate>Thu, 25 Apr 2024 04:34:44 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: OpenBSD Auto learn spam/ham crontab]]></title>
			<link>https://forum.iredmail.org/post88689.html#p88689</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>Updated doc to mention using /usr/local/bin/bash instead of /bin/bash on FreeBSD/OpenBSD.</p><p>The shell script is written in Bash shell syntax, so neither /bin/sh nor /bin/ksh is ok (although ksh usually works fine).</p></blockquote></div><p>That fix seems to have resolved my issue, thank you for this solution, and for all of the work that you do!</p>]]></description>
			<author><![CDATA[null@example.com (Neovana)]]></author>
			<pubDate>Thu, 25 Apr 2024 04:34:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88689.html#p88689</guid>
		</item>
		<item>
			<title><![CDATA[Re: OpenBSD Auto learn spam/ham crontab]]></title>
			<link>https://forum.iredmail.org/post88685.html#p88685</link>
			<description><![CDATA[<div class="quotebox"><cite>Neovana wrote:</cite><blockquote><p>results in error: &quot;/bin/sh: /bin/bash: not found&quot;</p></blockquote></div><p>Updated doc to mention using /usr/local/bin/bash instead of /bin/bash on FreeBSD/OpenBSD.</p><p>The shell script is written in Bash shell syntax, so neither /bin/sh nor /bin/ksh is ok (although ksh usually works fine).</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Wed, 24 Apr 2024 08:44:49 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88685.html#p88685</guid>
		</item>
		<item>
			<title><![CDATA[Re: OpenBSD Auto learn spam/ham crontab]]></title>
			<link>https://forum.iredmail.org/post88684.html#p88684</link>
			<description><![CDATA[<p>Now I have new errors:</p><p>rmdir: /var/vmail/imapsieve_copy/processing/spam: Directory not empty<br />rmdir: /var/vmail/imapsieve_copy/processing/ham: Directory not empty</p>]]></description>
			<author><![CDATA[null@example.com (Neovana)]]></author>
			<pubDate>Wed, 24 Apr 2024 07:02:08 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88684.html#p88684</guid>
		</item>
		<item>
			<title><![CDATA[OpenBSD Auto learn spam/ham crontab]]></title>
			<link>https://forum.iredmail.org/post88683.html#p88683</link>
			<description><![CDATA[<p>- iRedMail version 1.6.8 PGSQL edition<br />- Deployed with downloadable installer<br />- OpenBSD 7.3 GENERIC.MP#5 amd64<br />- Store mail accounts in PGSQL<br />- Web server Nginx<br />- Manage mail accounts with iRedAdmin &amp; command line</p><p>Please note that in your excellent support documents for auto learn spam/ham crontab:</p><p>docs.iredmail.org/dovecot.imapsieve.html#setup-cron-job-to-scan-and-learn-spamham-messages</p><p>In the crontab section:</p><div class="codebox"><pre><code>Run command crontab -e -u root to setup cron job for root user, scan emails every 10 minutes:

# iRedMail: Scan reported mails.
*/10   *   *   *   *   /bin/bash /etc/dovecot/sieve/scan_reported_mails.sh</code></pre></div><p>results in error: &quot;/bin/sh: /bin/bash: not found&quot;</p><p>I think the crontab (for OpenBSD) might need to be changed to:</p><div class="codebox"><pre><code># iRedMail: Scan reported mails.
*/10   *   *   *   *   /bin/sh /etc/dovecot/sieve/scan_reported_mails.sh</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Neovana)]]></author>
			<pubDate>Wed, 24 Apr 2024 06:57:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post88683.html#p88683</guid>
		</item>
	</channel>
</rss>
