Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


January 25, 2007

Troubleshooting with the Fundamentals

RSS
Subscribe to Windows IT Pro | See More Telnet Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

My oldest son loves playing basketball. I like his current coach because he stresses the importance of fundamentals: Rebounding, ball handling, and good defense are much more important than flashy plays or showboating. I ran into a novel problem last week, and I thought it would make a good column because it illustrates how fundamentals are also important in messaging troubleshooting.

I've written before about my conversion from Palm OS to Windows Mobile ("DirectPush in the Real World," April 23, 2006). My Palm Treo 700w is the most valuable object I own because it allows me to store and process much more information than my poor brain can handle alone. Windows Mobile lets you have multiple messaging accounts on a single device; you can have one Exchange ActiveSync (EAS) account, plus multiple IMAP, POP, or Hotmail accounts. The account possibilities presented me with a conundrum: Should I use my home or work Exchange server as the primary EAS account? The home server won out thanks to Windows Mobile's ability to handle meeting requests sent to IMAP accounts, and to my need to keep a shared calendar with my family.

My work email comes to an IMAP account on the handheld device. This setup worked well until a couple of months ago, when I noticed a baffling problem: Sometimes when I sent a message, I received a nondelivery report (NDR) on the device, but that NDR didn't appear in OWA or on my desktop mail clients; it was being generated by the handheld device itself. The NDR was fairly unhelpful; it said that a recipient was invalid and that the message had been moved to the Drafts folder. Sometimes resending the failed message worked; other times it didn't.

At first, I figured this problem was a transient side effect of upgrading from the beta of Exchange Server 2007 to the release version, and that it would go away once we'd finished our upgrade. Messages didn't bounce all of the time, and the workaround was simple enough. Then Christmas came, and my discretionary troubleshooting time vanished. After upgrading our Client Access server earlier this month, the problem would still occasionally occur, and I finally decided to get to the bottom of things.

My first step to solving the problem was to figure out exactly where the NDR was coming from. When I used the Message Tracking Center in Exchange 2007, I didn't see any of the failed messages arriving at all. A quick check with the Get-MessageTrackingLog command in Exchange Management Shell revealed that other messages were flowing normally but that none of my NDR-producing messages sent via SMTP ever arrived. I then checked our Exchange Server 2003 SMTP bridgehead (which we've kept around so that we have a mixed environment for testing); the protocol logs that Microsoft IIS maintains showed SMTP delivery attempts from my handheld device, some successful, some not. That was my first clue; it proved that neither the Client Access server nor the Mailbox server was responsible for the NDR.

The second clue came when I used Telnet to connect to the bridgehead and send a message. I quickly found that messages to a single recipient always worked but messages with two or more recipients would always fail on the first try. The error was very instructive: The GRYNX Greylist filter that we'd installed back in November was rejecting messages sent to two or more recipients from my home network. I could see that all the failed attempts in the protocol log came from the Verizon Wireless IP address range, and suddenly the problem was obvious: The greylisting add-on had decided that my phone was a spammer. When I tried to send or reply to more than one addressee at a time, the filter blocked my message. On a conventional SMTP server, the message would be retransmitted later. However, Pocket Outlook didn't understand the temporary status code returned by the SMTP server, so it generated a device-side NDR.

The fix was simple; I merely had to add my sending account to the greylist software's whitelist to tell it that it should always accept mail from me. Poof! Problem solved.

What did I learn from this? First, if I'd remembered earlier that the software had been installed, I would have checked it. However, because I didn't install it myself, and because it wasn't causing any other problems, I had forgotten all about it. Lesson: Keep better track of configuration changes on the server. Second, I found that I like searching the message tracking logs about a million times more with the command line than with the message tracking GUI. This is obviously a personal preference, but the point is that you might find it easy to use Exchange Management Shell with its easy-to-understand cmdlets such as Get-MessageTrackingLog. Third, never underestimate the power of knowing how things work at a basic level. Impersonating the SMTP sender by using Telnet quickly unmasked the problem; thankfully, because the people who taught me emphasized fundamentals, I knew how to apply such a fundamental tool to troubleshoot the problem.

Chris J., the author of GRYNX Greylist, already wrote to tell me that this problem has been fixed in the current version, which is excellent support in my book. GRYNX Greylist has done a great job blocking spam, and we're going to continue to use it—now with a slightly healthier regard for its abilities!

End of Article



Reader Comments
Good article and good refresher. Its amazing how much more imporatance is being placed on good change management practices. This would have helped detect the addition of the greylist.

edarby January 25, 2007 (Article Rating: )


It's funny; I am an absolute authoritarian on change management with my customers, but obviously our own internal processes need some tweaking!

paulrobichaux January 26, 2007 (Article Rating: )


excellent article, some times we over look basics which make us pull our hair out especially when we realise it was something so simple.

HaqNawaz January 29, 2007 (Article Rating: )


Great article Paul - you should be writing whodunnits! Seriously though, it makes a great point and I dare say we've all had similar cases to this, I know I have.

cstenson January 30, 2007 (Article Rating: )


You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 9, 2009

An often irreverent look at some of the week's other news, including some more Windows 7 sales momentum, some Sophos stupidity, Microsoft's cloud computing self-loathing, more whining from the browser makers, Zoho's "Fake Office," and much, much more ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

Understanding File-Size Limits on NTFS and FAT

A general confusion about files sizes on FAT seems to stem from FAT32's file-size limit of 4GB and partition-size limit of 2TB. ...


Related Articles Keeping the Door Open to Exchange Server 2003

Exchange Server and Outlook Whitepapers Take Control of Your Email: Understand the Business Reasons for Email Storage Management

Continuous Data Protection and Recovery for Microsoft Exchange

Related Events WinConnections and Microsoft® Exchange Connections

Check out our list of Free Email Newsletters!

Exchange Server and Outlook eBooks Spam Fighting and Email Security for the 21st Century

Understanding and Leveraging Code Signing Technologies

The Expert's Guide for Exchange 2003: Preparing for, Moving to, and Supporting Exchange Server 2003

Related Exchange Server and Outlook Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format

Exchange & Outlook UPDATE eNewsletter
News, strategies, products, and developments in Exchange Server and Outlook messaging.

Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement