<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[iRedMail — Auto learn spam/ham seems broken]]></title>
	<link rel="self" href="https://forum.iredmail.org/feed-atom-topic21132.xml" />
	<updated>2026-04-27T14:11:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.iredmail.org/topic21132-auto-learn-spamham-seems-broken.html</id>
		<entry>
			<title type="html"><![CDATA[Re: Auto learn spam/ham seems broken]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post91914.html#p91914" />
			<content type="html"><![CDATA[<p>I review all , set some ham to spam</p><p>and</p><div class="codebox"><pre><code>root@nedra:~# /bin/bash /etc/dovecot/sieve/scan_reported_mails.sh
root@nedra:~# tail /var/log/dovecot/dovecot.log
2026-04-27T16:07:38.469632+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): conn unix:/run/dovecot/dict (pid=259817,uid=0): Connecting
2026-04-27T16:07:38.469748+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): conn unix:/run/dovecot/dict (pid=259817,uid=0): Client connected (fd=18)
2026-04-27T16:07:38.470141+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): Lookup finished for &#039;priv/quota/storage&#039;: found
2026-04-27T16:07:38.470313+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): Lookup finished for &#039;priv/quota/storage&#039;: found
2026-04-27T16:07:38.470418+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): Looking up &#039;priv/quota/messages&#039;
2026-04-27T16:07:38.470548+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): Looking up (async) &#039;priv/quota/messages&#039;
2026-04-27T16:07:38.470819+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): Lookup finished for &#039;priv/quota/messages&#039;: found
2026-04-27T16:07:38.470952+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): Lookup finished for &#039;priv/quota/messages&#039;: found
2026-04-27T16:07:38.471065+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: dict(proxy): conn unix:/run/dovecot/dict (pid=259817,uid=0): Disconnected: Connection closed (fd=18)
2026-04-27T16:07:38.488484+02:00 nedra dovecot: imap(courriel@example.net)&lt;260804&gt;&lt;nWc5RXFQWOtSQd5N&gt;: Debug: acl vfile: file /var/vmail/vmail1/example.net/c/o/u/courriel-2021.01.15.17.51.25//Maildir/dovecot-acl not found</code></pre></div><p>And no scan_reported_mails in /var/log/syslog <img src="https://forum.iredmail.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></content>
			<author>
				<name><![CDATA[Shnoulle]]></name>
				<uri>https://forum.iredmail.org/user64191.html</uri>
			</author>
			<updated>2026-04-27T14:11:47Z</updated>
			<id>https://forum.iredmail.org/post91914.html#p91914</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Auto learn spam/ham seems broken]]></title>
			<link rel="alternate" href="https://forum.iredmail.org/post91912.html#p91912" />
			<content type="html"><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release):&nbsp; 1.7.1 OPENLDAP edition<br />- Deployed with iRedMail Easy or the downloadable installer? downloadable<br />- Linux/BSD distribution name and version: Debian GNU/Linux 12 (bookworm) <br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL):&nbsp; LDAP<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />====</p><p>I follow all instruction on <a href="https://docs.iredmail.org/dovecot.imapsieve.html,">https://docs.iredmail.org/dovecot.imapsieve.html,</a> use set as spam plugin buit checking spam : it&#039;s seems only the mail reader learn span (kmail currently).</p><p>All update are done, but when tetsing f somthing happe,n : seems nothing are done.</p><div class="codebox"><pre><code>root@nedra:~# cd /etc/dovecot/
root@nedra:/etc/dovecot# grep -r &quot;mail_debug&quot; *
conf.d/10-logging.conf:# mail_debug and auth_debug settings.
conf.d/10-logging.conf:#mail_debug = no
dovecot.conf:mail_debug = yes
root@nedra:~# grep sieve /var/log/dovecot/imap.log
root@nedra:~# bash /etc/dovecot/sieve/scan_reported_mails.sh
root@nedra:~# grep sieve /var/log/dovecot/imap.log
root@nedra:~# tail /var/log/syslog
2026-04-23T10:46:33.646578+02:00 nedra postfix/postscreen[19574]: PASS OLD [104.155.105.12]:12868
2026-04-23T10:46:33.654906+02:00 nedra postfix/postscreen[19574]: PASS OLD [104.155.105.12]:12898
2026-04-23T10:46:34.182158+02:00 nedra postfix/smtpd[19653]: connect from 12.105.155.104.bc.googleusercontent.com[104.155.105.12]
2026-04-23T10:46:34.362819+02:00 nedra postfix/smtpd[19655]: connect from 12.105.155.104.bc.googleusercontent.com[104.155.105.12]
2026-04-23T10:46:34.706589+02:00 nedra postfix/smtpd[19657]: connect from 12.105.155.104.bc.googleusercontent.com[104.155.105.12]
2026-04-23T10:46:34.995340+02:00 nedra postfix/smtpd[19658]: connect from 12.105.155.104.bc.googleusercontent.com[104.155.105.12]
2026-04-23T10:46:35.341956+02:00 nedra postfix/smtpd[19659]: connect from 12.105.155.104.bc.googleusercontent.com[104.155.105.12]
2026-04-23T10:46:35.713417+02:00 nedra postfix/smtpd[19660]: connect from 12.105.155.104.bc.googleusercontent.com[104.155.105.12]
2026-04-23T10:47:01.064735+02:00 nedra CRON[19678]: (*****) CMD (sh /home/*****/vault_pull.sh &gt;&gt; /home/*****/logs/vault_pull.log 2&gt;&amp;1)
2026-04-23T10:47:01.074723+02:00 nedra CRON[19679]: (root) CMD (/bin/bash /usr/local/bin/fail2ban_banned_db unban_db)</code></pre></div><br /><p>and<br /></p><div class="codebox"><pre><code>root@nedra:~# su -s /bin/bash amavis -c &quot;sa-learn --dump magic&quot;
0.000          0          3          0  non-token data: bayes db version
0.000          0       2124          0  non-token data: nspam
0.000          0      11905          0  non-token data: nham
0.000          0     200731          0  non-token data: ntokens
0.000          0 1776204760          0  non-token data: oldest atime
0.000          0 1776931921          0  non-token data: newest atime
0.000          0 1776932414          0  non-token data: last journal sync atime
0.000          0 1776900277          0  non-token data: last expiry atime
0.000          0     691200          0  non-token data: last expire atime delta
0.000          0      11211          0  non-token data: last expire reduction count</code></pre></div><p>What can i do to control if something is really done ?</p>]]></content>
			<author>
				<name><![CDATA[Shnoulle]]></name>
				<uri>https://forum.iredmail.org/user64191.html</uri>
			</author>
			<updated>2026-04-23T08:56:40Z</updated>
			<id>https://forum.iredmail.org/post91912.html#p91912</id>
		</entry>
</feed>
