<?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>Nix Bits &#187; OS</title>
	<atom:link href="http://www.scottharney.com/category/computers/os/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scottharney.com</link>
	<description>Notes about life, *nix, and other stuff.</description>
	<lastBuildDate>Thu, 09 Dec 2010 16:24:29 +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>Linux with encrypted root and swap with working hibernate to disk</title>
		<link>http://www.scottharney.com/2009/09/17/linux-with-encrypted-root-and-swap-with-working-hibernate-to-disk/</link>
		<comments>http://www.scottharney.com/2009/09/17/linux-with-encrypted-root-and-swap-with-working-hibernate-to-disk/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 19:52:29 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/?p=179</guid>
		<description><![CDATA[I recently installed Linux Mint (ubuntu with some goodies) on a laptop and wanted an encrypted whole disk. In order for this to be truly secure, you need encrypted swap. Well most of the HOWTOs for encrypting swap use a randomized key. This breaks hibernate to disk for laptops because the linux kernel has no [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>I recently installed Linux Mint (ubuntu with some goodies) on a laptop and wanted an encrypted whole disk. In order for this to be truly secure, you need encrypted swap. Well most of the HOWTOs for encrypting swap use a randomized key. This breaks hibernate to disk for laptops because the linux kernel has no way to decrypt a randomized cipher (of course). So I referenced a separate howto and combined the two approaches. I can now hibernate to disk using an encrypted swap partition that is protected with a passphrase in the same as way as root and home partitions.</p>
<p>It should be apparent this howto is non-trivial.  The config file changes I supply in it are in <tt>diff -u</tt> format so this is deliberately written for a technical audience. My research indicates that there is some interest in getting this into distributions in a more elegant fashion, but that kind of deep integration takes time. I needed something that works for me now.</p>
<p>Anyway, here’s the <a href="http://forums.linuxmint.com/viewtopic.php?f=42&amp;t=18743&amp;p=190446#p190446">link</a> in the Linux Mint user forums:</div>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2009/09/17/linux-with-encrypted-root-and-swap-with-working-hibernate-to-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vicious Week</title>
		<link>http://www.scottharney.com/2008/06/12/vicious-week/</link>
		<comments>http://www.scottharney.com/2008/06/12/vicious-week/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 15:09:19 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[SAN]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/2008/06/12/vicious-week/</guid>
		<description><![CDATA[Oh Man, These past two weeks since getting back from Vegas have been brtual. I&#8217;ve had patches blow up in my face (partly because Solaris patching is still so 1995). I had a storage crunch on my NetWorker index store force me to borrow some space and mount it over NFS. Which worked great. Until [...]]]></description>
			<content:encoded><![CDATA[<p>Oh Man, These past two weeks since getting back from <a href="http://www.emcworld2008.com/">Vegas</a> have been brtual.  I&#8217;ve had patches blow up in my face (partly because Solaris patching is still so 1995).  I had a storage crunch on my <a href="http://www.emc.com/products/detail/software/networker.htm">NetWorker</a> index store force me to borrow some space and mount it over NFS.  Which worked great.  Until the server housing the NFS mounts core dumped and spontaneously rebooted in the middle of the backup window, wiping out the indexes of the two largest Oracle database servers in the environment. Yeah, the indexes were back on tape, but it would (and did) take a while to get em back.  And of course I had to find some more spare space. That spare space had to come off of local, unprotected disk again (except for tape) since we are out of SAN storage until some new hardware hits the floor. That means  a month or so. In the middle of hurricane season, as usual.  All of which has meant precious little sleep of late.</p>
<p>Oh, and I&#8217;ve had my problems with Legato, er, EMC NetWorker over the past few years, but none of the above was NetWorker bug-related and it handled all that mess far more gracefully than I would&#8217;ve expected.    It failed and restarted backups automatically, and recoving indexes was a simple process. I&#8217;ve done some bootstrap recoveries for DR tests in the past, but this was the real deal. So hoorah for NetWorker for doing something right and not being the cause of sleepless nights (yes. 7.3.3 is very stable in our busy,big,  and hopelessly complex environment).</p>
<p>And of course there has been the inevitable management foolishness. Most of the above didn&#8217;t affect anything outside of &#8220;my world&#8221; but as soon as some manager sees a status update, they try and correlate some technical issue they&#8217;re having to my event and I have to answer all this foolishness. Politely. With little or no sleep.  Not to mention, more foolishness sending me out of town for what looks to me like pure politics and little technical merit, but maybe I&#8217;m missing something.  Nah, probably not.  it&#8217;s a dog and pony show.  I wonder if I&#8217;m a dog, or a pony?</p>
<p>Anyway, if anybody out there has some really super secret vacation ideas they want to share, send em my way.  My wife and I really haven&#8217;t been on a vacation alone since 2004, our honeymoon.  And, apparently, travel is, like, really expensive right now.</p>
<p>Vegas a few weeks ago didn&#8217;t do much for me for the vacation side, as mentioned below. But as a technical/educational trip, it was pretty cool.  I&#8217;m not much of an <a href="https://www.emc.com">EMC</a> fanboy.  We use both Netapp and Sun/HDS storage here in addition to EMC. There are things about those platforms I like a lot better than the mish-mash of storage options EMC presents.</p>
<p>I attended a ton of technical sessions.  There was a large VMWare presence there, which was pretty cool. We are deploying VMWare ESX, though I&#8217;m not directly involved in that activity.  We handle the storage for &#8216;em though as well as the backups.  To that end, I got really interested in <a href="http://storagezilla.typepad.com/storagezilla/2008/05/the-avamar-clie.html">Avamar</a> for doing our <a href="http://thebackupblog.typepad.com/thebackupblog/2008/06/the-avamar-blog.html">VMWare</a> <a href="http://thebackupblog.typepad.com/thebackupblog/2008/05/avamar-and-vmware-backup.html">guest</a> <a href="http://thebackupblog.typepad.com/thebackupblog/2008/06/instant-vmware-backup---edited.html">backups</a>.  We did an eval here and it looks pretty good and it looks like we&#8217;re actually going to get it. I went to several sessions with that as well and feel a lot more comfortable with having stuck my neck out for this solution.</p>
<p>I&#8217;m <em>sure</em> there will be headaches in the deployment, but it should help.  And I&#8217;ll be able to remove some complexity from our Networker deployment and free up some index space, by potentially removing 100 or more clients and putting them in Avamar.  File servers, vmware guests, and some DMZ-resident hosts are all good candidates for that.  Unlike a lot of EMC NetWorker customers, we aren&#8217;t initially interested in using NetWorker 7.4 with nominally-integrated Avamar.  One of my goals is to reduce my complexity and index space in our huge NetWorker setup.  So dividing and conquering actualy <em>simplifies</em> things for me rather than having one global namespace. I had some conversations with some EMC techies (and not sales techies) and they said that was unique in their experience.</p>
<p>But the reality for me is, even if the software can technically scale to 1000+ clients processing 100s of terabytes/week of backups (and DR copies), can it really be managed by humans at that point?  At such a scale, can you even get a window to patch things, do upgrades, etc?  And if you do have a problem, the pain you have and the pain that problem can cause can be quite big indeed.  Obviously for me it already is with ~800 clients and about 70TB/week. (see paragraph one)<br />
I&#8217;m still digesting material from the convention and looking forward to getting my hands on the presentation material.  Like I said, it was pretty interesting stuff. If you&#8217;re, ya know, a geek.</p>
<p><small><strong>Note:</strong></small> Yes. this is the most technical/geeky thing I&#8217;ve posted in years.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2008/06/12/vicious-week/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux kernel.org infrastructure</title>
		<link>http://www.scottharney.com/2005/05/03/linux-kernelorg-infrastructure/</link>
		<comments>http://www.scottharney.com/2005/05/03/linux-kernelorg-infrastructure/#comments</comments>
		<pubDate>Tue, 03 May 2005 22:47:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=49</guid>
		<description><![CDATA[This interesting article talks about the kernel.org infrastructure used to maintain the Linux kernel. Overall it&#8217;s a fascinating little bit of history. It&#8217;s also intriguing because it gives an example of running an extremely bandwidth and processor intensive site. This quote is especially interesting regarding an earlier verision of kernel.org hosted on a dual PIII. [...]]]></description>
			<content:encoded><![CDATA[<p>This interesting <a href="http://kerneltrap.org/node/5070">article</a> talks about the kernel.org infrastructure used to maintain the Linux kernel.  Overall it&#8217;s a fascinating little bit of history.  It&#8217;s also intriguing because it gives an example of running an extremely bandwidth and processor intensive site.  This quote is especially interesting regarding an earlier verision of kernel.org hosted on a dual PIII.</p>
<blockquote><p>Serving data with http and ftp is is not very CPU intensive, but over time the amount of rsync traffic being fed by the kernel.org server continued to increase, and rsync <u>is</u> CPU intensive. &#8220;That&#8217;s what rsync does&#8221; Peter said, &#8220;it trades bandwidth for CPU horsepower. We were getting to the point where we had all the bandwidth, but the Dual PIII 1.1&#8242;s couldn&#8217;t really keep up.&#8221; He noted that the load average kept growing, well into triple digits. Referring to 32-bit systems, Peter noted, &#8220;we learned that the Linux load average rolls over at 1024. And we actually found this out empirically.&#8221;</p></blockquote>
<p>That&#8217;s fairly amazing.  Also noteworthy is the bare number of software optimizations they&#8217;ve thrown at the problem, which basically consisted of mounting their filesystems with the <tt>noatime</tt> attribute. Have to double check that one on some of my busier http boxes.</p>
<p>Slashdot has an <a href="http://linux.slashdot.org/faq/tech.shtml#te050">article</a> in their FAQ, detailing their hardware and software mix as well.  It probably hasn&#8217;t been updated in a while but the basic config described probably remains as detailed in the FAQ entry.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2005/05/03/linux-kernelorg-infrastructure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Knoppix 3.8 and UnionFS</title>
		<link>http://www.scottharney.com/2005/03/16/knoppix-38-and-unionfs/</link>
		<comments>http://www.scottharney.com/2005/03/16/knoppix-38-and-unionfs/#comments</comments>
		<pubDate>Wed, 16 Mar 2005 18:42:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=53</guid>
		<description><![CDATA[The new Knoppix 3.8 has added an interesting feature by incorporating UnionFS into the filesystem. What does this mean? Well it means I can modify a file in /etc without a problem. The underlying unionfs structure writes the mod to /ramdisk and the change is transparent. In fact, any change can be made. Software can [...]]]></description>
			<content:encoded><![CDATA[<p>
The new Knoppix 3.8 has added an interesting feature by incorporating UnionFS into the filesystem.  What does this mean?  Well it means I can modify a file in /etc without a problem.  The underlying unionfs structure writes the mod to /ramdisk and the change is transparent.  </p>
<p>In fact, any change can be made. Software can be added.  And further, those changes can be incorporated with Knoppix&#8217;s existing persistent home dir feature.  So every time you boot it, it picks up your mods.  Knoppix already has so many uses and so much functionality.  And it keeps getting better. </p>
<p> First read about it on <a href="http://www.oreillynet.com/pub/wlg/6654">oreillynet</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2005/03/16/knoppix-38-and-unionfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BigAdmin article on SAN booting and Jumpstart</title>
		<link>http://www.scottharney.com/2005/01/19/bigadmin-article-on-san-booting-and-jumpstart/</link>
		<comments>http://www.scottharney.com/2005/01/19/bigadmin-article-on-san-booting-and-jumpstart/#comments</comments>
		<pubDate>Wed, 19 Jan 2005 20:38:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=56</guid>
		<description><![CDATA[This is one of those articles I&#8217;m just preserving for my own future reference.]]></description>
			<content:encoded><![CDATA[<p>This is one of those <a href="http://www.sun.com/bigadmin/features/articles/fc_fabric_san.html?biga=15">articles</a> I&#8217;m just preserving for my own future reference.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2005/01/19/bigadmin-article-on-san-booting-and-jumpstart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian From Scratch</title>
		<link>http://www.scottharney.com/2005/01/18/debian-from-scratch/</link>
		<comments>http://www.scottharney.com/2005/01/18/debian-from-scratch/#comments</comments>
		<pubDate>Tue, 18 Jan 2005 21:44:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=57</guid>
		<description><![CDATA[I found this article on installing Debian From Scratch fairly intresting. Lately I&#8217;ve been installing mepis as a Debian install for others. But for myself, I need something a bit more hands-on. The Debian install I have at home is getting really stale now so I am actually considering a re-install. Lots of folks think [...]]]></description>
			<content:encoded><![CDATA[<p>I found this <a href="http://os.newsforge.com/article.pl?sid=05/01/10/1727246&amp;from=rss">article</a> on installing Debian From Scratch fairly intresting.  Lately I&#8217;ve been installing <a href="http://www.mepis.com">mepis</a> as a Debian install for others.  But for myself, I need something a bit more hands-on.  The Debian install I have at home is getting <b>really</b> stale now so I am actually considering a re-install.  </p>
<p>Lots of folks think a re-install might not be necessary; just <tt>apt-get upgrade</tt> to happiness.  But, honestly, I&#8217;ve got a mess of old packages, configs, etc form having a nearly 4 year old desktop, unstable installation.  If this box were a server with a stable-testing, it would be a different story.  There are times when a clean install makes sense.  And it would give me a chance to get re-aquainted with the &#8220;Debian way&#8221; and new tools they have built &#8212; just recently I discovered the rather handy <tt>modules-assistant</tt> for rebuilding nvidia-kernel and alsa-src on my 2.4-kernel unstable Debian box.</p>
<p>References</p>
<ul>
<li><a href="http://people.debian.org/~jgoerzen/dfs/html/dfs.html">http://people.debian.org/~jgoerzen/dfs/html/dfs.html</a><br />
    &#8211; DFS documentation</li>
<li><a href="http://julien.danjou.info/article-apt-build.html">http://julien.danjou.info/article-apt-build.html</a><br />
   &#8211; <tt>apt-build</tt> tutorial (translated from French).  Gives (overly) fine-grained build customization ala <a href="http://www.gentoo.org">Gentoo</a>.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2005/01/18/debian-from-scratch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>$HOME in revision control</title>
		<link>http://www.scottharney.com/2005/01/12/home-in-revision-control/</link>
		<comments>http://www.scottharney.com/2005/01/12/home-in-revision-control/#comments</comments>
		<pubDate>Wed, 12 Jan 2005 23:26:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=59</guid>
		<description><![CDATA[Joey Hess wrote an article sometime back on how he maintains his entire home directory in cvs. He has updated it now to use subversion now. I&#8217;ve been using svn to maintain some projects myself and I liked Joey&#8217;s original concept. The only issues for me is that I sometimes use different profiles for some [...]]]></description>
			<content:encoded><![CDATA[<p>
Joey Hess wrote an article sometime back on how he maintains his entire home directory in cvs.  He has updated it now to use <a href="http://www.onlamp.com/pub/a/onlamp/2005/01/06/svn_homedir.html">subversion</a> now.  I&#8217;ve been using svn to maintain some projects myself and I liked Joey&#8217;s original concept.  The only issues  for me is that I sometimes use different profiles for some job sites.  And the Operating System differences in some of my more heavily edited bash_profile scripts are pretty convoluted.  I also may not have svn clients on the machine&#8217;s I use so rsync or just scp would be needed there. </p>
<p>In any case, it&#8217;s a neat concept and something I may have to try soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2005/01/12/home-in-revision-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping ports up to date on OpenBSD</title>
		<link>http://www.scottharney.com/2005/01/06/keeping-ports-up-to-date-on-openbsd/</link>
		<comments>http://www.scottharney.com/2005/01/06/keeping-ports-up-to-date-on-openbsd/#comments</comments>
		<pubDate>Thu, 06 Jan 2005 22:17:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[OpenBSD]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=62</guid>
		<description><![CDATA[OpenBSD doesn&#8217;t have portupgrade like FreeBSD. Many OpenBSD users just take a snapshot of installed ports/packages by first running pkg_info and then deleting their package database as described in OpenBSD&#8217;s upgrade documentation. OpenBSD does offer a script though, to check what ports are out of date: /usr/ports/infrastructure/build/out-of-date. The script seems to work well for my [...]]]></description>
			<content:encoded><![CDATA[<p><P><br />
OpenBSD doesn&#8217;t have <a href="http://www.onlamp.com/pub/a/bsd/2003/08/28/FreeBSD_Basics.html">portupgrade</a> like FreeBSD.  Many OpenBSD users just take a snapshot of installed ports/packages by first running pkg_info and then deleting their package database as described in OpenBSD&#8217;s upgrade documentation.  OpenBSD does offer a script though, to check what ports are out of date: <tt>/usr/ports/infrastructure/build/out-of-date</tt>.  The script seems to work well for my needs.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2005/01/06/keeping-ports-up-to-date-on-openbsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New thoughts on streaming music</title>
		<link>http://www.scottharney.com/2003/03/20/new-thoughts-on-streaming-music/</link>
		<comments>http://www.scottharney.com/2003/03/20/new-thoughts-on-streaming-music/#comments</comments>
		<pubDate>Thu, 20 Mar 2003 21:17:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=76</guid>
		<description><![CDATA[Writing up the procedure I use to stream music got me thinking about problems with it and alternatives. One problem that it has is that I must be logged in on the console, in X, running xmms. A power-outage forced reboot could end my musical bliss at work . Someone else pointed out that I [...]]]></description>
			<content:encoded><![CDATA[<p>Writing up the procedure I use to stream music got me thinking about problems with it and alternatives.  One problem that it has is that I must be logged in on the console, in X, running xmms.  A power-outage forced reboot could end my musical bliss at work <img src='http://www.scottharney.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .  Someone else pointed out that I really should consider ogg.  While re-encoding all my source CD&#8217;s would be a massive undertaking this would eventually be a good goal.  Transcoding from mp3-&gt;ogg is a bad idea but for a low quality stream it may have little impact.</p>
<p>So I found <a href="http://www.gnump3d.org">gnump3d</a> and liked what I saw.  So I installed it, reconfigured some firewall rules, and liked it even more.  This is a web-based way to control and stream an music collection.  The web interface is well-designed and skinnable.  It seems to give me more control than xmms-shell.  I can cue up individual songs or albums.  Each song is a playlist so I can easily scramble within my xmms client at work rather than on the server.  I can create customer playlists through the web interface.  </p>
<p>The coolest feature is the way resampling is handled.  The parameters for resampling (called downsampling in <tt>gnump3d.conf</tt> allow you to specify subnets that do not require downsampling. Thus I can fire up a session on my local desktop and use it to control music and those songs will not be re-encoded to a lower bitrate.  The cacheing that happens between each song due to stream is instantaneous on a local connection so album play is minimally interrupted.</p>
<p>gnump3d doesn&#8217;t utilize a MySQL or other backend database. It&#8217;s very simple to setup and has taken some reasonable security precautions. I like it&#8217;s &#8220;keep it simple&#8221; approach.  </p>
<p>It doesn&#8217;t work well through the reverse inbound proxy so I run it through an alternate port on the firewall and redirect that to the internal gnump3d server.  One way I could deal with this is switch to <tt>Apache::MP3</tt>.  This is a <a href="http://www.modperl.com">mod_perl</a> solution that runs within Apache.  So even SSL-encrypted streaming could work through this.  Port 80 name-based virtual hosts work fine <tt>Apache::MP3::Skin</tt> and <tt>Apache::MP3::Resample</tt> would provide the additional similar functionality.  A user can choose the level of resampling desired so it&#8217;s pretty interesting.</p>
<p>Since gnump3d works so well for me I didn&#8217;t try the Apache perl module approach but I may mess with it at a layer time. I&#8217;ve been experimenting with mod_perl stuff for a while so it may be educational to mess with this.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2003/03/20/new-thoughts-on-streaming-music/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Procmail as an autoresponder</title>
		<link>http://www.scottharney.com/2003/03/13/using-procmail-as-an-autoresponder/</link>
		<comments>http://www.scottharney.com/2003/03/13/using-procmail-as-an-autoresponder/#comments</comments>
		<pubDate>Thu, 13 Mar 2003 19:32:00 +0000</pubDate>
		<dc:creator>scotth</dc:creator>
				<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://www.scottharney.com/htdocs/wordpress/?p=78</guid>
		<description><![CDATA[I&#8217;d done this a long time ago and pretty much forgotton all about it. I&#8217;ve used procmail for a long time to pre-sort all my mailing list mail among other tasks. I also use it as a mechanism to distribute my gpg public key. If you send me a message with the subject &#8220;get key&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d done this a long time ago and pretty much forgotton all about it.  I&#8217;ve used procmail for a long time to pre-sort all my mailing list mail among other tasks.  I also use it as a mechanism to distribute my gpg public key.  If you send me a message with the subject &#8220;get key&#8221;, you&#8217;ll get a response containing my public key in ASCII format.  Here&#8217;s a snippet from my .procmailrc:</p>
<pre>
  VERBOSE=off
  PATH=$HOME:/usr/bin:/bin:/usr/local/bin:.
  MAILDIR=$HOME/Mail      # You'd better make sure it exists
  DEFAULT=/var/mail/scotth
  LOGFILE=$HOME/Mail/from
  LOCKFILE=$HOME/.lockfile
  SENDMAIL=/usr/sbin/sendmail

  :0 Wh: msgid.lock   # get's rid of duplicates
  | formail -D 8192 msgid.cache

  # Autoresponder
  :0i
  * !^Subject:.*Re:
  * !^FROM_DAEMON
  * ^Subject:.*get key
  | (formail -r -A "From: &#115;&#99;&#111;&#116;&#116;&#104;&#64;&#115;&#99;&#111;&#116;&#116;&#104;&#97;&#114;&#110;&#101;&#121;&#46;&#99;&#111;&#109;" ; cat $HOME/.pubkey.asc)\
      | $SENDMAIL -oi -t

  # SpamAssassin
  :0:
  * ^X-Spam-Status: Yes.*
  $MAILDIR/junk

  # mailing list inet-access
  :0:
  * TO.*inet-access
  $MAILDIR/inet-access
</pre>
</p>
<p>If you just need an autoresponder, you&#8217;d just use formail in a .forward.  Here&#8217;s how I do it using a mail server running qmail. Just create<br />
<tt>~/alias/.qmail-autorespond</tt> containing the following text</p>
<pre>| (/usr/local/bin/formail -r -A "From: &#97;&#117;&#116;&#111;&#114;&#101;&#115;&#112;&#111;&#110;&#100;&#64;&#121;&#111;&#117;&#114;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;" ;\
   cat /var/qmail/alias/autoresond.txt) | qmail-inject
</pre>
<p>Put your autoresponce email body in /var/qmail/alias/autorespond.txt.  The &#8216;qmail-inject&#8217; is qmail&#8217;s way of saying &#8216;/usr/sbin/sendmail -oi -t&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.scottharney.com/2003/03/13/using-procmail-as-an-autoresponder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

