<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — spam quarantine works "erratically"]]></title>
		<link>https://forum.iredmail.org/topic21101-spam-quarantine-works-erratically.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21101.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in spam quarantine works "erratically".]]></description>
		<lastBuildDate>Wed, 04 Mar 2026 00:35:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[spam quarantine works "erratically"]]></title>
			<link>https://forum.iredmail.org/post91755.html#p91755</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): 1.7.4<br />- Deployed with iRedMail Easy or the downloadable installer? downloaded installer<br />- Linux/BSD distribution name and version: RHEL 9<br />- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL (MariaDB)<br />- Web server (Apache or Nginx): Nginx<br />- Manage mail accounts with iRedAdmin-Pro? No<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>I&#039;ve just installed iRedMail 1.7.4.<br />I configured amavisd.conf for send to quarantine spam mails.<br /></p><div class="codebox"><pre><code>$final_spam_destiny = D_PASS;
$spam_quarantine_method = &#039;local:spam.%i.%m.eml&#039;;
$spam_quarantine_to = &#039;spam-quarantine&#039;;</code></pre></div><p>I added a value to DB amavisd:<br />BEFORE<br /></p><div class="codebox"><pre><code>+----+-----------------+--------------------------+
| id | policy_name | spam_quarantine_to |
+----+-----------------+--------------------------+
|  1 | @.                |                                |
+----+-----------------+--------------------------+</code></pre></div><p>AFTER<br /></p><div class="codebox"><pre><code>+----+-----------------+--------------------------+
| id | policy_name | spam_quarantine_to |
+----+-----------------+--------------------------+
|  1 | @.                | spam-quarantine      |
+----+-----------------+--------------------------+</code></pre></div><p>Then I restarted amavisd</p><p>The directories structure under $QUARANTINEDIR appeared automatically when the first mailfile was sent to wuarantine, and was created there with de righr filename: spam.20260303T125641.XmFxi-GKloU1, under directory &quot;T&quot;.</p><p>I made several tests, sending mails with spam simulated (GTUBE), and everything worked right. But after about an hour of inactivity (no more mailfiles were accepted and stored in quarantine directories, and the structure of directories itself disappeared, an did not work anymore.</p><p>Y changed in amavisd.conf: <br /></p><div class="codebox"><pre><code>$spam_quarantine_method = &#039;local:spam.%i.%m.eml&#039;;</code></pre></div><p>Restarted amavisd, and it&#039;s working again. Why the operation with formatted name of the quarantine worked only temporarily? My preference is to be able to give &quot;format &quot; to filename.</p>]]></description>
			<author><![CDATA[null@example.com (tinatiuh)]]></author>
			<pubDate>Wed, 04 Mar 2026 00:35:27 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91755.html#p91755</guid>
		</item>
	</channel>
</rss>
