<?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>Halfslide Design Blog - Austin, Texas Website Design &#187; postfix</title>
	<atom:link href="http://www.halfslide.com/blog/tag/postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halfslide.com/blog</link>
	<description>Austin, Texas Website Design</description>
	<lastBuildDate>Tue, 03 Aug 2010 19:52:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dropping Spam with Postfix and SpamAssassin on GoDaddy&#8217;s Dedicated Servers</title>
		<link>http://www.halfslide.com/blog/2010/01/30/dropping-spam-with-postfix-and-spamassassin-on-godaddys-dedicated-servers/</link>
		<comments>http://www.halfslide.com/blog/2010/01/30/dropping-spam-with-postfix-and-spamassassin-on-godaddys-dedicated-servers/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 17:26:33 +0000</pubDate>
		<dc:creator>peter</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[godaddy]]></category>
		<category><![CDATA[godaddy dedicated server]]></category>
		<category><![CDATA[header_checks]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamassassin]]></category>

		<guid isPermaLink="false">http://www.halfslide.com/blog/?p=105</guid>
		<description><![CDATA[We recently ran into a situation where one of our users was receiving a large amount of spam to their forwarded email account. Our setup is a dedicated server running Simple Control Panel at Godaddy. We handle email for a few clients and this one in particular was receiving 100&#8217;s of spam emails every hour.  [...]]]></description>
			<content:encoded><![CDATA[<p>We recently ran into a situation where one of our users was receiving a large amount of spam to their forwarded email account. Our setup is a dedicated server running Simple Control Panel at Godaddy. We handle email for a few clients and this one in particular was receiving 100&#8217;s of spam emails every hour.  Pretty much as soon as we set up this client, we started hitting our <a title="1,000 SMTP Relay Limit Godaddy" href="http://jimwarholic.com/2008/01/godaddy-1000-emails-smtp-relay-limit.php" target="_blank">1,000 SMTP Relay limit</a> which prevented us from sending any further emails for any other client on the server.</p>
<p>There is a simple fix to this that I had a difficult time finding so I decided to create a post on this for anyone else who might run into this issue.</p>
<p>The first thing I tried was to turn on SpamAssassin through the Simple Control Panel (log in to your control panel, choose &#8220;Email&#8221; from the &#8220;Server Configuration&#8221; section, and choose &#8220;Filter incoming email using SpamAssassin&#8221;).  The result of this is that SpamAssassin started analyzing the emails coming in and marking them as Spam.  This didn&#8217;t fix the problem because the emails were not being dropped, but were instead being forwarded onto the receipient, just now with the &#8220;SPAM&#8221; designation in the message subject.</p>
<p>The only solution I discovered was to utilize Postfix&#8217;s header_checks.  This uses a regular expression to check the header of the email message and then apply a rule to the message accordingly.  Here&#8217;s what we did.</p>
<ol>
<li>edit the /etc/postfix/header_checks file.</li>
<li>add the following line to the bottom of the file:<br />
<blockquote class="code"><p>/^X-Spam-Flag:.YES/ DISCARD spam</p></blockquote>
</li>
<li>edit the /etc/postfix/main.cf file an make sure the following line is in your file (it may just be commented out):<br />
<blockquote class="code"><p>header_checks = regexp:/etc/postfix/header_checks</p></blockquote>
</li>
<li>Now restart your postfix process by using the following command:<br />
<blockquote class="code"><p>postfix reload</p></blockquote>
</li>
</ol>
<p>What this does is look for the existence of &#8220;X-Spam-Flag&#8221; in the header of the message.  This flag is put there by SpamAssassin, so it is important that SpamAssassin is running.  Once it sees the &#8220;X-Spam-Flag&#8221;, it will discard the message.  This will effectively prevent your server from forwarding any spam emails onto your user&#8217;s email accounts.  So far this has worked out well for us.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.halfslide.com/blog/2010/01/30/dropping-spam-with-postfix-and-spamassassin-on-godaddys-dedicated-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
