Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Excessive Exchange Server NDRs destroy DNS
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Excessive Exchange Server NDRs destroy DNS


Serdar Yegulalp
01.30.2006
Rating: -4.60- (out of 5)


Exchange Server tips, tutorials and expert advice
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


Please let others know how useful this tip is via the rating scale at the end of it. Do you have a useful Exchange or Outlook tip, timesaver or workaround to share? Submit it to our tip contest and you could win a prize.


VIEW MEMBER FEEDACK TO THIS TIP

A common and deeply annoying side effect of spam is bogus non-delivery reports (NDRs).

If Exchange Server receives an e-mail sent to a nonexistent address (possibly as part of a dictionary attack strategy), it will attempt to fire off a non-delivery report to the target server.

However, if the target server doesn't even exist -- i.e., if it's a synthetic or randomly generated domain name like xqmngbtrd.com -- the NDR will never reach its intended target.

There's an even further complication: if you receive, say, a thousand spam e-mails from a bogus domain, the consequent NDRs will sit in Exchange Server's outgoing message queue and create DNS lookups for every message.

For bogus domains, DNS lookups will time out. Those excessive DNS lookups will also likely create too much UDP traffic to your DNS server, which will overwhelm other DNS operations and make them time out as well -- including legitimate messages to legitimate domains!

There are three ways to work around this problem:

  1. Use more sophisticated mail filtering via a third-party appliance or program, so those e-mails don't ever reach your Exchange server in the first place. Obviously, this is the most expensive solution, but if you're already planning to do something like this you can eliminate a whole host of problems at once.

  2. Create a recipient filtering policy for Microsoft Exchange so recipients that aren't in the directory are filtered out. To do this, open Exchange System Manager (ESM) and select Global Settings -> Delivery Options -> Properties. In the tab for Recipient Filtering, check the box labeled "Filter recipients who are not in the directory."

    You will also need to enable the recipient filter on the SMTP virtual server IP address you're using, if you haven't already done so. In ESM, select Servers -> Protocols -> SMTP -> Properties. Click Advanced and select the IP address to modify. Now click Edit, and then check "Apply Recipient Filter." This is a commonly overlooked setting and an extremely powerful one.

  3. The slowest and messiest -- but probably best first measure if you've got this problem now -- is to stop the SMTP server and manually delete the unwanted NDRs from the queue (usually found in C: \Program Files\Exchsrvr\Mailroot\vsi1\Queue); then restart the SMTP server.

About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter.


MEMBER FEEDBACK TO THIS TIP

When you turn on recipient filtering's "Filter recipients who are not in the directory," you also need to safeguard against a directory harvest attack once this is enabled. It is imperative to set the tar pit feature introduced prior to Exchange's 2003 SP1 (via hotfix) to any outside facing server. Configure the registry to use the tar pit feature. (Warning: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.)

To enable the tar pit feature, you must add the TarpitTime registry entry to the registry and then configure the delay time value. To do this, follow these steps:

(Note: If the TarpitTime registry entry does not exist, Exchange Server behaves as if the value of this registry entry were set to 0. When the TarpitTime registry entry has a value of 0, there is no delay when the SMTP address verification responses are sent.)

  1. Click Start -> click Run -> type regedit in the Open box -> click OK.
  2. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMTPSVC\Parameters
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. Type TarpitTime as the registry entry name, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. Click Decimal.
  7. In the Value data box, type the number of seconds that you want to delay SMTP address verification responses for each address that does not exist, and then click OK. (For example, type 5, and then click OK. This setting will delay SMTP address verification responses for five seconds.)
  8. Quit Registry Editor.
  9. Restart the computer.
—Poomba1


Do you have comments on this tip? Let us know.
Related information from SearchExchange.com:

  • Learning Guide: Spam
  • Tip: Dealing with undeliverable messages in Exchange Server
  • Tip: Stay above the SMTP queue floods
  • 15 tips in 15 minutes: Managing recipients and distribution lists
  • Reference Center: Exchange Server and DNS tips and resources
  • Reference Center: Exchange NDR tips and resources



    Rate this Tip
    To rate tips, you must be a member of SearchExchange.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



    RELATED CONTENT
    Exchange Security Tips
    Is full email encryption the solution to Exchange security?
    Lock down direct file access and protect OWA users
    Controlling spam in Exchange 2007 at the edge transport server level
    When to use a self-signed certificate with Exchange Server 2007
    Obtaining and verifying SSL certificates in Exchange Server
    How file-level antivirus software can harm your Exchange Server
    Understanding Exchange Server 2007 SP1 mobile security settings
    Which ActiveSync authentication method is best for your mobile device?
    Why you should secure Exchange 2007 using administrative policies
    Microsoft Exchange Server security dos and don'ts

    Exchange Server Administration Tips
    Is your Exchange 2007 hub transport server healthy?
    Avoid Outlook 2007 performance issues during repairs
    Developing an Exchange 2007 server role DR plan
    How DSAccess service improves Exchange Server 2007 reliability
    An introduction to the Exchange Remote Connectivity Analyzer tool
    Monitor Exchange 2007 with disk- and RPC-related counters
    DPM 2007 replica inconsistencies in Exchange databases
    Track Exchange 2007 mailbox server health using database counters
    Digging deeper into Exchange Server 2010
    Exchange admins: Is it time to rethink your email address policy?

    Spam and virus protection
    Controlling spam in Exchange 2007 at the edge transport server level
    How file-level antivirus software can harm your Exchange Server
    Problems with email spoofing on SBS 2003
    Exchange Insider e-zine
    Securing your Exchange Server 2007 journaling archives
    Troubleshooting Outlook Web Access issues on a 64-bit system
    Microsoft Exchange Server security dos and don'ts
    Troubleshooting Microsoft Exchange Server Event ID error 6009
    How effective is tracking the IP address of an email hacker?
    How can I configure Exchange IMF to allow an IP address or DNS?
    Spam and virus protection Research

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    greylist  (SearchExchange.com)
    hash buster  (SearchExchange.com)
    image spam  (SearchExchange.com)
    KnujOn  (SearchExchange.com)
    Sender ID  (SearchExchange.com)
    spam confidence level  (SearchExchange.com)
    spamblock  (SearchExchange.com)
    spim  (SearchExchange.com)
    tarpitting  (SearchExchange.com)
    teergrube  (SearchExchange.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



  • Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2004 - 2009, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts