Search /
Docfinder:
Advanced search  |  Help  |  Site map
RESEARCH CENTERS
SITE RESOURCES
Click for Layer 8! No, really, click NOW!
Networking for Small Business
TODAY'S NEWS
iPhone 5 rumor rollup for the week ending Feb. 10
Forget Public Cloud or Private Cloud, It's All About Hyper-Hybrid
Apple passes HP as largest tech company
How to get the IRS' attention: Forge nearly $8 million in tax returns, steal identities
Much of Western U.S. is a 3G wasteland, says FCC
How the Phoenix Suns basketball team takes on social media attacks
Microsoft details Windows 8 for ARM devices
Resume Makeover: How an Information Security Professional Can Target CSO Jobs
Blogger exposes major Google Wallet security flaw
Web app lets enterprise set security, sharing for Google Apps users
Cloudscaling to offer OpenStack private cloud platform
Macs take on the enterprise
Valentine's Day Patch Tuesday: Microsoft to issue 9 patches, 4 critical
Mobile World Congress sneak peek: Quad-core smartphones, Ice Cream Sandwich & more
/

Mail and firewalls: Oh my - Part I

Related linksToday's breaking news
Send to a friendFeedback

Sign up to receive this and other networking newsletters in your inbox.

A few months ago I was raving about how great Microsoft's SP2 for Exchange Version 5.5 was. However, I spent all week digging bugs out of mail systems where SP2 was installed. Conclusion: SP2 is dangerous and should not be installed if you have a stupid firewall.

Here's why. One of the nifty features that SP2 has is Transport Layer Security (TLS). However, if you have a stupid firewall, then TLS actually causes an interoperability failure. Next time, I'll explain what TLS is and why you want it (and why it's different from SASL, which is another thing you want related to security, and why SASL is not SSL, but SSL is really TLS).

Normally, SMTP servers that work with TLS act something like this:

First, the server advertises that it can do TLS during the HELO/EHLO dialog with the client. So an SMTP client connects to an SMTP server, says "EHLO," and the server responds with, among other things, "STARTTLS." This means that the server can do TLS to encrypt the data stream. The SMTP client sees the "STARTTLS," and if the client can also do TLS, then it may choose to start up an encryption algorithm so that everything from here on in is encrypted. This is all well documented: the TLS protocol in RFC 2246 and SMTP plus TLS in RFC 2487 (ftp://ftp.opus1.com/rfc/rfc2487.txt).

Now, with Exchange Version 5.5 SP2, the Exchange SMTP server advertises that it can do TLS even if the security system hasn't been set up. To do TLS, you see, you need a certain amount of configuration: signed keys, and all that jazz. It's not hard to do, but my experience is that 99% of Exchange managers haven't bothered to finish setting up their Exchange systems.

No problem. In a normal Exchange setup, then, the Exchange server says, "I can do TLS;" the client says "OK, let's do TLS;" and Exchange comes back with the equivalent of "just kidding." So it's a waste of packets, but I'm guessing that Microsoft Exchange engineers couldn't figure out an easy way to turn on and off the TLS stuff inside of a patch kit like SP2 and so that's just the way it is.

Enter the Cisco PIX firewall. The PIX has, among other things, an exceedingly stupid SMTP proxy. This is not unusual --- as far as I can tell, all firewalls out there have exceedingly stupid SMTP proxies. But the PIX proxy is even stupider than most because it likes to eat commands that it doesn't understand.

So here's what happens when you stick an Exchange system (with Version 5.5/SP2 installed) behind a PIX. Remember that the Exchange server always says it can do TLS, even when it can't.

So, a client tries to connect to the Exchange server. The PIX intercepts the connection, turns on its SMTP proxy, and shuffles commands back and forth. The server says, "I will do TLS." PIX passes that on to the client. A TLS-capable SMTP client will see this and say "OK, let's do TLS." The PIX, being a wily little box, promptly eats that command and says to the client "OK." So the client thinks "OK, let's begin to bring up encryption." Now there is no other way out of here: once you've both said, "let's encrypt," you have to encrypt. There is no graceful way out. At this point both sides, to the client's way of thinking, have said, "let's encrypt."

Unfortunately the server doesn't have any idea what the PIX has said on its behalf. And now you have total interoperability failure. Mail cannot flow over this pipe. The SMTP client tries to bring up encryption; the PIX doesn't have any idea how to deal with that; and the Exchange SMTP server couldn't do encryption even if the PIX let the command through, because it hasn't been set up.

So through the good graces of Microsoft giving us a feature with no documented "off" switch, and Cisco for providing an SMTP proxy that does more harm than good, we now have chunks of the Internet unable to send mail to each other.

And you thought interoperability problems were a thing of the past ... not so.

RELATED LINKS

Joel Snyder is a senior partner with Opus One, a consulting firm in Tucson, Arizona. He spends most of his time on the road helping people build larger, faster, better, and more reliable networks. His professional travels have taken him from San Francisco to St. Petersburg, where he always carries his trusty Macintosh and modem, neither of which have cute names. He is also a member of the Network World Test Alliance and writes extensively on networking topics. Reach him at joel.snyder@opus1.com.

More information on the TLS protocol in RFC 2246

More information on SMTP plus TLS in RFC 2487

Exchange managers: More good news
Network World Fusion, 02/01/99

Archive of Network World on Groupware and Messaging newsletters


NWFusion offers more than 40 FREE technology-specific email newsletters in key network technology areas such as NSM, VPNs, Convergence, Security and more.
Click here to sign up!
New Event - WANs: Optimizing Your Network Now.
Hear from the experts about the innovations that are already starting to shake up the WAN world. Free Network World Technology Tour and Expo in Dallas, San Francisco, Washington DC, and New York.
Attend FREE
Your FREE Network World subscription will also include breaking news and information on wireless, storage, infrastructure, carriers and SPs, enterprise applications, videoconferencing, plus product reviews, technology insiders, management surveys and technology updates - GET IT NOW.