<?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>The Mad Philosopher &#187; Sysadmin</title>
	<atom:link href="http://madphilosopher.ca/category/tech/sysadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://madphilosopher.ca</link>
	<description>Because being mad is all the rage. A personal weblog of Darren Paul Griffith.</description>
	<lastBuildDate>Tue, 21 Feb 2012 04:09:02 +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>An awesome blog about Python, Linux, and System Administration</title>
		<link>http://madphilosopher.ca/2007/03/an-awesome-blog-about-python-linux-and-system-administration/</link>
		<comments>http://madphilosopher.ca/2007/03/an-awesome-blog-about-python-linux-and-system-administration/#comments</comments>
		<pubDate>Fri, 09 Mar 2007 02:59:05 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2007/03/an-awesome-blog-about-python-linux-and-system-administration/</guid>
		<description><![CDATA[I recently discovered an awesome blog about Python, Linux, and System Administration. Chris Siebenmann is a sysadmin for the University of Toronto Unix Systems Group. I could spend hours reading his archives. Smart guy. Articles are short and informative to the max. Hope you enjoy it: http://utcc.utoronto.ca/~cks/space/blog/]]></description>
			<content:encoded><![CDATA[<p>I recently discovered an awesome blog about Python, Linux, and System Administration. Chris Siebenmann is a sysadmin for the University of Toronto Unix Systems Group. I could spend hours reading his archives. Smart guy. Articles are short and informative to the max. Hope you enjoy it:</p>
<ul>
<li><a href="http://utcc.utoronto.ca/~cks/space/blog/">http://utcc.utoronto.ca/~cks/space/blog/</a>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2007/03/an-awesome-blog-about-python-linux-and-system-administration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Emailing cron output to different users</title>
		<link>http://madphilosopher.ca/2007/02/emailing-cron-output-to-different-users/</link>
		<comments>http://madphilosopher.ca/2007/02/emailing-cron-output-to-different-users/#comments</comments>
		<pubDate>Thu, 01 Feb 2007 09:59:01 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2007/02/emailing-cron-output-to-different-users/</guid>
		<description><![CDATA[When a cron job generates output on either stdout or stderr, the output gets mailed to the owner of the crontab. Now, you can specify an alternative email address by setting the MAILTO environment variable in the crontab, but this applies to all jobs in the crontab. So, if you want the output of different [...]]]></description>
			<content:encoded><![CDATA[<p>When a cron job generates output on either stdout or stderr, the output gets mailed to the owner of the crontab. Now, you can specify an alternative email address by setting the <code>MAILTO</code> environment variable in the crontab, but this applies to all jobs in the crontab.</p>
<p>So, if you want the output of different jobs to get mailed to different users, then you can just redirect the stdout and stderr of each job to the mail command like this:</p>
<div id="codito">
<pre>
13 02 * * *     /bin/backup 2&gt;&amp;1 | /usr/bin/mail -s "Cron &lt;root@exobox&gt; /bin/backup" \
user@example.net
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2007/02/emailing-cron-output-to-different-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MTR as a combined traceroute and ping tool</title>
		<link>http://madphilosopher.ca/2006/12/mtr-as-a-combined-traceroute-and-ping-tool/</link>
		<comments>http://madphilosopher.ca/2006/12/mtr-as-a-combined-traceroute-and-ping-tool/#comments</comments>
		<pubDate>Thu, 21 Dec 2006 08:52:31 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2006/12/mtr-as-a-combined-traceroute-and-ping-tool/</guid>
		<description><![CDATA[&#8220;mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.&#8221; And it&#8217;s really cool. Like ping, it sends &#8220;echo&#8221; packets from your machine to the target machine to measure latency and packet loss along the network path, but it continuously displays updated statistics in real time as it operates. [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;<a href="http://www.bitwizard.nl/mtr/">mtr</a> combines the functionality of the traceroute and ping programs in a single network diagnostic tool.&#8221; And it&#8217;s really cool.</p>
<p><b>Like ping</b>, it sends &#8220;echo&#8221; packets from your machine to the target machine to measure latency and packet loss along the network path, but it continuously displays updated statistics in real time as it operates. </p>
<p><b>Like traceroute</b>, it shows the names or IP addresses of each machine along the network path, also updating these statistics for each machine.</p>
<p>Here&#8217;s some (frozen) sample output from the ncurses mode (terminal mode) mtr:</p>
<div id="codito">
<pre>
                                My traceroute  [v0.71]
exobox (0.0.0.0)                                             Thu Dec 21 16:15:01 2006
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                             Packets               Pings
 Host                                      Loss%   Snt   Last   Avg  Best  Wrst StDev
 1.                                         0.0%    20    0.4   0.3   0.2   0.7   0.1
 2.                                         0.0%    20    1.6   1.4   1.0   2.7   0.4
 3.                                         0.0%    19    1.3   1.3   1.0   2.7   0.4
 4. 10.0.0.25                               0.0%    19    1.1   1.2   1.0   2.7   0.4
 5. 219.142.10.17                           0.0%    19    1.4   2.6   1.2  16.0   3.3
 6. bj141-130-121.bjtelecom.net             0.0%    19    1.4   1.6   1.4   2.5   0.3
 7. 202.97.57.221                           0.0%    19  199.3  12.0   1.3 199.3  45.4
 8. 202.97.37.9                             0.0%    19    1.7  35.7   1.3 186.5  56.2
 9. 202.97.53.146                           0.0%    19    1.8   2.0   1.5   4.8   0.8
10. 202.97.61.50                            0.0%    19  284.6 292.2 278.3 305.8   8.7
11. so-4-0-0.mpr2.lax9.us.above.net        15.8%    19  286.2 291.9 278.6 325.2  11.5
12. so-5-0-0.mpr1.iah1.us.above.net        15.8%    19  313.2 323.8 311.3 340.5   8.6
13. so-5-3-0.cr1.dfw2.us.above.net          5.3%    19  319.6 331.1 314.1 404.6  20.3
14. so-0-0-0.cr2.dfw2.us.above.net         11.1%    19  696.0 718.7 693.3 797.2  33.7
15. so-3-1-0.cr2.dca2.us.above.net         36.8%    19  347.4 354.9 342.5 368.7   8.6
16. so-0-1-0.mpr1.lhr3.uk.above.net        11.1%    19  421.5 423.6 411.1 438.2   7.8
17. so-1-0-0.mpr3.ams1.nl.above.net        11.1%    19  433.9 438.9 422.4 514.1  22.0
18. DutchDSL.above.net                     33.3%    19  423.1 432.7 418.7 463.0  11.4
19. ge-0-1-0-v189.rtr1.ams-rb.io.nl        27.8%    19  405.8 414.7 398.2 434.6  11.6
20. 213.196.40.242                         23.5%    18  404.8 418.1 399.9 485.8  21.9
</pre>
</div>
<p>Looking at the Avg column (units in ms), the above output shows that my network packets pass through Beijing Telecom&#8217;s routers to the U.S., then to the U.K., and finally to their destination in the Netherlands. A large latency increase occurs between lines 9 and 10 (presumably leaving P.R. China), and another between lines 13 and 16 (U.S. to U.K.). </p>
<p>mtr has some interesting display modes besides the above, where it shows the latency of each packet graphically according to a dynamic scale. In this way, the above points of really large latency can be easily detected.</p>
<p>mtr can be obtained from the <a href="http://www.bitwizard.nl/mtr/">mtr website</a>, or it can be installed in Debian/Ubuntu by:</p>
<div id="codito">
<pre>
# apt-get install mtr-tiny
</pre>
</div>
<p>or</p>
<div id="codito">
<pre>
# apt-get install mtr
</pre>
</div>
<p>for the ncurses or X11 versions, respectively, although mtr-tiny appears to be installed by default in the Debian and Ubuntu machines I have tested. So you may already have it.</p>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2006/12/mtr-as-a-combined-traceroute-and-ping-tool/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Machines Have Taken Over</title>
		<link>http://madphilosopher.ca/2006/12/the-machines-have-taken-over/</link>
		<comments>http://madphilosopher.ca/2006/12/the-machines-have-taken-over/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 02:48:09 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2006/12/the-machines-have-taken-over/</guid>
		<description><![CDATA[The latest comic from Dilbert speaks some truth about life as a Sysadmin:]]></description>
			<content:encoded><![CDATA[<p>The latest comic from <a href="http://dilbert.com/">Dilbert</a> speaks some truth about life as a Sysadmin:<br />
<center><img src="http://www2.madphilosopher.ca/darren106/dilbert2006152711207.gif" alt="[Dilbert: The machines have taken over]" width="600" height="207" /></center></p>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2006/12/the-machines-have-taken-over/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to send an entire domain to /dev/null in Postfix</title>
		<link>http://madphilosopher.ca/2006/09/how-to-send-an-entire-domain-to-dev-null-in-postfix/</link>
		<comments>http://madphilosopher.ca/2006/09/how-to-send-an-entire-domain-to-dev-null-in-postfix/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 04:11:02 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2006/09/how-to-send-an-entire-domain-to-devnull-in-postfix/</guid>
		<description><![CDATA[At Exoweb, our software developers use bogus email addresses of the form *@example.com (where I mean &#8220;example.com&#8221; literally, not as an example) to test their software&#8217;s ability to send email. Since I don&#8217;t want our Postfix server to attempt to deliver these messages out on the Internet, I need Postfix to handle these messages and [...]]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://www.exoweb.net/">Exoweb</a>, our software developers use bogus email addresses of the form <b>*@example.com</b> (where I mean &#8220;example.com&#8221; literally, not as an example) to test their software&#8217;s ability to send email. Since I don&#8217;t want our Postfix server to attempt to deliver these messages out on the Internet, I need Postfix to handle these messages and blackhole them (make them disappear, sent to <code>/dev/null</code>). So what follows are instructions on how to blackhole an entire domain in Postfix.</p>
<p>First, we add a <code>virtual_alias_maps</code> entry to <code>/etc/postfix/main.cf</code> so that we can specify <b>example.com</b> as one of our virtual domains:</p>
<div id="codito">
<pre>
virtual_alias_maps = hash:/etc/postfix/virtual_alias
</pre>
</div>
<p>Inside <code>/etc/postfix/virtual_alias</code>, add a catchall address:</p>
<div id="codito">
<pre>
@example.com      blackhole@localhost
</pre>
</div>
<p>We have to use <b>blackhole@localhost</b> here and not <b>/dev/null/</b> because <code>virtual_alias_maps</code> cannot run commands&#8212;it can only forward to real addresses. So we put an entry inside <code>/etc/aliases</code> to handle the blackhole:</p>
<div id="codito">
<pre>
blackhole:      /dev/null
</pre>
</div>
<p>This assumes that one of your <b>mydestination</b> domains in <code>main.cf</code> is <b>localhost</b> so that Postfix will actually consult the <code>aliases</code> file.</p>
<p>In order to make these changes take affect, you have to rebuild the aliases database, build the virtual_alias database, and reload your Postfix configuration. Respectively:</p>
<div id="codito">
<pre>
# newaliases
# postmap /etc/postfix/virtual_alias
# postfix reload
</pre>
</div>
<p>Now, any emails you send to <b>blackhole@localhost</b> will disappear, and so will any emails addressed to <b>anyone@example.com</b> (provided they are relayed through your Postfix server).</p>
<p>Footnote: The top-level and second-level domain names that are reserved for testing can be found in <a href="http://rfc.net/rfc2606.html">RFC 2606</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2006/09/how-to-send-an-entire-domain-to-dev-null-in-postfix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Spaghetti Wiring</title>
		<link>http://madphilosopher.ca/2006/09/spaghetti-wiring/</link>
		<comments>http://madphilosopher.ca/2006/09/spaghetti-wiring/#comments</comments>
		<pubDate>Mon, 18 Sep 2006 09:54:03 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2006/09/spaghetti-wiring/</guid>
		<description><![CDATA[When you work in a software development shop, spaghetti code is most certainly frowned upon. What about spaghetti wiring? So this was the remains of the small electrical fire that occurred 15 minutes before I arrived at the office today&#8230; the charged main circuit to the room that houses most of our developers, their computers, [...]]]></description>
			<content:encoded><![CDATA[<p>When you work in a software development shop, <a href="http://www.catb.org/jargon/html/S/spaghetti-code.html">spaghetti code</a> is most certainly frowned upon. What about spaghetti wiring?</p>
<p><center><img src="http://www2.madphilosopher.ca/darren106/electrical_fire_20060918_small.jpg" alt="[Spaghetti wiring]" width="450" height="338" /></center></p>
<p>So this was the remains of the small electrical fire that occurred 15 minutes before I arrived at the office today&#8230; the charged main circuit to the room that houses most of our developers, their computers, and the all-important Ice Box. </p>
<p>Do you think this is enough to convince the building management that the building&#8217;s wiring needs professional help? No, unfortunately, I think we&#8217;ll still have to fight them to get adequate electrical capacity and safety. <img src='http://madphilosopher.ca/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2006/09/spaghetti-wiring/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Stop using backup email spooling</title>
		<link>http://madphilosopher.ca/2006/07/stop-using-backup-email-spooling/</link>
		<comments>http://madphilosopher.ca/2006/07/stop-using-backup-email-spooling/#comments</comments>
		<pubDate>Fri, 07 Jul 2006 14:30:47 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2006/07/stop-using-backup-spooling/</guid>
		<description><![CDATA[Here&#8217;s a great opinion piece from the blog of my DNS provider entitled: Want to reduce email spam to your mail server? Stop using backup spooling. It is with regret that we have come to the following conclusion, but here it is: Offsite backup SMTP spoolers and backup mail exchangers have become worse than useless. [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a great opinion piece from the blog of my DNS provider entitled: <a href="http://blog.easydns.org/archives/87-Want-to-reduce-email-spam-to-your-mail-server-Stop-using-backup-spooling.html">Want to reduce email spam to your mail server? Stop using backup spooling.</a></p>
<blockquote><p>
It is with regret that we have come to the following conclusion, but here it is: Offsite backup SMTP spoolers and backup mail exchangers have become worse than useless.</p>
<p>The problem is spam and the software that delivers it exploiting the weak authentication schemes inherent in the SMTP protocol itself. It used to be an annoyance, then it became a concern, it is now an epidemic and has resulted in the death of the offsite backup MX handler.
</p></blockquote>
<p>The author then goes on to explain what the problem is and why you won&#8217;t really miss your backup spooling. It&#8217;s a very interesting point of view (in a good way) that&#8217;s worth considering.</p>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2006/07/stop-using-backup-email-spooling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bsdtalk</title>
		<link>http://madphilosopher.ca/2006/03/bsdtalk/</link>
		<comments>http://madphilosopher.ca/2006/03/bsdtalk/#comments</comments>
		<pubDate>Fri, 17 Mar 2006 13:22:11 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[Sysadmin]]></category>

		<guid isPermaLink="false">http://madphilosopher.ca/2006/03/bsdtalk/</guid>
		<description><![CDATA[I just discovered yesterday that there&#8217;s a BSD podcast out there. Awesome! It&#8217;s called bsdtalk, and has the tagline: &#8220;Talking about the BSD family of free operating systems.&#8221; I&#8217;ve been using Linux for over a year and a half now, and I&#8217;m starting to miss my BSD. This might push me back&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://bsdtalk.blogspot.com/"><img src="http://madphilosopher.ca/darren106/bsdtalksm.png" width="100" height="99" alt="[bsdtalk logo]" align="right" vspace="5" hspace="5"/></a>I just discovered yesterday that there&#8217;s a BSD podcast out there. Awesome! It&#8217;s called <a href="http://bsdtalk.blogspot.com/">bsdtalk</a>, and has the tagline: &#8220;Talking about the BSD family of free operating systems.&#8221;</p>
<p>I&#8217;ve been using Linux for over a year and a half now, and I&#8217;m starting to miss my BSD. This might push me back&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://madphilosopher.ca/2006/03/bsdtalk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

