<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
		<link>https://forum.iredmail.org/topic21112-all-received-mail-marked-with-spam-after-iredmail-ee-v170-upgrade.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic21112.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade.]]></description>
		<lastBuildDate>Tue, 31 Mar 2026 08:55:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91841.html#p91841</link>
			<description><![CDATA[<p>Setting `spam_tag_level` column to NULL disables the `Always insert X-Spam-* headers` option, so I lose a functionality I&#039;m using.</p><p>Nevertheless, after enabling both &#039;Prefix text [SPAM] to the subject of spam&#039; and &#039;Always insert X-Spam-* headers&#039; AND <strong>setting spam_subject_tag =NULL</strong>:<br /></p><div class="codebox"><pre><code>UPDATE policy SET spam_subject_tag=NULL;</code></pre></div><p>things are working as expected.</p><p>Of course disabling and re-anabling &#039;Prefix text [SPAM] to the subject of spam&#039; reintroduces the issue, maybe you should address this in future patches.</p><div class="codebox"><pre><code>MariaDB [amavisd]&gt; select * from policy;
+----+-------------+-------------+------------+-----------------+--------------------+------------------+---------------------+--------------------+----------------------+----------------------+---------------------+--------------------+----------------------+-------------------------+--------------------------+---------------------+-----------------------+----------------+-----------------+-----------------+-----------------+-----------------------+------------------------------+----------------------+---------------------+-----------------------+---------------------------+----------------+-----------------+---------------+----------------+-------------+--------------+------------------+------------+------------------+-------------------+-------------------+--------------------+------------------+--------------------+----------------+-------------+-------------+
| id | policy_name | virus_lover | spam_lover | unchecked_lover | banned_files_lover | bad_header_lover | bypass_virus_checks | bypass_spam_checks | bypass_banned_checks | bypass_header_checks | virus_quarantine_to | spam_quarantine_to | banned_quarantine_to | unchecked_quarantine_to | bad_header_quarantine_to | clean_quarantine_to | archive_quarantine_to | spam_tag_level | spam_tag2_level | spam_tag3_level | spam_kill_level | spam_dsn_cutoff_level | spam_quarantine_cutoff_level | addr_extension_virus | addr_extension_spam | addr_extension_banned | addr_extension_bad_header | warnvirusrecip | warnbannedrecip | warnbadhrecip | newvirus_admin | virus_admin | banned_admin | bad_header_admin | spam_admin | spam_subject_tag | spam_subject_tag2 | spam_subject_tag3 | message_size_limit | banned_rulenames | disclaimer_options | forward_method | sa_userconf | sa_username |
+----+-------------+-------------+------------+-----------------+--------------------+------------------+---------------------+--------------------+----------------------+----------------------+---------------------+--------------------+----------------------+-------------------------+--------------------------+---------------------+-----------------------+----------------+-----------------+-----------------+-----------------+-----------------------+------------------------------+----------------------+---------------------+-----------------------+---------------------------+----------------+-----------------+---------------+----------------+-------------+--------------+------------------+------------+------------------+-------------------+-------------------+--------------------+------------------+--------------------+----------------+-------------+-------------+
|  1 | @.          | N           | N          | NULL            | N                  | N                | N                   | N                  | N                    | N                    | virus-quarantine    | spam-quarantine    | banned-quarantine    | NULL                    | bad-header-quarantine    | NULL                | NULL                  |           -100 |               3 |               3 |               6 |                  NULL |                         NULL | NULL                 | NULL                | NULL                  | NULL                      | NULL           | NULL            | NULL          | NULL           | NULL        | NULL         | NULL             | NULL       | NULL             | [SPAM]            | [SPAM]            |               NULL |                  | NULL               | NULL           | NULL        | NULL        |
+----+-------------+-------------+------------+-----------------+--------------------+------------------+---------------------+--------------------+----------------------+----------------------+---------------------+--------------------+----------------------+-------------------------+--------------------------+---------------------+-----------------------+----------------+-----------------+-----------------+-----------------+-----------------------+------------------------------+----------------------+---------------------+-----------------------+---------------------------+----------------+-----------------+---------------+----------------+-------------+--------------+------------------+------------+------------------+-------------------+-------------------+--------------------+------------------+--------------------+----------------+-------------+-------------+</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CP)]]></author>
			<pubDate>Tue, 31 Mar 2026 08:55:05 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91841.html#p91841</guid>
		</item>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91834.html#p91834</link>
			<description><![CDATA[<p>- Please set value of `spam_tag_level` column to NULL for all records in `amavisd.policy`, so that only spams get the `[SPAM]` prefix in subject.<br />- Or, disable the `Always insert X-Spam-* headers` option in `Server Settings` -&gt; `Spam Policy`, disable same options in domain and user profile pages.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 30 Mar 2026 14:35:33 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91834.html#p91834</guid>
		</item>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91831.html#p91831</link>
			<description><![CDATA[<p>Sorry, but the shell command is not fixing the issue for me.</p><p>Toggling on:<br /></p><div class="codebox"><pre><code>Prefix text [SPAM] to the subject of spam</code></pre></div><p>writes back &quot;[SPAM]&quot; string in the fields spam_subject_tag, spam_subject_tag2 and spam_subject_tag3</p><p>running the script sets the fields to NULL, <strong>but also disables the functionality that marks mails as SPAM when score is between Mark value and Block/Quarantine value.</strong></p><p>Here is contents of policy table after I toggle &quot;Prefix etc..&quot;:</p><div class="codebox"><pre><code>MariaDB [amavisd]&gt; select * from policy;
+----+-------------+-------------+------------+-----------------+--------------------+------------------+---------------------+--------------------+----------------------+----------------------+---------------------+--------------------+----------------------+-------------------------+--------------------------+---------------------+-----------------------+----------------+-----------------+-----------------+-----------------+-----------------------+------------------------------+----------------------+---------------------+-----------------------+---------------------------+----------------+-----------------+---------------+----------------+-------------+--------------+------------------+------------+------------------+-------------------+-------------------+--------------------+------------------+--------------------+----------------+-------------+-------------+
| id | policy_name | virus_lover | spam_lover | unchecked_lover | banned_files_lover | bad_header_lover | bypass_virus_checks | bypass_spam_checks | bypass_banned_checks | bypass_header_checks | virus_quarantine_to | spam_quarantine_to | banned_quarantine_to | unchecked_quarantine_to | bad_header_quarantine_to | clean_quarantine_to | archive_quarantine_to | spam_tag_level | spam_tag2_level | spam_tag3_level | spam_kill_level | spam_dsn_cutoff_level | spam_quarantine_cutoff_level | addr_extension_virus | addr_extension_spam | addr_extension_banned | addr_extension_bad_header | warnvirusrecip | warnbannedrecip | warnbadhrecip | newvirus_admin | virus_admin | banned_admin | bad_header_admin | spam_admin | spam_subject_tag | spam_subject_tag2 | spam_subject_tag3 | message_size_limit | banned_rulenames | disclaimer_options | forward_method | sa_userconf | sa_username |
+----+-------------+-------------+------------+-----------------+--------------------+------------------+---------------------+--------------------+----------------------+----------------------+---------------------+--------------------+----------------------+-------------------------+--------------------------+---------------------+-----------------------+----------------+-----------------+-----------------+-----------------+-----------------------+------------------------------+----------------------+---------------------+-----------------------+---------------------------+----------------+-----------------+---------------+----------------+-------------+--------------+------------------+------------+------------------+-------------------+-------------------+--------------------+------------------+--------------------+----------------+-------------+-------------+
|  1 | @.          | N           | N          | NULL            | N                  | N                | N                   | N                  | N                    | N                    | virus-quarantine    | spam-quarantine    | banned-quarantine    | NULL                    | bad-header-quarantine    | NULL                | NULL                  |           -100 |               3 |               3 |               6 |                  NULL |                         NULL | NULL                 | NULL                | NULL                  | NULL                      | NULL           | NULL            | NULL          | NULL           | NULL        | NULL         | NULL             | NULL       | [SPAM]           | [SPAM]            | [SPAM]            |               NULL |                  | NULL               | NULL           | NULL        | NULL        |
+----+-------------+-------------+------------+-----------------+--------------------+------------------+---------------------+--------------------+----------------------+----------------------+---------------------+--------------------+----------------------+-------------------------+--------------------------+---------------------+-----------------------+----------------+-----------------+-----------------+-----------------+-----------------------+------------------------------+----------------------+---------------------+-----------------------+---------------------------+----------------+-----------------+---------------+----------------+-------------+--------------+------------------+------------+------------------+-------------------+-------------------+--------------------+------------------+--------------------+----------------+-------------+-------------+</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CP)]]></author>
			<pubDate>Mon, 30 Mar 2026 12:25:18 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91831.html#p91831</guid>
		</item>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91829.html#p91829</link>
			<description><![CDATA[<p>Thanks, that seems to have fixed it.</p>]]></description>
			<author><![CDATA[null@example.com (Brian D. L)]]></author>
			<pubDate>Sat, 28 Mar 2026 11:55:15 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91829.html#p91829</guid>
		</item>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91822.html#p91822</link>
			<description><![CDATA[<p>Please run shell command as root user to fix it:<br /></p><div class="codebox"><pre><code>mysql amavisd -e &quot;UPDATE policy SET spam_subject_tag=NULL,spam_subject_tag2=NULL,spam_subject_tag3=NULL;&quot;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 27 Mar 2026 16:24:47 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91822.html#p91822</guid>
		</item>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91821.html#p91821</link>
			<description><![CDATA[<p>Glad I&#039;m not the only one... Same issue here.</p>]]></description>
			<author><![CDATA[null@example.com (Brian D. L)]]></author>
			<pubDate>Fri, 27 Mar 2026 13:43:21 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91821.html#p91821</guid>
		</item>
		<item>
			<title><![CDATA[Re: all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91818.html#p91818</link>
			<description><![CDATA[<p>example:</p><div class="codebox"><pre><code>...
X-Virus-Scanned: Debian amavisd-new at ...
X-Spam-Flag: NO
X-Spam-Score: -2.092
X-Spam-Level:
X-Spam-Status: No, score=-2.092 tagged_above=-100 required=3.05
    tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
    DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
    HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001,
    RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
    RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001,
    RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
    RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001,
    SPF_PASS=-0.001] autolearn=ham autolearn_force=no
...
Subject: [SPAM] PROVA4
...</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (CP)]]></author>
			<pubDate>Thu, 26 Mar 2026 15:15:03 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91818.html#p91818</guid>
		</item>
		<item>
			<title><![CDATA[all received mail marked with [SPAM] after iRedMail EE v1.7.0 upgrade]]></title>
			<link>https://forum.iredmail.org/post91817.html#p91817</link>
			<description><![CDATA[<p>==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====<br />- iRedMail version (check /etc/iredmail-release): EE v1.7.0 (latest)<br />- Deployed with iRedMail Easy or the downloadable installer? installer<br />- Linux/BSD distribution name and version: Ubuntu 22.04.5 LTS<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 (using iRedMail EE)<br />- [IMPORTANT] Related original log or error message is required if you&#039;re experiencing an issue.<br />====</p><p>After upgrading to iRedMail EE v1.7.0, *all* received mail is marked with prefix text [SPAM] in subject.</p><p>Changing &quot;Mark mail as spam&quot; score *AND* toggling off &quot;Prefix text [SPAM] to the subject of spam&quot;, removes the [SPAM] prefix.</p><p>Toggling on &quot;Prefix text [SPAM] to the subject of spam&quot; marks again *all* received iswith [SPAM] prefix.</p>]]></description>
			<author><![CDATA[null@example.com (CP)]]></author>
			<pubDate>Thu, 26 Mar 2026 14:55:33 +0000</pubDate>
			<guid>https://forum.iredmail.org/post91817.html#p91817</guid>
		</item>
	</channel>
</rss>
