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
    How to protect an Exchange journaling mailbox from email spoofing
    Lock down Microsoft Outlook 2007 to prevent .PST file access
    Using Exchange Server journaling as an email-archiving solution
    Use the OWA Admin tool to 'segment' Outlook Web Access 2003 features
    Why are .PST files a security threat to Exchange Server mailboxes?
    OWA won't load after applying Exchange 2007 SP1 security patch
    Minimize remote and mobile Outlook Web Access (OWA) security risks
    Grant or deny permissions to access a user's Exchange 2007 mailbox
    Create a global Safe Senders List in Exchange 2007 to filter spam
    Migrating antispam settings from Exchange 2003 to Exchange 2007

    Exchange Server Administration Tips
    Set up messaging records management (MRM) in Exchange Server 2007
    How Microsoft's new support policy for virtualized Exchange will affect you
    Why too much memory can hurt Exchange Server 2007 performance
    Microsoft Exchange Server backup method pros and cons
    Migrating .PST files to an Exchange Server information store
    Virtualizing Exchange Server 2007 with Microsoft's Hyper-V
    Configure SMTP connection limits in Exchange Server 2003 and SBS
    Five Microsoft Exchange Server backup worst practices
    How to export Global Address List data to Microsoft Office Access
    Create a group policy to prevent .PST file storage in Exchange 2007

    Antispam Software and Spam Filtering
    How can I configure Exchange IMF to allow an IP address or DNS?
    Tool helps identify inbound Exchange Server email flow issues
    Configure SMTP relay restrictions in Exchange Server 2003 to stop spam
    Exchange email sent to a domain using SPF authentication is returned
    Secure Edge Transport servers using the Security Configuration Wizard
    Create a global Safe Senders List in Exchange 2007 to filter spam
    Migrating antispam settings from Exchange 2003 to Exchange 2007
    The six-layered secret of effective Exchange Server email filtering
    Top 10 Exchange, Microsoft Outlook and OWA email security tips of 2007
    Troubleshoot Microsoft Outlook email delivery problems
    Antispam Software and Spam Filtering 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.

  • HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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