amset

.info
.co.uk - exchange consultancy
Have your Exchange server installed, maintained or
upgraded by Sembee.
Exchange 2000, 2003, 2003 SBS, 2007
More Information (UK only)

Broadband - Exchange
Login Scripts - Net Admin
Outlook - Windows Mobile
Windows

Contact - Director's Blog

AddThis Social Bookmark Button

Exchange Server

Exchange Consultancy


Amazon Store


Basic Email Gateway Server

Company wide Contact List

Disabled User Account

Distribution Lists

DNS Configuration

Exchange and a
Dynamic IP Address

Event ID 1221

Filter Unknown Users

Global Mailbox Folder
Permissions from Server

Intelligent Message Filter

Internal Email Address
for External People

Mailbox and Management
Account

Message Tracking

Migrating to a new server

Multiple Domains

Offline Address Book Errors

Options when a Staff Member
Leaves

Outlook Web Access

PDAs, OMA and EAS

Permissions Best Practises

Post Install Configuration

Public Folders

Prerequisites for Exchange
System Tools

RPC over HTTPS

Secure your SMTP Relay

Shutdown Script

SMTP Services and Exchange

SMTP Diagnostics

Spam Cleanup

Switching From POP3
to SMTP Delivery

Telnet Test

Username Change

Exchange Server
Compatibility Information
Exchange
Server Version
Compatibility
5.5 No
2000 No
2003 Yes
2007 Maybe
Filter Out Mail to Non-Existent Users - Exchange 2003

Author: Simon Butler, Exchange MVP, MCSE
Last Page Review: 23/02/2009

This is for Exchange 2003 ONLY. For the version for Exchange 2007, click here: Filter Out Mail to Non-Existent Users - Exchange 2007

Exchange 2003 introduced a new facility to filter email messages if the email address do not exist in the Active Directory. This stops spammers from sending messages to non-valid addresses.

The rejection is done at the SMTP level - so the email message isn't even delivered. If valid senders misspell an email address then they will get a bounce message immediately - indicating that the message has been rejected.

This feature does expose your server to "Directory Harvest" attacks, allowing spammers to find valid email addresses on your server. Therefore it should only be enabled on Exchange 2003 installed on Windows 2003 so that the tar pit feature can be enabled (see below).

Exchange 2000 and users on Windows 2000 with Exchange 2003

If you are using the older version of Windows or Exchange, then you should look at third party tools to do the same thing.

Vamsoft's ORF is one such product that can filter on the active directory.

Enabling the Option on Exchange 2003

To enable this option:

  1. Expand ESM, Message Delivery.
  2. Right click on "Message Delivery" and choose Properties.
  3. Click on the tab "Recipient Filtering".
  4. Enable the option "Filter Recipients who are not in the directory."

    Screenshot: Message Delivery Properties: Enable Filter Recipients who are not in the Directory

You then need to enable the Recipient Filter on the SMTP Server.

  1. Still in ESM, Expand Admin Groups, <your admin groups>, Server, <your server>, Protocols, SMTP.
  2. Right click on SMTP Virtual Server and choose Properties.
  3. Click on "Advanced" next to the IP address on the first tab.

    Screenshot: Default SMTP Virtual Server
     
  4. With the IP address selected, choose "Edit".

    Screenshot: SMTP Virtual Server Advanced Properties
     
  5. Enable "Apply Recipient Filter".

    Sceenshot: SMTP Virtual Server Advanced Properties, Identification
     
  6. Click Apply/OK until clear.

Avoiding Directory Harvest Attacks

This feature makes your server vulnerable to directory harvest attacks - which is where the attacker sends commands to your server to find valid addresses. This can be avoided by using a feature known as tar pitting, which slows down the response of your server to these commands making it unviable for the attacker to scan your server. 

Tar pitting was previously only available as a hot fix, but is now part of Windows 2003 Service Pack 1 and higher.

The tar pit is set with a small registry change.

Copy and paste the following text in to notepad and save it as tarpit.reg, changing the file type to All Types so that it is saved as a registry file. Then double click on it to install.

Restart the SMTP Server Service

After enabling these options, restart the SMTP Server Service in Services for them to take full effect.

Full information on enabling the feature can be found here: http://support.microsoft.com/default.aspx?kbid=842851

Sponsored Links

Last Page Update:
23/02/2009

Back to the Top
Contact Us - Director's Blog
Exchange Index - Home Page


Broadband - Exchange - Login Scripts - Network Admin - Outlook - Windows Mobile - Windows


© Sembee Ltd. 1998 - 2009. All rights reserved. Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions. All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned on this site. This site is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.