Microsoft KB Archive/823157

= HOW TO: Examine Relay Restrictions for Anonymous SMTP Connections and Filter Unsolicited E-mail Messages in Exchange Server 2003 =

Article ID: 823157

Article Last Modified on 10/25/2007

-

APPLIES TO


 * Microsoft Exchange Server 2003 Enterprise Edition
 * Microsoft Exchange Server 2003 Standard Edition

-



IN THIS TASK

 * SUMMARY
 * Examine Relay Restrictions for Anonymous SMTP Connections
 * Filter Unsolicited E-mail Messages



SUMMARY
This step-by-step article describes how to examine the default relay behavior of Exchange Server 2003 and how to configure a Simple Mail Transfer Protocol (SMTP) virtual server to filter unsolicited commercial e-mail.back to the top

Examine Relay Restrictions for Anonymous SMTP Connections
To see the default relay behavior of Exchange 2003, follow these steps:  Click Start, click Run, type telnet, and then click OK. At the Microsoft Telnet command prompt, type set LOCAL_ECHO, and then press ENTER. Type open  25, and then press ENTER. To verify that you are successfully connected to the ESMTP Mail Service, type helo .com, and then press ENTER. Type mail from: advertiser123@ .com, and then press ENTER. Type rcpt to: recipient@ .com, and then press ENTER.

You receive the following error message:

Unable to relay for Recipient@ .com

 Type quit, and then press ENTER two times to close the connection to the server and leave the Telnet session running.</li></ol>

You can see that the default behavior for Exchange 2003 is to restrict the relay of messages to a recipient in another domain.back to the top

Filter Unsolicited E-mail Messages
You may want to filter unsolicited e-mail messages and prevent them from being sent to recipients in your domain. In these steps, the address  is used as an example, and can be replaced by the address that you want to filter. Use the asterisk (*) wildcard character to filter e-mail messages from all senders in the specified domain.

To filter unsolicited e-mail messages, follow these steps:
 * 1) Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.
 * 2) Expand Global Settings, right-click Message Delivery, and then click Properties.
 * 3) Click the Sender Filter tab, and then click Add.
 * 4) In the Sender box, type , and then click OK.
 * 5) Click to select the Archive filtered messages check box.
 * 6) Click to select the Filter messages with blank sender check box, and then click Apply.
 * 7) In the Exchange System Manager dialog box, click OK, and then click OK.
 * 8) If the Display administrative groups option is turned on, expand Administrative Groups, and then expand   (where First Administrative Group is the name of your administrative group).

Note To display administrative groups, right-click, click Properties, click to select the Display administrative groups check box, click OK two times, and then restart Exchange System Manager.
 * 1) Expand Servers, expand , and then expand Protocols.
 * 2) Click SMTP, right-click Default SMTP Virtual Server, and then click Properties.
 * 3) On the General tab, click Advanced, click the address in the Address box, and then click Edit.
 * 4) In the Identification dialog box, click to select the Apply Sender Filter check box.
 * 5) Click OK three times, and then give the Metabase Update service some time to transfer the configuration changes to the Microsoft Internet Information Services (IIS) metabase.
 * 6) Open the Telnet session, type open   25, and then press ENTER.
 * 7) Type helo  .com, and then press ENTER.
 * 8) Type mail from: sender@ .com, and then press ENTER.
 * 9) Type rcpt to: administrator@ .com, and then press ENTER.
 * 10) Type data, and then press ENTER.
 * 11) Type From: sender@ .com, and then press ENTER.
 * 12) Type To: administrator@  .com, and then press ENTER.
 * 13) Type Subject: This is an unfiltered message, and then press ENTER.
 * 14) Press ENTER, type We are testing message filtering, and then press ENTER.
 * 15) Press ENTER, type a single period ( . ), and then press ENTER to signal the end of message transfer. Note the response from the server that the message is queued for delivery.
 * 16) Type mail from: advertiser123@ .com, and then press ENTER. The server returns a &quot;Sender Denied&quot; error message and immediately terminates the connection.
 * 17) Press ENTER, type Open server_name 25, and then press ENTER.
 * 18) Type helo  .com, and then press ENTER.
 * 19) Type mail from: sender@ .com, and then press ENTER.
 * 20) Type rcpt to: administrator@ .com, and then press ENTER.
 * 21) Type data, and then press ENTER.
 * 22) Type From: advertiser123@ .com, and then press ENTER.
 * 23) Type To: administrator@  .com, and then press ENTER.
 * 24) Type Subject: This is a filtered message, and then press ENTER.
 * 25) Press ENTER, type We are testing message filtering, and then press ENTER.
 * 26) Press ENTER, type a single period ( . ), and then press ENTER to signal the end of message transfer. Note the response from the server that the sender is denied. You can find this filtered message as a .tmp file in the Exchsrvr\Mailroot\Vsi 1\Filter folder.
 * 27) Close the Telnet client program.

back to the top

Keywords: kbhowtomaster KB823157

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.