<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[iRedMail — Spam tagging and spam threshold]]></title>
		<link>https://forum.iredmail.org/topic14038-spam-tagging-and-spam-threshold.html</link>
		<atom:link href="https://forum.iredmail.org/feed-rss-topic14038.xml" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Spam tagging and spam threshold.]]></description>
		<lastBuildDate>Sat, 19 Feb 2022 15:21:58 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post82279.html#p82279</link>
			<description><![CDATA[<div class="quotebox"><cite>meszaros.karoly wrote:</cite><blockquote><p>Does anyone have any suggestions?</p></blockquote></div><p>I migrated my iRedMail box to Debian and have not had this problem there. Sorry, can&#039;t comment on the correctness of the data typing change.</p>]]></description>
			<author><![CDATA[null@example.com (cvcvelo)]]></author>
			<pubDate>Sat, 19 Feb 2022 15:21:58 +0000</pubDate>
			<guid>https://forum.iredmail.org/post82279.html#p82279</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post82278.html#p82278</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><div class="quotebox"><cite>nuwinfo wrote:</cite><blockquote><p>Are there any news here?</p></blockquote></div><p>No plan to switch to rspamd shortly. sorry.<br />Amavisd-new is still active: <a href="https://gitlab.com/amavis/amavis">https://gitlab.com/amavis/amavis</a></p></blockquote></div><br /><p>I have the same problem.<br />amavisd-new-2.12.2, perl5 (revision 5 version 34 subversion 0), 10.5.15-MariaDB, for FreeBSD13.0</p><p>I wrote a &quot;check&quot; perl script that reads the policy table values. Here the float values are displayed correctly (3.000 , 6.900, etc). However, the amavisd-new log shows spam_tag_level=&gt;&quot;0&quot;, so I suspect a faulty value conversion for amavisd (and not due to p5-DBD-mysql).</p><p>As a workaround, I changed the float type in the database to varchar and -for now- it seems fine.</p><p>Am I wrong? Does anyone have any suggestions?</p><p>Regard<br />k</p>]]></description>
			<author><![CDATA[null@example.com (meszaros.karoly)]]></author>
			<pubDate>Sat, 19 Feb 2022 15:10:31 +0000</pubDate>
			<guid>https://forum.iredmail.org/post82278.html#p82278</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post71392.html#p71392</link>
			<description><![CDATA[<div class="quotebox"><cite>nuwinfo wrote:</cite><blockquote><p>Are there any news here?</p></blockquote></div><p>No plan to switch to rspamd shortly. sorry.<br />Amavisd-new is still active: <a href="https://gitlab.com/amavis/amavis">https://gitlab.com/amavis/amavis</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Mon, 04 Nov 2019 04:37:53 +0000</pubDate>
			<guid>https://forum.iredmail.org/post71392.html#p71392</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post71345.html#p71345</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>rspamd is on my radar. If no more development/maintenance happened to Amavisd-new, we may switch to rspamd in 2019.</p></blockquote></div><p>Are there any news here?</p>]]></description>
			<author><![CDATA[null@example.com (nuwinfo)]]></author>
			<pubDate>Thu, 31 Oct 2019 13:57:18 +0000</pubDate>
			<guid>https://forum.iredmail.org/post71345.html#p71345</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post65688.html#p65688</link>
			<description><![CDATA[<p>rspamd is on my radar. If no more development/maintenance happened to Amavisd-new, we may switch to rspamd in 2019.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Tue, 09 Oct 2018 08:39:02 +0000</pubDate>
			<guid>https://forum.iredmail.org/post65688.html#p65688</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post65680.html#p65680</link>
			<description><![CDATA[<p>An update: 30 days ago I filed bug 231250 against amavisd-new in the FreeBSD bugzilla database, and contacted the port maintainer about a week before that. There&#039;s been no response to either post.</p><p>Since then there has been a long thread on the amavisd-new mailing list concluding that further development of amavisd-new is dead. </p><p>Postfix guru Ralf Hildebrandt noted that his organization, a German telecommunications company, recently migrated away from amavisd-new and now uses rspamd instead:</p><p><a href="https://github.com/rspamd/rspamd">https://github.com/rspamd/rspamd</a></p><p>I have no experience with rspamd. What I can say at this point is that:</p><p>(1) the root cause of the bad tags is in the way amavisd-new handles perl data types such as perl doubles; </p><p>(2) the likelihood of a fix in amavisd-new is approximately 0.00 percent; and </p><p>(3) it&#039;s probably time to start looking at alternatives to amavisd-new.</p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (cvcvelo)]]></author>
			<pubDate>Mon, 08 Oct 2018 17:35:19 +0000</pubDate>
			<guid>https://forum.iredmail.org/post65680.html#p65680</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post65129.html#p65129</link>
			<description><![CDATA[<p>You&#039;d better file bugs for all. <img src="https://forum.iredmail.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 02 Sep 2018 15:38:47 +0000</pubDate>
			<guid>https://forum.iredmail.org/post65129.html#p65129</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post65126.html#p65126</link>
			<description><![CDATA[<p>Thanks, ZHB. I’m doing option 1 now, and just yesterday upgraded ports using “portmaster -aD -x p5-DBD-mysql” — not a great option considering 4.037 has other security vulnerabilities.</p><p>I’m already doing option 4, but so far have not heard anything back from the port maintainer or the amavisd mailing list. I may also file a bug report against one or both packages in the FreeBSD bugzilla bug tracker.</p><p>BTW there’s also this thread claiming it’s an amavisd problem:</p><p><a href="https://de.postfix.org/pipermail/amavis-users/2017-January/004711.html">https://de.postfix.org/pipermail/amavis … 04711.html</a></p><p>Quoting: &quot;The change is that [as of 4.038] p5-DBD-mysql now returns mysql doubles as perl doubles and mysql floats as perl floats (and not as a string anymore). This should be adressed [sic] by amavisd.&quot;</p><p>I don’t know which port is at fault but will files bugs against both since the bottom line is that one of them returns bad data.</p><p>Thanks again.</p>]]></description>
			<author><![CDATA[null@example.com (cvcvelo)]]></author>
			<pubDate>Sun, 02 Sep 2018 15:28:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post65126.html#p65126</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post65115.html#p65115</link>
			<description><![CDATA[<p>- Both 1+3 will cause some issue during package upgrade. you have to skip this package.<br />- #2 is ok, but if this is a production server, the cost may be higher than 1 or 3.</p><p>Here&#039;s option 4:</p><p>Contact software developer and package maintainer, push them to fix it and release a new version.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Sun, 02 Sep 2018 15:09:44 +0000</pubDate>
			<guid>https://forum.iredmail.org/post65115.html#p65115</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post65034.html#p65034</link>
			<description><![CDATA[<p>After much research, I now believe the root cause of the tagged_above=0 headers is a type-conversion bug in the p5-DBD-mysql module:</p><p><a href="https://github.com/perl5-dbi/DBD-mysql/issues/78">https://github.com/perl5-dbi/DBD-mysql/issues/78</a></p><p><a href="https://lists.amavis.org/pipermail/amavis-users/2016-December/004674.html">https://lists.amavis.org/pipermail/amav … 04674.html</a></p><p>This explains why user amavisd gets correct results in MySQL queries but iRedMail lookups get incorrect (0) results. </p><p>My options are these: </p><p>1. Revert to the old p5-DBD-mysql-4.037 module, the last version not to have the type-conversion bug. I have verified that this version does not have the type-conversion bug, and returns expected values from MySQL lookups. However, this is a quite old version (current on FreeBSD is 4.046) and has several other security vulnerabilities.</p><p>2. Switch away from MySQL or MariaDB to PostgreSQL. OpenLDAP isn&#039;t an option for me as I don&#039;t know it, and even switching between SQL databases is, for me, something like changing engines on a jet airline while it&#039;s in the air.</p><p>3. Stay on the current broken 4.046 module and live with a some false positives.</p><p>Of these three options, which would you recommend?</p><p>Thanks!</p>]]></description>
			<author><![CDATA[null@example.com (cvcvelo)]]></author>
			<pubDate>Mon, 27 Aug 2018 15:36:02 +0000</pubDate>
			<guid>https://forum.iredmail.org/post65034.html#p65034</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post63528.html#p63528</link>
			<description><![CDATA[<p>OK, thanks. Please let me know if you need additional details about the amavisd config or database settings.</p><p>The final post in this thread suggests there&#039;s a change in perl or Amavisd which affected SQL queries, but provides no useful details:</p><p><a href="https://www.howtoforge.com/community/threads/amavis-spamassassin-tagged_above-0-tags-leggit-emails-as-spam.75725/">https://www.howtoforge.com/community/th … pam.75725/</a> </p><p>Certainly there is a problem with the tagged_above=0 label, but I don&#039;t know if that&#039;s the only reason for the false positives, or even if it&#039;s related.</p>]]></description>
			<author><![CDATA[null@example.com (cvcvelo)]]></author>
			<pubDate>Fri, 01 Jun 2018 23:04:30 +0000</pubDate>
			<guid>https://forum.iredmail.org/post63528.html#p63528</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post63516.html#p63516</link>
			<description><![CDATA[<div class="quotebox"><cite>cvcvelo wrote:</cite><blockquote><p>What else might explain this? Thanks.</p></blockquote></div><p>I tried to figure it out on another production server, but no result yet. It looks like a Amavisd bug, but not sure.</p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Fri, 01 Jun 2018 08:09:06 +0000</pubDate>
			<guid>https://forum.iredmail.org/post63516.html#p63516</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post63490.html#p63490</link>
			<description><![CDATA[<div class="quotebox"><cite>ZhangHuangbin wrote:</cite><blockquote><p>If you&#039;re running Amavisd-new-2.11.x, could you try this patch for Amavisd and test again?<br /><a href="https://marc.info/?l=amavis-user&amp;m=151828856000591&amp;w=2">https://marc.info/?l=amavis-user&amp;m= … 91&amp;w=2</a></p></blockquote></div><p>Thanks for the speedy reply. This server runs amavisd-new-2.11.0_2,1 and the executable at /usr/local/sbin/amavisd already has the one line added by that patch (but I desintalled, recompiled, and reinstalled the port, then restarted the service, just to be sure).</p><p>Regarding the 0 scores: The system correctly classifies most spam and ham messages. It&#039;s not like it tags every message as spam.</p><p>The problem is the occasional false positive such as the one in the previous example with a score of just 0.105 and the system threshold set in iRedAdmin Pro to 6.0. I have not noticed a pattern, other that false positives often occur with domains new to the system. This is a real problem; the &quot;tagged_above=0&quot; message is annoying but most users don&#039;t read message headers. However, they do notice when &quot;good&quot; stuff ends up in their spam folders or is tagged as spam in the subject line.</p><p>What else might explain this? Thanks.</p>]]></description>
			<author><![CDATA[null@example.com (cvcvelo)]]></author>
			<pubDate>Thu, 31 May 2018 04:02:59 +0000</pubDate>
			<guid>https://forum.iredmail.org/post63490.html#p63490</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post63487.html#p63487</link>
			<description><![CDATA[<p>If you&#039;re running Amavisd-new-2.11.x, could you try this patch for Amavisd and test again?<br /><a href="https://marc.info/?l=amavis-user&amp;m=151828856000591&amp;w=2">https://marc.info/?l=amavis-user&amp;m= … 91&amp;w=2</a></p>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 31 May 2018 03:42:52 +0000</pubDate>
			<guid>https://forum.iredmail.org/post63487.html#p63487</guid>
		</item>
		<item>
			<title><![CDATA[Re: Spam tagging and spam threshold]]></title>
			<link>https://forum.iredmail.org/post63486.html#p63486</link>
			<description><![CDATA[<p>Which Amavisd release are you running? I think this version has some kind of bug. Check this log line:<br /></p><div class="quotebox"><blockquote><p>May 30 17:29:35.825 mail8.example.com /usr/local/sbin/amavisd[93839]: (93839-01) lookup_sql(someuser@domain2.org) matches, result=(id=&gt;&quot;2&quot;, priority=&gt;&quot;0&quot;, policy_id=&gt;&quot;2&quot;, email=&gt;&quot;@.&quot;, fullname=&gt;-, id=&gt;&quot;2&quot;, policy_name=&gt;&quot;@.&quot;, virus_lover=&gt;&quot;N&quot;, spam_lover=&gt;&quot;N&quot;, unchecked_lover=&gt;-, banned_files_lover=&gt;&quot;N&quot;, bad_header_lover=&gt;&quot;N&quot;, bypass_virus_checks=&gt;&quot;N&quot;, bypass_spam_checks=&gt;&quot;N&quot;, bypass_banned_checks=&gt;&quot;N&quot;, bypass_header_checks=&gt;&quot;N&quot;, virus_quarantine_to=&gt;&quot;&quot;, spam_quarantine_to=&gt;&quot;&quot;, banned_quarantine_to=&gt;&quot;&quot;, unchecked_quarantine_to=&gt;-, bad_header_quarantine_to=&gt;&quot;&quot;, clean_quarantine_to=&gt;-, archive_quarantine_to=&gt;-, <span style="color:red">spam_tag_level=&gt;&quot;0&quot;, spam_tag2_level=&gt;&quot;0&quot;, spam_tag3_level=&gt;&quot;0&quot;, spam_kill_level=&gt;&quot;0&quot;</span>, spam_dsn_cutoff_level=&gt;-, spam_quarantine_cutoff_level=&gt;-, addr_extension_virus=&gt;-, addr_extension_spam=&gt;-, addr_extension_banned=&gt;-, addr_extension_bad_header=&gt;-, warnvirusrecip=&gt;-, warnbannedrecip=&gt;-, warnbadhrecip=&gt;-, newvirus_admin=&gt;-, virus_admin=&gt;-, banned_admin=&gt;-, bad_header_admin=&gt;-, spam_admin=&gt;-, spam_subject_tag=&gt;-, spam_subject_tag2=&gt;-, spam_subject_tag3=&gt;-, message_size_limit=&gt;-, banned_rulenames=&gt;-, disclaimer_options=&gt;-, forward_method=&gt;-, sa_userconf=&gt;-, sa_username=&gt;-, id=&gt;&quot;2&quot;, local=&gt;-)</p></blockquote></div><p>It founds the spam policy by sql query, but the spam tag levels are always 0. That&#039;s why Amavisd inserted mail header:<br /></p><div class="codebox"><pre><code> ... tagged_above=0 required=0 ...</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ZhangHuangbin)]]></author>
			<pubDate>Thu, 31 May 2018 03:41:31 +0000</pubDate>
			<guid>https://forum.iredmail.org/post63486.html#p63486</guid>
		</item>
	</channel>
</rss>
