<?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: Apache2 : webserver sending spam &#8211; how to find out what is sending it.</title>
	<atom:link href="http://www.halecomm.net/blog/2010/04/apache2-webserver-sending-spam-how-to-find-out-what-is-sending-it/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.halecomm.net/blog/2010/04/apache2-webserver-sending-spam-how-to-find-out-what-is-sending-it/</link>
	<description>To boldly code where no man has ever coded before</description>
	<lastBuildDate>Mon, 23 Jan 2012 08:04:51 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Paul Frost</title>
		<link>http://www.halecomm.net/blog/2010/04/apache2-webserver-sending-spam-how-to-find-out-what-is-sending-it/comment-page-1/#comment-620</link>
		<dc:creator>Paul Frost</dc:creator>
		<pubDate>Mon, 14 Mar 2011 03:37:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecomm.net/blog/?p=134#comment-620</guid>
		<description>&lt;a href=&quot;#comment-588&quot; rel=&quot;nofollow&quot;&gt;@Matt&lt;/a&gt; 
I tried this script on a older cent0s box and it failed.  I checked my message log and found that php 4 did not have a file_put_contents() function.  I found one on the php.net site in the comments for file_put_contents().  Add this to the phpsendmail file under the comment at the top of the script and it should fix your problem.

function file_put_contents($filename, $data) {
  $f = @fopen($filename, &#039;w&#039;);
  if (!$f) {
    return false;
  } else {
    $bytes = fwrite($f, $data);
    fclose($f);
    return $bytes;
  }
}</description>
		<content:encoded><![CDATA[<p><a href="#comment-588" rel="nofollow">@Matt</a><br />
I tried this script on a older cent0s box and it failed.  I checked my message log and found that php 4 did not have a file_put_contents() function.  I found one on the php.net site in the comments for file_put_contents().  Add this to the phpsendmail file under the comment at the top of the script and it should fix your problem.</p>
<p>function file_put_contents($filename, $data) {<br />
  $f = @fopen($filename, &#8216;w&#8217;);<br />
  if (!$f) {<br />
    return false;<br />
  } else {<br />
    $bytes = fwrite($f, $data);<br />
    fclose($f);<br />
    return $bytes;<br />
  }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://www.halecomm.net/blog/2010/04/apache2-webserver-sending-spam-how-to-find-out-what-is-sending-it/comment-page-1/#comment-588</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 13 Jan 2011 19:11:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecomm.net/blog/?p=134#comment-588</guid>
		<description>Tried this and when I changed the php.ini file send mail stopped working. The binary is in the same place and I checked the file permissions. Using FreeBSD.</description>
		<content:encoded><![CDATA[<p>Tried this and when I changed the php.ini file send mail stopped working. The binary is in the same place and I checked the file permissions. Using FreeBSD.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ronaldo</title>
		<link>http://www.halecomm.net/blog/2010/04/apache2-webserver-sending-spam-how-to-find-out-what-is-sending-it/comment-page-1/#comment-560</link>
		<dc:creator>Ronaldo</dc:creator>
		<pubDate>Thu, 09 Dec 2010 17:52:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.halecomm.net/blog/?p=134#comment-560</guid>
		<description>Really helpful, great work. Thank you!</description>
		<content:encoded><![CDATA[<p>Really helpful, great work. Thank you!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

