|
|
|
Anti-Spam Provisions in
Microsoft Exchange Server Version 5.5
This page is intended to provide Microsoft Exchange 5.5 administrators answers on how to stop unauthorized (third party) relaying of UCE (spam) mail through their server. The document below is an excerpt straight from the FULL RELEASE of Microsoft Exchange 5.5. It is the "README.DOC" 'release notes' document. For those that want the full document (Microsoft Word 7 format), you may download it by clicking here. This page was created and is maintained by Chris Schroeder, System Administrator of NetVision Technologies, Inc. Features That Prevent Servers From Receiving or Being Used as Relay Points for Unsolicited Commercial E-mail (UCE) A growing problem for Internet mail server administrators is the practice of users and organizations who send large quantities of unsolicited commercial e-mail (UCE) to as many recipients as possible across the Internet. Senders commonly relay messages through well-known, trusted Internet servers so that when they are delivered to their final destinations, they appear to originate from a trusted host. Several features are included with the Internet Mail Service to protect your server from receiving and relaying nuisance messages. You can configure the Internet Mail Service to abort delivery of messages addressed from specified Internet domains and users. Inbound Internet messages that originate from a domain or user on a specified list (TurfList), are moved to a directory on the server (TurfDir) and are not delivered to the intended recipients. The sender does not receive notification that the messages were not delivered to the intended recipients. To prevent UCE messages from being delivered to local users, you must specify the directory where aborted messages are moved to and the messages that will be aborted. To do this, add the following values to the registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\
If you configure the TurfTable registry setting and you do not specify a TurfDir value, aborted messages are permanently deleted. Entries must be entered one per line with no extra spaces or delimiters. They are not case-sensitive. For example, a domain specified in the list using the following format prevents all messages addressed from domain.com from being delivered. #@domain.com A domain specified in the list using the following format prevents all messages addressed from domain.com and all of its subdomains from being delivered. @domain.com You can specify a specific user in the list using the following format. To apply these registry settings after they have been created or modified, you must stop or restart the Internet Mail Service and the Information Store service using the Services application in Control Panel. When a message is aborted using TurfTable, regardless of the Internet Mail Service diagnostics logging settings, an event is logged to the Application Event Log indicating the sender and message file name that was aborted. If you have enabled archiving for the Internet Mail Service using the Diagnostics Logging property page, you can use the message file name to locate the file in the Internet Mail Service archive directory (Exchsrvr\Imcdata\In\Archive) if you did not include TurfDir as described earlier. For more information, see the Microsoft Knowledge Base article Q155683 available at the Microsoft Product Support Services Web site (http://www.microsoft.com/support.) When the Internet Mail Service is configured to allow rerouting for POP3 or IMAP4 clients, it accepts and relays mail to non-local recipients. Message relaying occurs when a client or remote SMTP server connects to the Internet Mail Service and submits messages for non-local recipients. If your site does not restrict relaying, it may be used to relay UCE. If your configuration prevents the client from relaying mail, RCPT commands specifying a non-local recipient are refused with a "550 relaying prohibited" response. Relay restrictions are configured in the registry using values in the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Service\ Because these registry values are not created by default, you must set them to restrict relaying. By default, the Internet Mail Service relays mail as specified by the Reroute incoming SMTP mail option on the Routing property page.
RelayDenyList, RelayAllowList, and RelayLocalIPList consist of a net and optional mask per line. Order is not important in these lists. Each line is formed of two parts, the net and the mask, which are separated by a semicolon. Net[;mask] If the mask is omitted, it defaults to 255.255.255.255. An IP address matches a rule if the bitwise-AND of the IP address and the mask equals the net. (IP Address AND mask) = net To add net 192.168.0.0 to a list, add the following line to the list. 192.168.0.0;255.255.0.0 To add the host 192.168.1.17 to a list, add the following line to the list. 192.168.1.17;255.255.255.255 or 192.168.1.17 because the default mask is all ones. The logic used to determine if the client can relay mail follows. If none of these apply, the client will not be allowed to relay.
Examples
--END OF DOCUMENT-- | ||||||||||||||||||||||||||