<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SpamAssassin Bayes training in a single-user procmail setup</title>
	<atom:link href="http://www.dankohn.com/archives/321/feed" rel="self" type="application/rss+xml" />
	<link>http://www.dankohn.com/archives/321</link>
	<description>Freedom of the press belongs to those who own one. - A.J. Liebling</description>
	<lastBuildDate>Mon, 09 Nov 2009 22:40:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: The Anarcat</title>
		<link>http://www.dankohn.com/archives/321/comment-page-1#comment-37</link>
		<dc:creator>The Anarcat</dc:creator>
		<pubDate>Thu, 27 Nov 2003 15:42:02 +0000</pubDate>
		<guid isPermaLink="false">http://dankohn.flydash.com/archives/321#comment-37</guid>
		<description>Even better... I hated the idea of offering on a silver platter the learning addresses to spammers, so I made the learning pipe also send me the email after. If someone misuses the thing, I can notice and take action (either take the address private or simply off).

An &quot;X-Learned-As&quot; header is also added to notified me spamassassin has learned from the email. Also note that &quot;EXTENSION&quot; does not exist by default in procmail. Often, the extension is passed as the first argument ($1), so I had to add &quot;EXTENSION=$1&quot; to my procmailrc to make this work:

# +ham&#124;spam is a learning adress: ham is *good*, spam is *bad*
:0
* EXTENSION ?? ham&#124;spam
* &lt; 256000
{
  :0cw: spamassassin.spamlock
  &#124; sa-learn --$EXTENSION

  :0fw
  &#124; formail -a&quot;X-Learned-As: $EXTENSION&quot;
}
# after here, mail is delivered as usual


Usually, the result is that mail that I forward to my +ham adress comes back as confirmed &quot;ham&quot; and mail sent to +spam ends up in the rat&#039;s hole &quot;junk&quot; folder. :) If I received something as &quot;ham&quot; and it is not, I can always feed it back to the +spam adress and spamassassin will forget that it is ham.
</description>
		<content:encoded><![CDATA[<p>Even better&#8230; I hated the idea of offering on a silver platter the learning addresses to spammers, so I made the learning pipe also send me the email after. If someone misuses the thing, I can notice and take action (either take the address private or simply off).</p>
<p>An &#8220;X-Learned-As&#8221; header is also added to notified me spamassassin has learned from the email. Also note that &#8220;EXTENSION&#8221; does not exist by default in procmail. Often, the extension is passed as the first argument ($1), so I had to add &#8220;EXTENSION=$1&#8243; to my procmailrc to make this work:</p>
<p># +ham|spam is a learning adress: ham is *good*, spam is *bad*<br />
:0<br />
* EXTENSION ?? ham|spam<br />
* &lt; 256000<br />
{<br />
  :0cw: spamassassin.spamlock<br />
  | sa-learn &#8211;$EXTENSION</p>
<p>  :0fw<br />
  | formail -a&#8221;X-Learned-As: $EXTENSION&#8221;<br />
}<br />
# after here, mail is delivered as usual</p>
<p>Usually, the result is that mail that I forward to my +ham adress comes back as confirmed &#8220;ham&#8221; and mail sent to +spam ends up in the rat&#8217;s hole &#8220;junk&#8221; folder. <img src='http://www.dankohn.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  If I received something as &#8220;ham&#8221; and it is not, I can always feed it back to the +spam adress and spamassassin will forget that it is ham.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Another alternative</title>
		<link>http://www.dankohn.com/archives/321/comment-page-1#comment-36</link>
		<dc:creator>Another alternative</dc:creator>
		<pubDate>Fri, 24 Oct 2003 17:43:05 +0000</pubDate>
		<guid isPermaLink="false">http://dankohn.flydash.com/archives/321#comment-36</guid>
		<description>If you know how to configure your SMTP server to handle them, an even better alternative might be to use address extensions so that you can handle multiple users on the same server.  eg Assuming you&#039;ve set the environment variable EXTENSION based on the extension, you can do:

:0
* EXTENSION ?? ham&#124;spam
* &lt; 256000
&#124; sa-learn --$EXTENSION

That way you can send to eg craig+ham@example.com or craig+spam@example.com and have the thing auto-learn for that user.  user2+spam@example.com will learn for user2


Also worth noting that you probably want a check how the mail is getting to those addresses -- probably in your SMTP server you want to verify the MAIL FROM so that spammers can&#039;t just send mail to your ham address!</description>
		<content:encoded><![CDATA[<p>If you know how to configure your SMTP server to handle them, an even better alternative might be to use address extensions so that you can handle multiple users on the same server.  eg Assuming you&#8217;ve set the environment variable EXTENSION based on the extension, you can do:</p>
<p>:0<br />
* EXTENSION ?? ham|spam<br />
* &lt; 256000<br />
| sa-learn &#8211;$EXTENSION</p>
<p>That way you can send to eg <a href="mailto:craig+ham@example.com">craig+ham@example.com</a> or <a href="mailto:craig+spam@example.com">craig+spam@example.com</a> and have the thing auto-learn for that user.  <a href="mailto:user2+spam@example.com">user2+spam@example.com</a> will learn for user2</p>
<p>Also worth noting that you probably want a check how the mail is getting to those addresses &#8212; probably in your SMTP server you want to verify the MAIL FROM so that spammers can&#8217;t just send mail to your ham address!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Kohn</title>
		<link>http://www.dankohn.com/archives/321/comment-page-1#comment-35</link>
		<dc:creator>Dan Kohn</dc:creator>
		<pubDate>Sun, 19 Oct 2003 19:41:02 +0000</pubDate>
		<guid isPermaLink="false">http://dankohn.flydash.com/archives/321#comment-35</guid>
		<description>An even better strategy may be to move the offending false negative spam into a Public Folder, then access it as an IMAP folder.  This preserves the full headers, which can significantly improve the Bayes training.  Here&#039;s a Perl script to do just that:

&lt;a href=&quot;http://marc.theaimsgroup.com/?l=spamassassin-talk&amp;m=104806917615490&amp;w=2&quot; rel=&quot;nofollow&quot;&gt;http://marc.theaimsgroup.com/?l=spamassassin-talk&amp;m=104806917615490&amp;w=2&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>An even better strategy may be to move the offending false negative spam into a Public Folder, then access it as an IMAP folder.  This preserves the full headers, which can significantly improve the Bayes training.  Here&#8217;s a Perl script to do just that:</p>
<p><a href="http://marc.theaimsgroup.com/?l=spamassassin-talk&#038;m=104806917615490&#038;w=2" rel="nofollow">http://marc.theaimsgroup.com/?l=spamassassin-talk&#038;m=104806917615490&#038;w=2</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.339 seconds -->
