<?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>Dave Lachapelle</title> <atom:link href="http://www.davelachapelle.ca/feed/" rel="self" type="application/rss+xml" /><link>http://www.davelachapelle.ca</link> <description>Web Technology Specialist</description> <lastBuildDate>Thu, 24 Feb 2011 22:29:58 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.5</generator> <item><title>Usage Based Billing (UBB) from a techie&#8217;s perspective</title><link>http://www.davelachapelle.ca/2011/02/24/usage-based-billing-ubb-from-a-techies-perspective/</link> <comments>http://www.davelachapelle.ca/2011/02/24/usage-based-billing-ubb-from-a-techies-perspective/#comments</comments> <pubDate>Thu, 24 Feb 2011 22:29:58 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[Internet]]></category> <category><![CDATA[Personal]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=201</guid> <description><![CDATA[I know a lot of Canadians are weighing in on UBB (not enough mind you) but a good chunk of us are. Meanwhile most other countries are pointing at Canada and laughing. So, I thought I&#8217;d take a few minutes, and jot down my own thoughts on the matter, mostly for my own benefit. In [...]]]></description> <content:encoded><![CDATA[<p>I know a lot of Canadians are weighing in on UBB (not enough mind you) but a good chunk of us are.  Meanwhile most other countries are pointing at Canada and laughing.  So, I thought I&#8217;d take a few minutes, and jot down my own thoughts on the matter, mostly for my own benefit.</p><p>In doing a bit of background research, I happened across a Canadian Heritage parody done by none other than Rick Mercer -- video after the jump.  To summarize -- Canada -- Gouging consumers since the advent of the telegraph.</p><p><span
id="more-201"></span></p><p><span
class="youtube"> <iframe
title="YouTube video player" class="youtube-player" type="text/html" width="480" height="295" src="http://www.youtube.com/embed/q0ZGkqQvAVw?color1=2b405b&amp;color2=6b8ab6&amp;border=0&amp;fs=1&amp;hl=en&amp;autoplay=0&amp;showinfo=0&amp;iv_load_policy=3&amp;showsearch=0&amp;rel=0&amp;hd=1" frameborder="0"></iframe> </span><p><a
href="http://www.youtube.com/watch?v=q0ZGkqQvAVw&fmt=18">www.youtube.com/watch?v=q0ZGkqQvAVw</a></p></p><p>I&#8217;m a self-professed tech guy, and I literally have spent the last 10 years of my life building / working on the web.  I also find things like network stacks / transmission interesting, so I&#8217;ve done a lot of reading on the topic.  So, armed with all that knowledge, I&#8217;ve been following this UBB  scandal with some significant interest.  I should also mention that in my house, we have <a
href="http://www.netflix.ca">Netflix</a> and make liberal use of the <a
href="http://www.boxee.tv">Boxee box</a> that Tania bought me.  With Tania being home / on mat leave -- we can pull anywhere from 3 GB -- 40 GB in a day.  Fortunately we&#8217;re signed up with a smaller ISP (<a
href="http://www.acanac.com">Acanac</a>) who are awesome and provide us unlimited bandwidth over cable for less than Rogers was screwing charging us.</p><p>Now, what does all that have to do with UBB -- well, lets say I was still paying Rogers (for their terrible service / low bandwidth caps) -- I&#8217;d be paying around $60 / month ($46.99 + modem rental + tax) for 60GB of bandwidth with $2 / GB of overage beyond 60GB.  Well, doing some quick math, average usage for my house is 450GB / month -- making my monthly bill from Rogers $840 / month.</p><p>Am I a &#8220;bandwidth hog&#8221;, I wouldn&#8217;t consider myself one, if I&#8217;m paying for 10mbit service, I expect to be able to use that 10mbit whenever and however I want.  If I decide I want to use 10mbit for an entire month, I&#8217;d better be able to pull down 2.5ish TB in a month without incurring overages.</p><p>Now, why am I writing all this -- because I do believe in UBB, go ahead and charge me for my usage, I really don&#8217;t have a problem with that.  The problem I have is with &#8220;what&#8221; they&#8217;re charging me.  Instead of charging me $2.00 / GB over a set limit, why not charge me a reasonable markup on what they pay for bandwidth.  If it costs them $0.05 / GB (which is what most people are estimating it actually costs Bell / Rogers), then they&#8217;d better not charge me more than $0.10 / GB -- plus a flat monthly fee for the connection (something like $20 / month seems reasonable).</p><p>So, if the CRTC decides to make Canadian ISP billing into a more utility based billing, they&#8217;d better damn well put limits on the markup ISPs can charge.  Of course all this is just me speculating -- Bell / Rogers owns the CRTC, and in the end will get what they want.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2011/02/24/usage-based-billing-ubb-from-a-techies-perspective/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Family day weekend / updates</title><link>http://www.davelachapelle.ca/2011/02/22/family-day-weekend-updates/</link> <comments>http://www.davelachapelle.ca/2011/02/22/family-day-weekend-updates/#comments</comments> <pubDate>Tue, 22 Feb 2011 22:53:02 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Personal]]></category> <category><![CDATA[Site Updates]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/2011/02/22/family-day-weekend-updates/</guid> <description><![CDATA[Just a couple updates in case anyone actually reads my blog. I noticed this morning a weird issue with blank page loads in wordpress, which I attribute to a bad caching plugin. I&#8217;ve since switched to a new plugin an the blank page loads seem to have disappeared. I have also re-added ads to my [...]]]></description> <content:encoded><![CDATA[<p>Just a couple updates in case anyone actually reads my blog.  I noticed this morning a weird issue with blank page loads in wordpress, which I attribute to a bad caching plugin.  I&#8217;ve since switched to a new plugin an the blank page loads seem to have disappeared. I have also re-added ads to my blog, for which I apologize.  Since leaving MRX, I&#8217;ve lost access to my free server, and am now paying for a server to host my blog, so I&#8217;m hoping to somewhat offset the costs.</p><p>In other news I had an awesome family day weekend up in Sauble, and while Nathan decided not to sleep at night, it was still somewhat restful and relaxing.  I got some starcraft 2 in with Forrest and realized exactly how much I suck, but we still had a good time.  We also decided to make an iOS game, so I&#8217;m likely going to make a page for it here.  I have my doubts I&#8217;ll actually finish it, but who knows.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2011/02/22/family-day-weekend-updates/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Dealing with OS X resource forks in samba</title><link>http://www.davelachapelle.ca/2010/12/09/dealing-with-os-x-resource-forks-in-samba/</link> <comments>http://www.davelachapelle.ca/2010/12/09/dealing-with-os-x-resource-forks-in-samba/#comments</comments> <pubDate>Thu, 09 Dec 2010 16:22:29 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[Computers]]></category> <category><![CDATA[Servers]]></category> <category><![CDATA[Technology]]></category> <category><![CDATA[Unix]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=194</guid> <description><![CDATA[Figured I&#8217;d put up a quick post. I&#8217;ve been growing more and more annoyed with OS X creating resource forks to some of my mapped samba drives, and after searching high and low for a method of disabling resource fork creation on network drives, I&#8217;ve effectively come up empty handed. Now, that being said, I [...]]]></description> <content:encoded><![CDATA[<p>Figured I&#8217;d put up a quick post.  I&#8217;ve been growing more and more annoyed with OS X creating resource forks to some of my mapped samba drives, and after searching high and low for a method of disabling resource fork creation on network drives, I&#8217;ve effectively come up empty handed.</p><p>Now, that being said, I did come up with a way of dealing with resource fork creation &#8211; while its not exactly elegant, it works.  It just so happens that all my servers are unix based, so to deal with resource fork cleanup, I just added a cronjob to my crontab.  This will delete all of OS X&#8217;s resource fork files in a specific folder (and subfolders).</p><p>0 */1 * * * find /var/www/ -name &#8216;._*&#8217; -print0 | xargs -t0 rm > /dev/null 2>&#038;1</p><p>Note, if you&#8217;re going to use this, change the path (/var/www/) to whatever path you want to cleanup.</p><p>Also &#8211; I take no responsibility for this, make sure you have your data backed up, and all that jazz before you use it.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2010/12/09/dealing-with-os-x-resource-forks-in-samba/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Of blogs and life</title><link>http://www.davelachapelle.ca/2010/03/24/of-blogs-and-life/</link> <comments>http://www.davelachapelle.ca/2010/03/24/of-blogs-and-life/#comments</comments> <pubDate>Wed, 24 Mar 2010 20:49:00 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Personal]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/2010/03/24/of-blogs-and-life/</guid> <description><![CDATA[So, this seems to happen on a fairly regular basis. I decide I like my blog, then spend a bunch of time re-designing it, and then make a few posts and finally forget it for a few months. Well, I&#8217;m hoping to finally break the cycle. I just grabbed the new iPhone app for wordpress [...]]]></description> <content:encoded><![CDATA[<p>So, this seems to happen on a fairly regular basis.  I decide I like my blog, then spend a bunch of time re-designing it, and then make a few posts and finally forget it for a few months.</p><p>Well, I&#8217;m hoping to finally break the cycle.  I just grabbed the new iPhone app for wordpress and am hoping to be able to post quick things happeing in my life, and save the longer posts for when I have time.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2010/03/24/of-blogs-and-life/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>memcached as singleton in symfony «  ESL Developer Blog</title><link>http://www.davelachapelle.ca/2010/02/04/memcached-as-singleton-in-symfony-%c2%ab-esl-developer-blog/</link> <comments>http://www.davelachapelle.ca/2010/02/04/memcached-as-singleton-in-symfony-%c2%ab-esl-developer-blog/#comments</comments> <pubDate>Thu, 04 Feb 2010 19:25:03 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Symfony]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=179</guid> <description><![CDATA[I happened across this today and found it quite interesting &#8211; wanted to document it for later use.  Effectively, its a method for implementing memcached using Propel in Symfony 1.2. memcached as singleton in symfony « ESL Developer Blog.]]></description> <content:encoded><![CDATA[<p>I happened across this today and found it quite interesting &#8211; wanted to document it for later use.  Effectively, its a method for implementing memcached using Propel in Symfony 1.2.</p><p><a
href="http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/">memcached as singleton in symfony «  ESL Developer Blog</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2010/02/04/memcached-as-singleton-in-symfony-%c2%ab-esl-developer-blog/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>9 + 1 Ways ISPs Screw You Over</title><link>http://www.davelachapelle.ca/2009/11/18/9-1-ways-isps-screw-you-over/</link> <comments>http://www.davelachapelle.ca/2009/11/18/9-1-ways-isps-screw-you-over/#comments</comments> <pubDate>Wed, 18 Nov 2009 18:07:06 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[Internet]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=176</guid> <description><![CDATA[Happened across an interesting / simple explanation for those who don&#8217;t know how ISPs screw their customers, and thought I would add another way ISPs screw over their customers. You can read the first 9 ways here: 9 Ways ISPs Screw You Over. 10.  ISPs advertise speeds in a way that only people who have an [...]]]></description> <content:encoded><![CDATA[<p>Happened across an interesting / simple explanation for those who don&#8217;t know how ISPs screw their customers, and thought I would add another way ISPs screw over their customers.</p><p>You can read the first 9 ways here: <a
href="http://www.billshrink.com/blog/9-ways-isps-screw-you/">9 Ways ISPs Screw You Over</a>.</p><p>10.  ISPs advertise speeds in a way that only people who have an understanding of how data is stored can translate.  For example, lets say you pay for a &#8220;10 meg&#8221; connection, thats not actually 10 Megabytes per second you&#8217;re capable of, its actually 10 Megabits.  Now, there&#8217;s quite the difference between Megabits and Megabits, but not so much a difference in the acronyms.  MBps is for Megabytes and Mbps is for Megabits.  The real issue here is if you pay for a 10 Megabit per second connection, your maximum transfer rate is only going to be 1.25 Megabytes per second (there are 8 bits in a byte).  Thats also theoretical, you can very rarely actually achieve the theoretical bandwidth provided by your ISP, unless you&#8217;re trying to load their homepage or hit a url that they detect doesn&#8217;t exist and throw you a page full of ads.</p><p>I&#8217;ve been a long supporter of transparency from ISPs, but we&#8217;re likely never to see that up here in Canada &#8211; at least not until the CRTC cracks down and decides we, the consumers, need some competition and not more monopolies.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2009/11/18/9-1-ways-isps-screw-you-over/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Ubuntu 8.04 iSCSI shutdown</title><link>http://www.davelachapelle.ca/2009/11/17/ubuntu-8-04-iscsi-shutdown/</link> <comments>http://www.davelachapelle.ca/2009/11/17/ubuntu-8-04-iscsi-shutdown/#comments</comments> <pubDate>Tue, 17 Nov 2009 18:02:49 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Computers]]></category> <category><![CDATA[Miscellaneous]]></category> <category><![CDATA[Servers]]></category> <category><![CDATA[Unix]]></category> <category><![CDATA[ubuntu open-iscsi]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=173</guid> <description><![CDATA[Just a quick post today &#8211; I ran into the same issue many many other people seem to have, that being connecting to an iSCSI target in Ubuntu 8.04 means you cannot cleanly shut-down your system as it will hang during the shutdown process. I&#8217;ve been doing a little bit of research as to why [...]]]></description> <content:encoded><![CDATA[<p>Just a quick post today &#8211; I ran into the same issue many many other people seem to have, that being connecting to an iSCSI target in Ubuntu 8.04 means you cannot cleanly shut-down your system as it will hang during the shutdown process.  I&#8217;ve been doing a little bit of research as to why (because obviously this is very bad), and it seems as though whoever wrote the particular version of Open-ISCSI (2.0.865-1ubuntu3.3) decided it would be a good idea to shut down the iSCSI service before unmounting the disks.</p><p>So, I figured out a quick workaround &#8211; simply change the shutdown order, such that Open-ISCSI is shut down after the filesystems have been unmounted.</p><blockquote><p>cd /etc/rc0.d<br
/> sudo mv K25open-iscsi S80open-iscsi</p></blockquote><p>Your rc0.d folder should look something like this:</p><blockquote><p>lrwxrwxrwx 1 root root  17 2009-11-12 10:27 K20sysstat -&gt; ../init.d/sysstat<br
/> lrwxrwxrwx 1 root root  20 2009-11-12 09:28 K25hwclock.sh -&gt; ../init.d/hwclock.sh<br
/> lrwxrwxrwx 1 root root  26 2009-11-12 09:28 K59mountoverflowtmp -&gt; ../init.d/mountoverflowtmp<br
/> -rw-r&#8211;r&#8211; 1 root root 355 2009-01-23 10:01 README<br
/> lrwxrwxrwx 1 root root  22 2009-11-12 09:29 S15wpa-ifupdown -&gt; ../init.d/wpa-ifupdown<br
/> lrwxrwxrwx 1 root root  18 2009-11-12 09:28 S20sendsigs -&gt; ../init.d/sendsigs<br
/> lrwxrwxrwx 1 root root  17 2009-11-12 09:28 S30urandom -&gt; ../init.d/urandom<br
/> lrwxrwxrwx 1 root root  22 2009-11-12 09:28 S31umountnfs.sh -&gt; ../init.d/umountnfs.sh<br
/> lrwxrwxrwx 1 root root  18 2009-11-12 09:28 S40umountfs -&gt; ../init.d/umountfs<br
/> lrwxrwxrwx 1 root root  20 2009-11-12 09:28 S60umountroot -&gt; ../init.d/umountroot<br
/> lrwxrwxrwx 1 root root  20 2009-11-12 10:28 S80open-iscsi -&gt; ../init.d/open-iscsi<br
/> lrwxrwxrwx 1 root root  14 2009-11-12 09:28 S90halt -&gt; ../init.d/halt</p></blockquote><p>Then, next time you reboot, it should unmount the disks and then stop open-iscsi.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2009/11/17/ubuntu-8-04-iscsi-shutdown/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Boxee Blog » a Boxee Box is coming!</title><link>http://www.davelachapelle.ca/2009/11/13/boxee-blog-%c2%bb-a-boxee-box-is-coming/</link> <comments>http://www.davelachapelle.ca/2009/11/13/boxee-blog-%c2%bb-a-boxee-box-is-coming/#comments</comments> <pubDate>Fri, 13 Nov 2009 22:22:06 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[Personal]]></category> <category><![CDATA[Technology]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=171</guid> <description><![CDATA[I happened across this little tidbit as I was scrolling through my RSS feeds.  I&#8217;ve been so busy lately, I haven&#8217;t even had a chance to read half of the entries in my feed reader (most days now I&#8217;ve been just saying mark all as read).  But this one caught my eye.  Apparently Boxee has [...]]]></description> <content:encoded><![CDATA[<p>I happened across this little tidbit as I was scrolling through my RSS feeds.  I&#8217;ve been so busy lately, I haven&#8217;t even had a chance to read half of the entries in my feed reader (most days now I&#8217;ve been just saying mark all as read).  But this one caught my eye.  Apparently Boxee has partnered with a third party to build an actual Boxee Box.  This is definitely good news, and I really hope they can pull it off and come out with a great media center box.  Currently I&#8217;m running Boxee off my AppleTV &#8211; yes Apple, I hacked your stupid AppleTV to run Boxee because you don&#8217;t include XVid or DivX codecs, and thats what all my TV shows are stored in.</p><p>&#8212;Insert Apple Rant here</p><p>This is probably the only time you&#8217;ll hear me rant about Apple &#8211; they brought out this awesome device called the AppleTV, I was super excited by it, has a really nice interface, easy to use, tied to iTunes, and was supposed to make life easier when streaming media to my TV.  Then I found out that they want you to only use the media format they use, which kind of screws anyone with any significant amount of digital video thats not in mp4 format.  Unfortunately I fall into that category, with somewhere around 1.2TB of TV recorded for viewing at my leisure.  To re-encode all of that, I&#8217;d a. have to have a ton of extra hard drive space, and b. way too much time on my hands.  So, really, Apple, get with the times already, just include the codecs in the next AppleTV update and allow me to mount my Samba share on it and I think a lot more people will buy your device.</p><p>&#8212;End Apple Rant</p><p>Even if Apple does include these features &#8211; which they won&#8217;t &#8211; I still think a Boxee box is just what the industry needs to jump-start it.  A lot of other companies have tried to bring out media center boxes, but they all suffer from one critical flaw or another; poor ui, no networking support, poor codec support.  So, I&#8217;m putting my money towards a Boxee box when they come out &#8211; looking forward to finding more details on December 7th during the Boxee Beta release.</p><p><a
href="http://blog.boxee.tv/2009/11/12/a-boxee-box-is-coming/">Boxee Blog » a Boxee Box is coming!</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2009/11/13/boxee-blog-%c2%bb-a-boxee-box-is-coming/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Married Life</title><link>http://www.davelachapelle.ca/2009/10/20/married-life/</link> <comments>http://www.davelachapelle.ca/2009/10/20/married-life/#comments</comments> <pubDate>Tue, 20 Oct 2009 14:54:14 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Personal]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=168</guid> <description><![CDATA[Well, its hard to believe it, but in less than a week, I will have been married for a whole month.  I know that isn&#8217;t all that long a time to be married, but it seems since the wedding everyone asks me how I&#8217;m enjoying married life.  So, I thought I&#8217;d take a few minutes, [...]]]></description> <content:encoded><![CDATA[<p>Well, its hard to believe it, but in less than a week, I will have been married for a whole month.  I know that isn&#8217;t all that long a time to be married, but it seems since the wedding everyone asks me how I&#8217;m enjoying married life.  So, I thought I&#8217;d take a few minutes, collect my thoughts and update my blog (something that really needs to happen much more often).  Now that I&#8217;m not participating in planning a wedding &#8211; I say participating because my wonderful wife really did most of the work &#8211; I really have no excuse for not updating my blog.</p><p>So, the simple answer to everyone&#8217;s question &#8211; how&#8217;s married life &#8211; I think can be summed up as, the same as life before the wedding (minus all the wedding planning).  For anyone out there looking to get married to their long time significant other, I would offer this one piece of advice, don&#8217;t expect radical changes to your relationship post-wedding.</p><p>And thats all the wedding advise I&#8217;ll offer, promise.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2009/10/20/married-life/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>PHP Mail() Abuse</title><link>http://www.davelachapelle.ca/2009/08/05/php-mail-abuse/</link> <comments>http://www.davelachapelle.ca/2009/08/05/php-mail-abuse/#comments</comments> <pubDate>Wed, 05 Aug 2009 15:09:57 +0000</pubDate> <dc:creator>Jett</dc:creator> <category><![CDATA[Servers]]></category> <category><![CDATA[Unix]]></category><guid
isPermaLink="false">http://www.davelachapelle.ca/?p=156</guid> <description><![CDATA[Recently came up against a bit of a tough nut to crack, so to speak, and thought I&#8217;d write up a quick blog about how I fixed it, in case anyone else has this problem. At MRX, we have several different hosting environments we use, one of which is a shared environment for our smaller [...]]]></description> <content:encoded><![CDATA[<p>Recently came up against a bit of a tough nut to crack, so to speak, and thought I&#8217;d write up a quick blog about how I fixed it, in case anyone else has this problem.  At MRX, we have several different hosting environments we use, one of which is a shared environment for our smaller clients.  The problem being that one of those clients had a vulnerability on their site that was allowing spammers to send unauthorized e-mail through our servers, thereby getting us onto a whole bunch of blacklists.</p><p>After a bit of searching around, it seems as though its actually possible to completely disable the mail() function from PHP, however, that was only a temporary solution.  This is simply a matter of adding</p><p><code>disable_functions "mail"</code></p><p>to the php.ini file and reloading the apache configs.</p><p>While I searched for an actual solution to the problem, I came up with the idea of attempting to use a php_admin_value flag value to disable e-mail for a specific virtual host inside the htaccess files until I was able to determine which was the offending site.  Again &#8211; brick wall &#8211; PHP doesn&#8217;t support setting disable_functions in the php_admin_value flag.</p><p>So, after a bit of searching, I decided to just add the following to each site&#8217;s .htaccess files:</p><p><code>php_admin_value sendmail_path "/dev/null"</code></p><p>Essentially sending all e-mail to /dev/null for that particular site.  Perhaps not the most elegant solution, but it was effective, as we are no longer sending e-mail through a broken form and I was able to alert the affected client that they had a problem.</p> ]]></content:encoded> <wfw:commentRss>http://www.davelachapelle.ca/2009/08/05/php-mail-abuse/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 5/49 queries in 0.006 seconds using disk
Object Caching 533/606 objects using disk

Served from: www.davelachapelle.ca @ 2012-02-05 12:54:20 -->
