How To Examine Relay Restrictions for Anonymous SMTP Connections and Filter Unsolicited E-mail Messages in Exchange 2000 Server (313395)
The information in this article applies to:
- Microsoft Exchange 2000 Server
This article was previously published under Q313395 SUMMARY
This step-by-step article describes how to examine the default relay behavior of Exchange 2000 Server 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 - Click Start, click Run, type telnet in the Run box, and then click OK.
- At the Microsoft Telnet command prompt, type set LOCAL_ECHO, and then press ENTER.
- Type open server_name 25, and then press ENTER.
- To verify that you are successfully connected to the ESMTP Mail Service, type helo domain.com, and then press ENTER.
- Type mail from: advertiser123@domain.com, and then press ENTER.
- Type rcpt to: recipient@another-domain.com, and then press ENTER. Note the "Unable To Relay For Recipient@Another-Domain.com" error message.
- Type quit, and then press ENTER twice to close the connection to the server and leave Telnet running.
back to the top
Filter Unsolicited E-mail Messages- Click Start, point to Programs, and then click Microsoft Exchange.
- Click Exchange System Manager, click Global Settings, right-click Message Delivery, and then click Properties.
- Click the Filtering tab, and then click Add.
- In the Add Sender dialog box, type *@domain.com, and then click OK.
- Click to select the check boxes for Archive Filtered Messages and Filter Messages with Blank Sender, and then click OK.
- Click Server, expand your server, and then click Protocols.
- Click SMTP, right-click Default SMTP Virtual Server, and then click Properties.
- On the General tab, click Advanced, click the existing IP Address - TCP Port mapping, and then click Edit.
- In the Identification dialog box, click to select the Apply Filter check box.
- Click OK three times, and then give the Metabase Update service some time to transfer the configuration changes into the IIS metabase.
- Return to the Telnet command prompt, type open server_name 25, and then press ENTER.
- Type helo domain.com, and then press ENTER.
- Type mail from: sender@unfiltered-domain.com, and then press ENTER.
- Type rcpt to: administrator@server_name.com, and then press ENTER.
- Type data, and then press ENTER.
- Type From:sender@unfiltered-domain.com, and then press ENTER.
- Type To: administrator@ server_name.com, and then press ENTER.
- Type Subject: This is an unfiltered message, and then press ENTER.
- Press ENTER again, type We are testing message filtering, and then press ENTER.
- Press ENTER again, type a single period ( .), and then press ENTER again to signal the end of message transfer. Note the response from the server, that the message is queued for delivery.
- Type mail from: advertiser123@domain.com, and then press ENTER. Note that the server returns a "Sender Denied" error message and immediately terminates the connection.
- Press ENTER, type Open server_name 25, and then press ENTER again.
- Type helo domain.com, and then press ENTER.
- Type mail from: sender@unfiltered-domain.com, and then press ENTER.
- Type rcpt to: administrator@server_name.com, and then press ENTER.
- Type data, and then press ENTER.
- Type From: advertiser123@domain.com, and then press ENTER.
- Type To: administrator@ server_name.com, and then press ENTER.
- Type Subject: This is a filtered message, and then press ENTER.
- Press ENTER again, type We are testing message filtering, and then press ENTER.
- Press ENTER again, 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.
- Close the Telnet client program.
back to the top
Modification Type: | Minor | Last Reviewed: | 4/21/2005 |
---|
Keywords: | kbhowto kbHOWTOmaster KB313395 kbAudITPro |
---|
|