<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Discard spam directly not working]]></title>
		<link>https://forum.iredmail.org/topic20966-discard-spam-directly-not-working.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic20966.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Discard spam directly not working.]]></description>
		<lastBuildDate>Tue, 02 Sep 2025 06:05:03 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Discard spam directly not working]]></title>
			<link>https://forum.iredmail.org/post91202.html#p91202</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>Hi @barasmith,</p><p>I cannot reproduce this issue. Could you please show me output of command below?<br /></p><div class="codebox"><pre><code>grep &#039;final_spam_destiny&#039; /etc/amavis/conf.d/50-user</code></pre></div></blockquote></div><p>Sorry, I must not have things configured to send me mail when someone updates a post.</p><p>root@mx:/var/log# grep &#039;final_spam_destiny&#039; /etc/amavis/conf.d/50-user<br />$final_spam_destiny = D_DISCARD;</p><p>I have gotten around the problem for now by throwing together a python script that runs every 10 minutes and fixes the table.</p><p>cursor.execute(&quot;update policy set virus_quarantine_to=&#039;&#039; where virus_quarantine_to is null&quot;)<br />cursor.execute(&quot;update policy set spam_quarantine_to=&#039;&#039; where spam_quarantine_to is null&quot;)<br />cursor.execute(&quot;update policy set bad_header_quarantine_to=&#039;&#039; where bad_header_quarantine_to is null&quot;)<br />cursor.execute(&quot;update policy set banned_quarantine_to=&#039;&#039; where banned_quarantine_to is null&quot;)</p>]]></description>
			<author><![CDATA[null@example.com (barasmith)]]></author>
			<pubDate>Tue, 02 Sep 2025 06:05:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91202.html#p91202</guid>
		</item>
		<item>
			<title><![CDATA[Re: Discard spam directly not working]]></title>
			<link>https://forum.iredmail.org/post91201.html#p91201</link>
			<description><![CDATA[<p>Hi @barasmith,</p><p>I cannot reproduce this issue. Could you please show me output of command below?<br /></p><div class="codebox"><pre><code>grep &#039;final_spam_destiny&#039; /etc/amavis/conf.d/50-user</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 01 Sep 2025 07:50:31 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91201.html#p91201</guid>
		</item>
		<item>
			<title><![CDATA[Re: Discard spam directly not working]]></title>
			<link>https://forum.iredmail.org/post91183.html#p91183</link>
			<description><![CDATA[<p>Could you please show me output of command below?<br /></p><div class="codebox"><pre><code>grep &#039;final_spam_destiny&#039; /etc/amavis/conf.d/50-user</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 26 Aug 2025 00:56:20 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91183.html#p91183</guid>
		</item>
		<item>
			<title><![CDATA[Re: Discard spam directly not working]]></title>
			<link>https://forum.iredmail.org/post91178.html#p91178</link>
			<description><![CDATA[<p>I have confirmed that going into the avamisd.policy table and changing NULL to &#039;&#039; (empty string) causes the daily quarantine emails to stop as desired. Just need to fix the UI so it does not insert the NULLs.</p>]]></description>
			<author><![CDATA[null@example.com (barasmith)]]></author>
			<pubDate>Mon, 25 Aug 2025 15:21:49 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91178.html#p91178</guid>
		</item>
		<item>
			<title><![CDATA[Discard spam directly not working]]></title>
			<link>https://forum.iredmail.org/post91174.html#p91174</link>
			<description><![CDATA[<p>EE v 1.4.0<br />Ubuntu<br />MariaDB</p><p>When I set a user to &quot;Discard spam directly&quot; they continue to receive the periodic email about their quarantine and it is still collecting spam.</p><p>In looking at the original schema when a user is created:<br />github.com/iredmail/iRedMail/blob/master/samples/amavisd/default_spam_policy.sql</p><p>I noticed that all the *_quarantine_to fields are initialized to an empty string. But when the UI alters the settings for &quot;Enable spam checking&quot; the *_quarantine_to field is set to NULL. Is it possible that amavisd is expecting the empty string and seeing the NULL is causing the problem?</p><p>I have set some test accounts to the empty string in amavisd.policy table directly but will need to wait a day to see if that works.</p>]]></description>
			<author><![CDATA[null@example.com (barasmith)]]></author>
			<pubDate>Sat, 23 Aug 2025 17:54:31 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91174.html#p91174</guid>
		</item>
	</channel>
</rss>
