The Cellar  

Go Back   The Cellar > Main > Technology
FAQ Community Calendar Today's Posts Search

Technology Computing, programming, science, electronics, telecommunications, etc.

Reply
 
Thread Tools Display Modes
Old 12-14-2009, 06:38 PM   #1
Clodfobble
UNDER CONDITIONAL MITIGATION
 
Join Date: Mar 2004
Location: Austin, TX
Posts: 20,012
The Case of the 500-Mile Email

From here:


The following is the 500-mile email story in the form it originally appeared, in a post to sage-members on Sun, 24 Nov 2002.:

From trey@sage.org Fri Nov 29 18:00:49 2002
Date: Sun, 24 Nov 2002 21:03:02 -0500 (EST)
From: Trey Harris <trey@sage.org>
To: sage-members@sage.org
Subject: The case of the 500-mile email (was RE: [SAGE] Favorite impossible
task?)

Here's a problem that *sounded* impossible... I almost regret posting the
story to a wide audience, because it makes a great tale over drinks at a
conference. :-) The story is slightly altered in order to protect the
guilty, elide over irrelevant and boring details, and generally make the
whole thing more entertaining.

I was working in a job running the campus email system some years ago when
I got a call from the chairman of the statistics department.

"We're having a problem sending email out of the department."

"What's the problem?" I asked.

"We can't send mail more than 500 miles," the chairman explained.

I choked on my latte. "Come again?"

"We can't send mail farther than 500 miles from here," he repeated. "A
little bit more, actually. Call it 520 miles. But no farther."

"Um... Email really doesn't work that way, generally," I said, trying to
keep panic out of my voice. One doesn't display panic when speaking to a
department chairman, even of a relatively impoverished department like
statistics. "What makes you think you can't send mail more than 500
miles?"

"It's not what I *think*," the chairman replied testily. "You see, when
we first noticed this happening, a few days ago--"

"You waited a few DAYS?" I interrupted, a tremor tinging my voice. "And
you couldn't send email this whole time?"

"We could send email. Just not more than--"

"--500 miles, yes," I finished for him, "I got that. But why didn't you
call earlier?"

"Well, we hadn't collected enough data to be sure of what was going on
until just now." Right. This is the chairman of *statistics*. "Anyway, I
asked one of the geostatisticians to look into it--"

"Geostatisticians..."

"--yes, and she's produced a map showing the radius within which we can
send email to be slightly more than 500 miles. There are a number of
destinations within that radius that we can't reach, either, or reach
sporadically, but we can never email farther than this radius."

"I see," I said, and put my head in my hands. "When did this start? A
few days ago, you said, but did anything change in your systems at that
time?"

"Well, the consultant came in and patched our server and rebooted it.
But I called him, and he said he didn't touch the mail system."

"Okay, let me take a look, and I'll call you back," I said, scarcely
believing that I was playing along. It wasn't April Fool's Day. I tried
to remember if someone owed me a practical joke.

I logged into their department's server, and sent a few test mails. This
was in the Research Triangle of North Carolina, and a test mail to my own
account was delivered without a hitch. Ditto for one sent to Richmond,
and Atlanta, and Washington. Another to Princeton (400 miles) worked.

But then I tried to send an email to Memphis (600 miles). It failed.
Boston, failed. Detroit, failed. I got out my address book and started
trying to narrow this down. New York (420 miles) worked, but Providence
(580 miles) failed.

I was beginning to wonder if I had lost my sanity. I tried emailing a
friend who lived in North Carolina, but whose ISP was in Seattle.
Thankfully, it failed. If the problem had had to do with the geography of
the human recipient and not his mail server, I think I would have broken
down in tears.

Having established that--unbelievably--the problem as reported was true,
and repeatable, I took a look at the sendmail.cf file. It looked fairly
normal. In fact, it looked familiar.

I diffed it against the sendmail.cf in my home directory. It hadn't been
altered--it was a sendmail.cf I had written. And I was fairly certain I
hadn't enabled the "FAIL_MAIL_OVER_500_MILES" option. At a loss, I
telnetted into the SMTP port. The server happily responded with a SunOS
sendmail banner.

Wait a minute... a SunOS sendmail banner? At the time, Sun was still
shipping Sendmail 5 with its operating system, even though Sendmail 8 was
fairly mature. Being a good system administrator, I had standardized on
Sendmail 8. And also being a good system administrator, I had written a
sendmail.cf that used the nice long self-documenting option and variable
names available in Sendmail 8 rather than the cryptic punctuation-mark
codes that had been used in Sendmail 5.

The pieces fell into place, all at once, and I again choked on the dregs
of my now-cold latte. When the consultant had "patched the server," he
had apparently upgraded the version of SunOS, and in so doing
*downgraded* Sendmail. The upgrade helpfully left the sendmail.cf
alone, even though it was now the wrong version.

It so happens that Sendmail 5--at least, the version that Sun shipped,
which had some tweaks--could deal with the Sendmail 8 sendmail.cf, as most
of the rules had at that point remained unaltered. But the new long
configuration options--those it saw as junk, and skipped. And the
sendmail binary had no defaults compiled in for most of these, so, finding
no suitable settings in the sendmail.cf file, they were set to zero.

One of the settings that was set to zero was the timeout to connect to the
remote SMTP server. Some experimentation established that on this
particular machine with its typical load, a zero timeout would abort a
connect call in slightly over three milliseconds.

