Home > Microsoft Exchange Tips > Exchange Security Tips > Fighting spam with SMTP 'tar pits'
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SECURITY TIPS

Fighting spam with SMTP 'tar pits'


Serdar Yegulalp
10.17.2005
Rating: -4.67- (out of 5)


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


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.


"Tarpitting" is a way of reducing spam or spam-related attacks (such as directory harvesting). It involves delaying SMTP communications with remote servers suspected of sending unsolicited e-mail. This slows down mail processing on the spammers' end, so they can't bombard you as quickly or perform dictionary attacks as efficiently.

Windows Server 2003 Service Pack 1 now has a built-in tarpitting function that works with the included SMTP server or Exchange Server 2003.

The tar pit delay kicks in whenever an SMTP conversation with a remote server (i.e., whenever Exchange receives SMTP-relayed e-mail) produces a 5.x.x-type error code on your end. For instance, if a remote server tries to send e-mail to a nonexistent user, your server delays any further conversation with that server for a predetermined length of time.

Enabling tarpitting in Windows Server 2003 is simple:

  1. In the registry, go to the subkey:

    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SMTPSVC\Parameters

  2. Add a new DWORD value with the name TarpitTime and a decimal value registered in seconds. This is the length of time to wait when an error takes place, as described above. For example, if you set TarpitTime to 5, wait time will be five seconds.

  3. Stop and restart the SMTP Service.

Since most mail systems use a one-minute timeout for mail conversations, some administrators use delays of up to 90 seconds. But 20 seconds is a good starting point and shouldn't create too many adverse side effects.

Not everyone should enable tarpitting though.

If you use third-party antispam products that do a good job, tarpitting may do more harm than good.

Using tar pits may also make things difficult for legitimate users. For instance, if someone misspells the e-mail address of an acceptable message sent to you, and the tar pit time is set way above the timeout threshold tolerated by the sender, the mail in question will never even get a non-delivery report from your server.

The sender should get a problem report from their own SMTP server telling them that the mail in question could not be delivered -- but with a slightly misleading "Recipient timed out" error, rather than the proper "Username not found" error. (This could cause the administrator of the remote host to wonder, incorrectly, if there's something wrong with his network or the routing to the remote host.)

Tarpitting also works best when both recipient filtering and authenticated sessions are in use.

Recipient filtering lets you immediately reject e-mail that doesn't match anyone in your organization (which protects against dictionary attacks). It's useful when combined with tarpitting, since the majority of SMTP sessions trapped with tarpitting usually involve sending to invalid addresses.

Since tarpitting only works on anonymous SMTP sessions, if you exchange mail with other servers that authenticate, they can avoid any problems associated with tarpitting.

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


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

  • Learning Center: The spamfighter's toolbox
  • Step-by-Step Guide: How to use ISA Server as an SMTP filter
  • Reference Center: Tips and resources on spam prevention and management



    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   


    RELATED CONTENT
    Exchange Security Tips
    Why you should secure Exchange 2007 using administrative policies
    Microsoft Exchange Server security dos and don'ts
    Create a journal rule in Exchange 2007 to secure journaling mailboxes
    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

    Microsoft Exchange Server 2003
    Top 10 Microsoft Exchange Server tips of 2008
    Configure a POP3 connector to receive external email on SBS 2003
    Exchange Server public folder rules and memory limits
    How to copy and transfer a Microsoft Outlook 2007 auto fill list
    Keeping the old server name after migrating to Exchange Server 2003
    Can OWA 5.5 users access email from Exchange Server 2003?
    Deployment tool errors during a migration from Exchange 5.5 to Exchange 2003
    Microsoft Exchange Server 2003 database recovery methods
    Microsoft Exchange Server mailbox recovery using database portability
    Recovering an Exchange Server 2003 store on a disaster recovery box
    Microsoft Exchange Server 2003 Research

    Antispam Software and Spam Filtering
    Microsoft Exchange Server security dos and don'ts
    Troubleshooting Microsoft Exchange Server Event ID error 6009
    How can I configure Exchange IMF to allow an IP address or DNS?
    Tool helps identify inbound Exchange Server email flow issues
    Exchange email sent to a domain using SPF authentication is returned
    Configure SMTP relay restrictions in Exchange Server 2003 to stop spam
    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
    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.



  • 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 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  |  Site Map




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