<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Racker Hacker &#187; procmail</title>
	<atom:link href="http://rackerhacker.com/tag/procmail/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Fri, 03 Feb 2012 04:29:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Basic procmail configuration with spamassassin filtering</title>
		<link>http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/</link>
		<comments>http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/#comments</comments>
		<pubDate>Wed, 13 Aug 2008 17:00:48 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[procmail]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=326</guid>
		<description><![CDATA[I've used this extremely basic procmail configuration a million times, and it's a great start for any server configuration. It passes e-mails through spamassassin (if they're smaller than 256KB) and then filters any e-mail marked as spam to /dev/null: LOGFILE=/var/log/procmail.log DROPPRIVS=yes :0fw &#124; /usr/bin/spamc :0 * ^X-Spam-Status: Yes /dev/null Of course, you can make this [...]<p><a href="http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/">Basic procmail configuration with spamassassin filtering</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>I've used this extremely basic procmail configuration a million times, and it's a great start for any server configuration.  It passes e-mails through spamassassin (if they're smaller than 256KB) and then filters any e-mail marked as spam to /dev/null:</p>
<p><code>LOGFILE=/var/log/procmail.log<br />
DROPPRIVS=yes</p>
<p>:0fw<br />
| /usr/bin/spamc</p>
<p>:0<br />
* ^X-Spam-Status: Yes<br />
/dev/null</code></p>
<p>Of course, you can make this much more complicated with some additional customization.</p>
<p><a href="http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/">Basic procmail configuration with spamassassin filtering</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2008/08/13/basic-procmail-configuration-with-spamassassin-filtering/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sort e-mail in Plesk with procmail</title>
		<link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/</link>
		<comments>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 18:27:26 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[mail]]></category>
		<category><![CDATA[plesk]]></category>
		<category><![CDATA[procmail]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/</guid>
		<description><![CDATA[One of my biggest beefs with Plesk's e-mail handling is the lack of server-side filtering. Plesk will only allow you to throw away e-mails marked as spam, but this won't work for me since SpamAssassin marks some mails as spam that actually aren't. If you set up filters in SquirrelMail or Horde, the filters will [...]<p><a href="http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/">Sort e-mail in Plesk with procmail</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>One of my biggest beefs with Plesk's e-mail handling is the lack of server-side filtering.  Plesk will only allow you to throw away e-mails marked as spam, but this won't work for me since SpamAssassin marks some mails as spam that actually aren't.  If you set up filters in SquirrelMail or Horde, the filters will only work if you <strong>always</strong> log into the webmail interface to snag your e-mail.</p>
<p>Luckily, you can do some fancy work with procmail to have the filtering done server-side.</p>
<p>First, make sure procmail is installed on your server, and change to this directory:</p>
<p>/var/qmail/mailnames/yourdomain.com/yourusername/</p>
<p>Inside that directory, drop in a .procmailrc file which contains the following:</p>
<p><code>MAILDIR=/var/qmail/mailnames/yourdomain.com/yourusername/Maildir<br />
DEFAULT=${MAILDIR}/<br />
SPAMDIR=${MAILDIR}/.Junk/<br />
:0<br />
* ^X-Spam-Status: Yes.*<br />
${SPAMDIR}</code></p>
<p>Once that file is in place, move the .qmail file out of the way, and replace it with this:</p>
<p><code>| /usr/local/psa/bin/psa-spamc accept<br />
|preline /usr/bin/procmail -m -o .procmailrc</code></p>
<p>Please be aware that these changes will disappear if you make any adjustments to your mail configuration within Plesk.  To get around this annoyance, just change the file attributes to immutable:</p>
<p><code># chattr +i .qmail .procmailrc</code></p>
<p><em>Credit for this trick goes to <a href="http://www.russwittmann.com/2007/07/14/server-side-mail-filtering-using-qmailprocmail-under-plesk/">Russ Wittmann</a>.</em></p>
<p><a href="http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/">Sort e-mail in Plesk with procmail</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>