An odd feature of our campus network at the time was that it was 100%
switched. An outgoing packet wouldn't incur a router delay until hitting
the POP and reaching a router on the far side. So time to connect to a
lightly-loaded remote host on a nearby network would actually largely be
governed by the speed of light distance to the destination rather than by
incidental router delays.

Feeling slightly giddy, I typed into my shell:

$ units
1311 units, 63 prefixes

You have: 3 millilightseconds
You want: miles
* 558.84719
/ 0.0017893979

"500 miles, or a little bit more."

Trey Harris
Clodfobble is offline   Reply With Quote
Old 12-14-2009, 06:39 PM   #2
Clodfobble
UNDER CONDITIONAL MITIGATION
 
Join Date: Mar 2004
Location: Austin, TX
Posts: 20,012
And an FAQ about the details.
Clodfobble is offline   Reply With Quote
Old 12-14-2009, 08:50 PM   #3
Elspode
When Do I Get Virtual Unreality?
 
Join Date: Dec 2002
Location: Raytown, Missouri
Posts: 12,719
So no emails in excess of the light travel distance would succeed because the SMTP server timed out because the timeout default was set so low?
__________________
"To those of you who are wearing ties, I think my dad would appreciate it if you took them off." - Robert Moog
Elspode is offline   Reply With Quote
Old 12-14-2009, 09:17 PM   #4
Pie
Gone and done
 
Join Date: Sep 2001
Posts: 4,808
Dude. That rocks. I am stealing this one for my files!
__________________
per·son \ˈpər-sən\ (noun) - an ephemeral collection of small, irrational decisions
The fun thing about evolution (and science in general) is that it happens whether you believe in it or not.
Pie is offline   Reply With Quote
Old 12-14-2009, 11:06 PM   #5
ZenGum
Doctor Wtf
 
Join Date: Oct 2007
Location: Badelaide, Baustralia
Posts: 12,861
Better yet, if you're ever unfairly fired from a job, that'd be a lovely little time bomb to leave in their system. You might want to extend it to a few thousand miles, though, so it takes longer for the problem to manifest.
__________________
Shut up and hug. MoreThanPretty, Nov 5, 2008.
Just because I'm nominally polite, does not make me a pussy. Sundae Girl.
ZenGum is offline   Reply With Quote
Old 12-14-2009, 11:14 PM   #6
lumberjim
I can hear my ears
 
Join Date: Oct 2003
Posts: 25,571
nerds
__________________
This body holding me reminds me of my own mortality
Embrace this moment, remember
We are eternal, all this pain is an illusion ~MJKeenan
lumberjim is offline   Reply With Quote
Old 12-15-2009, 02:40 AM   #7
xoxoxoBruce
The future is unwritten
 
Join Date: Oct 2002
Posts: 71,105
Quote:
Originally Posted by Clodfobble View Post
And an FAQ about the details.
Quote:
Originally Posted by lumberjim View Post
nerds
The people asking the questions certainly are. They're saying the text equivalent of, "photoshop".
__________________
The descent of man ~ Nixon, Friedman, Reagan, Trump.
xoxoxoBruce is offline   Reply With Quote
Old 12-15-2009, 07:21 AM   #8
Radar
Constitutional Scholar
 
Join Date: Dec 2002
Location: Ocala, FL
Posts: 4,006
That would have freaked me out. Especially the part about the users determining the distance.
__________________
"I'm completely in favor of the separation of Church and State. My idea is that these two institutions screw us up enough on their own, so both of them together is certain death."
- George Carlin
Radar is offline   Reply With Quote
Old 12-15-2009, 01:18 PM   #9
wolf
lobber of scimitars
 
Join Date: Jul 2001
Location: Phila Burbs
Posts: 20,774
That is so amazingly geeky, on several levels ... computer geeky, and just plain math geeky.
__________________
wolf eht htiw og

"Conspiracies are the norm, not the exception." --G. Edward Griffin The Creature from Jekyll Island

High Priestess of the Church of the Whale Penis
wolf is offline   Reply With Quote
Old 12-15-2009, 05:15 PM   #10
SteveDallas
Your Bartender
 
Join Date: Jan 2002
Location: Philly Burbs, PA
Posts: 7,651
Fucking win. This is better than the time I diagnosed that our VAX wasn't booting because one of the system log files had reached the maximum file version value of 65535.
SteveDallas is offline   Reply With Quote
Old 12-16-2009, 09:58 AM   #11
Trilby
Slattern of the Swail
 
Join Date: Jul 2004
Posts: 15,654
Quote:
Originally Posted by lumberjim View Post
nerds
YES they ARE!


shhhh...soon we'll hear them arguing about fractals...
__________________
In Barrie's play and novel, the roles of fairies are brief: they are allies to the Lost Boys, the source of fairy dust and ...They are portrayed as dangerous, whimsical and extremely clever but quite hedonistic.

"Shall I give you a kiss?" Peter asked and, jerking an acorn button off his coat, solemnly presented it to her.
—James Barrie


Wimminfolk they be tricksy. - ZenGum
Trilby is offline   Reply With Quote
Old 12-16-2009, 10:03 AM   #12
glatt
 
Join Date: Jul 2003
Location: Arlington, VA
Posts: 27,717
Quote:
Originally Posted by Brianna View Post
YES they ARE!
She said, breathlessly.

glatt is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 10:38 PM.


Powered by: vBulletin Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.