<p dir="ltr">I just had to share this... At least it&#39;s UNIX-related :-)<br>
-Adam</p>
<div class="gmail_quote">---------- Forwarded message ----------<br>From: &quot;&#39;Elkhorn&#39; via Yucks&quot; &lt;<a href="mailto:yucks@googlegroups.com">yucks@googlegroups.com</a>&gt;<br>Date: Apr 20, 2015 14:48<br>Subject: [Yucks] My e-mail only goes 500 miles...<br>To: <br>Cc: <br><br type="attribution"><div><div style="color:#000;background-color:#fff;font-family:verdana,helvetica,sans-serif;font-size:16px"><div><span></span></div><div>From: Trey Harris &lt;<a href="mailto:trey@sage.org" target="_blank">trey@sage.org</a>&gt;<br><br>Here&#39;s a problem that *sounded* impossible...  I almost regret posting<br>the story to a wide audience, because it makes a great tale over drinks<br>at a conference. :-)  The story is slightly altered in order to protect<br>the guilty, elide over irrelevant and boring details, and generally make<br>the whole thing more entertaining.<br><br>I was working in a job running the campus email system some years ago<br>when I got a call from the chairman of the statistics department.<br><br>&quot;We&#39;re having a problem sending email out of the department.&quot;<br><br>&quot;What&#39;s the problem?&quot; I asked.<br><br>&quot;We can&#39;t send mail more than 500 miles,&quot; the chairman explained.<br><br>I choked on my latte.  &quot;Come again?&quot;<br><br>&quot;We can&#39;t send mail farther than 500 miles from here,&quot; he repeated.  &quot;A<br>little bit more, actually.  Call it 520 miles.  But no farther.&quot;<br><br>&quot;Um... Email really doesn&#39;t work that way, generally,&quot; I said, trying<br>to keep panic out of my voice.  One doesn&#39;t display panic when speaking<br>to a department chairman, even of a relatively impoverished department<br>like statistics.  &quot;What makes you think you can&#39;t send mail more than<br>500 miles?&quot;<br><br>&quot;It&#39;s not what I *think*,&quot; the chairman replied testily.  &quot;You see, when<br>we first noticed this happening, a few days ago--&quot;<br><br>&quot;You waited a few DAYS?&quot; I interrupted, a tremor tinging my voice.  &quot;And<br>you couldn&#39;t send email this whole time?&quot;<br><br>&quot;We could send email.  Just not more than--&quot;<br><br>&quot;--500 miles, yes,&quot; I finished for him, &quot;I got that.  But why didn&#39;t<br>you call earlier?&quot;<br><br>&quot;Well, we hadn&#39;t collected enough data to be sure of what was going on<br>until just now.&quot;  Right.  This is the chairman of *statistics*. &quot;Anyway,<br>I asked one of the geostatisticians to look into it--&quot;<br><br>&quot;Geostatisticians...&quot;<br><br>&quot;--yes, and she&#39;s produced a map showing the radius within which we can<br>send email to be slightly more than 500 miles.  There are a number of<br>destinations within that radius that we can&#39;t reach, either, or reach<br>sporadically, but we can never email farther than this radius.&quot;<br><br>&quot;I see,&quot; I said, and put my head in my hands.  &quot;When did this start?<br>A few days ago, you said, but did anything change in your systems at<br>that time?&quot;<br><br>&quot;Well, the consultant came in and patched our server and rebooted it.<br>But I called him, and he said he didn&#39;t touch the mail system.&quot;<br><br>&quot;Okay, let me take a look, and I&#39;ll call you back,&quot; I said, scarcely<br>believing that I was playing along.  It wasn&#39;t April Fool&#39;s Day.  I<br>tried to remember if someone owed me a practical joke.<br><br>I logged into their department&#39;s server, and sent a few test mails.<br>This was in the Research Triangle of North Carolina, and a test mail to<br>my own account was delivered without a hitch.  Ditto for one sent to<br>Richmond, and Atlanta, and Washington.  Another to Princeton (400 miles)<br>worked.<br><br>But then I tried to send an email to Memphis (600 miles).  It failed.<br>Boston, failed.  Detroit, failed.  I got out my address book and started<br>trying to narrow this down.  New York (420 miles) worked, but Providence<br>(580 miles) failed.<br><br>I was beginning to wonder if I had lost my sanity.  I tried emailing a<br>friend who lived in North Carolina, but whose ISP was in Seattle.<br>Thankfully, it failed.  If the problem had had to do with the geography<br>of the human recipient and not his mail server, I think I would have<br>broken down in tears.<br><br>Having established that -- unbelievably -- the problem as reported was<br>true, and repeatable, I took a look at the <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> file.  It looked<br>fairly normal.  In fact, it looked familiar.<br><br>I diffed it against the <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> in my home directory.  It hadn&#39;t been<br>altered -- it was a <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> I had written.  And I was fairly certain<br>I hadn&#39;t enabled the &quot;FAIL_MAIL_OVER_500_MILES&quot; option.  At a loss, I<br>telnetted into the SMTP port.  The server happily responded with a SunOS<br>sendmail banner.<br><br>Wait a minute... a SunOS sendmail banner?  At the time, Sun was still<br>shipping Sendmail 5 with its operating system, even though Sendmail 8 was<br>fairly mature.  Being a good system administrator, I had standardized on<br>Sendmail 8.  And also being a good system administrator, I had written a<br><a href="http://sendmail.cf" target="_blank">sendmail.cf</a> that used the nice long self-documenting option and variable<br>names available in Sendmail 8 rather than the cryptic punctuation-mark<br>codes that had been used in Sendmail 5.<br><br>The pieces fell into place, all at once, and I again choked on the dregs<br>of my now-cold latte.  When the consultant had &quot;patched the server,&quot; he<br>had apparently upgraded the version of SunOS, and in so doing<br>*downgraded* Sendmail.  The upgrade helpfully left the <a href="http://sendmail.cf" target="_blank">sendmail.cf</a><br>alone, even though it was now the wrong version.<br><br>It so happens that Sendmail 5 -- at least, the version that Sun shipped,<br>which had some tweaks -- could deal with the Sendmail 8 <a href="http://sendmail.cf" target="_blank">sendmail.cf</a>, as<br>most of the rules had at that point remained unaltered.  But the new<br>long configuration options -- those it saw as junk, and skipped.  And<br>the sendmail binary had no defaults compiled in for most of these, so,<br>finding no suitable settings in the <a href="http://sendmail.cf" target="_blank">sendmail.cf</a> file, they were set to<br>zero.<br><br>One of the settings that was set to zero was the timeout to connect to<br>the remote SMTP server.  Some experimentation established that on this<br>particular machine with its typical load, a zero timeout would abort a<br>connect call in slightly over three milliseconds.<br><br>An odd feature of our campus network at the time was that it was 100%<br>switched.  An outgoing packet wouldn&#39;t incur a router delay until hitting<br>the POP and reaching a router on the far side.  So time to connect to a<br>lightly-loaded remote host on a nearby network would actually largely be<br>governed by the speed of light distance to the destination rather than by<br>incidental router delays.<br><br>Feeling slightly giddy, I typed into my shell:<br><br>$ units<br>1311 units, 63 prefixes<br><br>You have: 3 millilightseconds<br>You want: miles<br>        * 558.84719<br>        / 0.0017893979<br><br>&quot;500 miles, or a little bit more.&quot;<br><br>Trey Harris<br>-- <br></div><div> </div><div><div><font face="verdana, helvetica, sans-serif"></font><br><span></span></div><font size="3"><div>Cheers,<br><span></span>Elkhorn<br><span></span><br><span></span></div><div>=&gt; As of sending this e-mail, I have not received a National Security Letter &lt;=<br></div><div><span></span> </div><span><div><font size="3">Please - do not send me any material that you do not wish to share with the NSA, GCHQ, or other members of the &quot;Five Eyes&quot;. Or various corporate entities.<br></font></div></span><div><font face="Times New Roman">This communication may be unlawfully collected and stored by the National Security Agency (NSA), or other organizations, in secret. The parties to this email do not consent to the retrieving or storing of this communication and any related metadata, as well as printing, copying, re-transmitting, disseminating, or otherwise using it. If you believe you have received this communication in error, please delete it immediately.</font><font face="Times New Roman"><em><br><span></span></em></font></div><div><font face="Times New Roman">&quot;It is difficult to get a man to understand something, when his salary depends upon his not understanding it!&quot; </font><font face="Times New Roman">—</font><font face="Times New Roman"> <i>Upton Sinclair</i> <br><span></span></font></div><font face="Times New Roman"><div>&quot;Evolution is just a theory. Like, umm, gravity.&quot; </div></font></font><div></div></div></div></div>

<p></p>

-- <br>
You received this message because you are subscribed to the Google Groups &quot;Yucks&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:yucks+unsubscribe@googlegroups.com" target="_blank">yucks+unsubscribe@googlegroups.com</a>.<br>
To post to this group, send email to <a href="mailto:yucks@googlegroups.com" target="_blank">yucks@googlegroups.com</a>.<br>
Visit this group at <a href="http://groups.google.com/group/yucks" target="_blank">http://groups.google.com/group/yucks</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/optout</a>.<br>
</div>