Article ID: 836500 - Last Review: February 2, 2007 - Revision: 2.4 Relaying and unsolicited commercial e-mail in Exchange Server 5.5
On This PageSUMMARYRelaying is a way to submit an e-mail message to the Simple Mail Transfer Protocol (SMTP) server of one domain so that the e-mail is transferred to the SMTP server of another domain for
delivery. Unsolicited commercial e-mail is also known as junk e-mail or spam. This article discusses how to configure your system so that unsolicited commercial e-mail is not relayed through your Exchange server. This article also discusses security settings and how to detect, to filter, and to block unsolicited commercial e-mail messages and how to delete these messages from your Exchange server. INTRODUCTIONThis article describes the fundamental issues about relaying
and unsolicited commercial e-mail in a Microsoft Exchange Server 5.5
organization. What is relaying?Relaying is the process of submitting an e-mail message to the SMTP server of a domain so that the e-mail message is transferred to the SMTP server of another domain for delivery.The e-mail message is received by the SMTP server of the first domain. The SMTP server determines that the intended recipient of the e-mail message does not exist in the recipient's messaging environment. At that time, the message is submitted for delivery to the actual authoritative domain where the recipient resides. What is unsolicited commercial e-mail?Unsolicited commercial e-mail is an e-mail message that is sent to many people without their consent. Typically, unsolicited commercial e-mail promotes a service or a product. Unsolicited commercial e-mail is used to reach a large audience at a low cost to the sender of the e-mail message. However, unsolicited commercial e-mail may have a high cost for the intended recipients.What is the difference between unsolicited commercial e-mail and relayed e-mail?When you view e-mail messages on your Exchange server, you have to look at the originator of the message and at the recipient of the message to determine if the message is unsolicited commercial e-mail or relayed e-mail.
In the following sample, neither the Originator nor the Recipient belongs to your domain. Therefore, this message was relayed through your server. The actual sender of the message may have made the sender appear to be a user who has an SMTP address of user@adatum.com. This practice is known as "spoofing." However, the message is intended for an external recipient. Therefore, relaying has occurred. Relay Ex: Originator: user@adventure-works.com <mailto:user@adventure-works.com.com> & Recipient:
user@alpineskihouse.com <mailto:user@alpineskihouse.com>. In the following sample, the Originator is from an Internet
domain. This Originator is sending e-mail to an SMTP address that does not
exist in your Exchange organization. The Internet Mail Service (also know as
IMS) accepts this message because the service only examines the data that
appears after the at (@) sign.Spam Ex: Originator: user@adventure-works.com <mailto:user@adventure-works.com.com> & Recipient:
invaliduser@adatum.com <mailto:invaliduser@adatum.com>. After the message is received, the Internet Mail Service uses the
local mail client to locate the user account. If no user account is found, your
Exchange server rejects the message and sends a non-delivery report (NDR) to
the Originator.Note In the Internet Message Service queues, the field that typically identifies the Originator of a message may only contain an empty pair of angle brackets (<>). If the Originator is not identified, your Exchange server has received the message, but your Exchange server has rejected the message for an unknown reason. For example, the Originator may not be identified if the message was sent to a nonexistent user or if the message was sent to a user whose mailbox is full. According to the Request for Comments (RFC) standards, when your Exchange server rejects a message, your Exchange server must send an NDR. On your Exchange server, if the Originator of the message contains an empty pair of angle brackets, these angle brackets indicate that the postmaster mailbox or the system mailbox of your Exchange server sent the message. If the postmaster mailbox or the system mailbox of your Exchange server sent the message, this indicates to you, the administrator, that this message is an NDR. How does relaying work?Sample scenario: The originator at A. Datum Corporation wants to send an e-mail message to johnsmith@contoso.com. The e-mail servers at Contoso Ltd. are responsible for all e-mail messages that are sent to contoso.com. To move an incoming message to the correct mailbox, the following actions occur:
What is open relay?Open relay occurs when an e-mail server permits e-mail messages to be relayed through the system without exercising any restrictions or any control over the relayed e-mail. After you install the Internet Mail Service in Exchange Server 5.5, the default configuration permits the server to be used for open relay.What is authenticated relay?Authenticated relay occurs when an e-mail server only permits e-mail messages to be relayed through the system if the sender of the message has an account that has a user name and a password. This account can exist on the e-mail server that relays the e-mail message, or this account can exist on a server that is a member of the domain that the e-mail server belongs to.Authenticated relay uses the AUTH verb. The AUTH verb is an Extended SMTP (ESMTP) command. Your messaging server, your firewall, or your other networking components that work with SMTP must allow ESMTP verbs to be passed. Note You can also configure your e-mail server to relay e-mail messages that come from specific Internet Protocol (IP) addresses. This configuration does not require authentication. Weakly protected accounts are accounts that do not use a password or use a weak password. Some companies that send unsolicited commercial e-mail may run a tool that is designed to find weakly protected accounts on your Exchange server. These tools use different methods to find the user name and then to crack the password of a weakly protected account. Typically, these tools try to gain access to the local guest account, to the domain guest account, to the administrator account on the Exchange server, and to manually created accounts such as the Webmaster account or the Service account. If you have one of these accounts in any domain that has a trust relationship with the domain that contains the Internet Mail Service server, make sure that this account has a strong password. How do I determine the account that is being used for authenticated relay?To determine the account that is being used for authenticated relay on the Exchange Server 5.5 Internet Mail Service, follow these steps:
How do I prevent relaying?By default, the Internet Mail Service is open for relay after you install the Internet Mail Service in Exchange Server 5.5. To prevent relaying, you must be running Microsoft Exchange Server 5.5 Service Pack 1 or later.Before you close relaying, make sure that you understand the features that the "How do I use the settings on the Exchange Server 5.5 Internet Mail Service Routing tab?" section describes. How do I configure my server to prevent access by POP3 or IMAP4 client programs?You can close relaying to prevent access by any Post Office Protocol 3 (POP3) client programs or by any Internet Message Access Protocol (IMAP4) client programs. Microsoft recommends that you use this configuration to prevent relaying. To configure your server to prevent access by any POP3 client programs or by any IMAP4 client programs, follow these steps:
How do I configure my server to require authentication?You can also control relaying by using a valid username and password. This configuration permits users who use a POP3 client or an IMAP4 client to relay e-mail. To configure your server to require authentication, follow these steps:
How do I use the settings on the Exchange Server 5.5 Internet Mail Service Routing tab?By default, the Do not reroute incoming SMTP e-mail setting is on. This setting permits relaying to occur. Microsoft does not recommend the use of this setting. This setting has been removed from later versions of Exchange.The Reroute incoming SMTP e-mail (required for POP3/IMAP4 support) setting permits you to use the Routing Restrictions settings. The Routing Restrictions settings permit you to control relaying. The Routing box setting permits you to add additional domains that you can receive or relay e-mail messages for. If you want to receive incoming e-mail messages for a specific domain, you must use this setting to add the domain. The Routing Restrictions settings permit you to control relaying through your Exchange server. You can use more than one setting. When you use more than one setting, the relay process uses the method that permits the message to be relayed. These settings include the following:
back to "How do I prevent relaying?" How do I test relaying to verify that the server is closed?You can use many methods to test your Exchange server for open relay. To use telnet to test your Exchange server for open relay, follow these steps:
How do these changes affect my clients?For your POP3 clients or IMAP4 clients to use your server to send e-mail to domains outside your Exchange organization, you must configure the Internet Mail Service to allow authentication. Or, you must specify the IP address of the client that is sending the message.If you configured the Internet Mail Service for authentication, you must configure the client to force security. To configure the client to force security, follow these steps:
Note It is not a good idea to use POP3 or IMAP4 where user name and password information is sent in plain text. Consider alternatives depending on your Exchange organization. back to "How do I use the settings on the Exchange Server 5.5 Internet Mail Service Routing tab?" How does unsolicited commercial e-mail work?Sample scenario: The originator wants to send an e-mail message that advertises a product or a service to thousands of people. The originator obtains a list of e-mail addresses, and then sends the unsolicited commercial e-mail message to all the recipients at the same time.Incoming unsolicited commercial e-mail may cause many issues, including slow server performance, reduced network bandwidth, low disk space on servers, and wasted time when users and administrators have to delete the e-mail messages. What is reverse NDR spamming?When your Exchange server receives many unsolicited e-mail messages for users who do not exist in an organization, your Exchange server returns the messages to the Originator. However, the e-mail address that appears for the Originator may not be the actual sender's address. Therefore, your Exchange server sends the NDR to someone else. This practice is known as reverse NDR spamming. Reverse NDR spamming is not efficient because:
Note In this example, assume that the server is authoritative for @adatum.com. A user at Adatum.com sends a message to invaliduser@adatum.com. However, the Exchange server changes the MAILFROM field so that the message appears to have been sent from the user@adventure-works.com address. The Internet Mail Service receives the message and generates an NDR. This NDR is addressed to user@adventure-works.com. The user@adventure-works.com mailbox receives this NDR although this user did not send the original message. Reverse NDR spamming occurs when this process occurs on a large scale and involves many thousands of messages that cause many thousands of NDRs to be sent to a domain. How does unsolicited commercial e-mail affect server performance?Unsolicited commercial e-mail messages and relayed messages are common causes of decreased performance on your Exchange server. The following steps provide an overview of message flow in Microsoft Exchange Server 5.5:
How do I prevent unsolicited commercial e-mail?Prevention of unsolicited commercial e-mail in Exchange Server 5.5 is not a simple task. In most scenarios, Microsoft recommends that you use a third-party product to help you configure your system to help prevent unsolicited commercial e-mail. If you do not use a third-party product, Microsoft recommends that you use the following options:
How do I filter messages?You can configure the Internet Mail Service to filter messages from a blank sender. However, to filter incoming e-mail, the message must have an entry in the MAILFROM field, regardless of whether this entry is valid. To filter on blank senders, put a period (.) character in the MAILFROM field of the filter settings.One way to help filter the messages is to move them to another hard disk for storage until you can review them. This practice frees up space on the server. This practice is also known as turfing. However, it is not recommended to move the messages to a specified folder on the hard disk of the server because the messages can fill the hard disk of your server. How do I reject connections by IP address?You can configure your Exchange server to reject connections by IP addresses by clicking Specify by Host on the Connections tab of the Internet Mail Service. You can add a specific IP address and then select the Reject connection from this host. To identify the IP address that a message was sent from so that you can reject a connection from that IP address, follow these steps:
How do I delete unsolicited commercial e-mail messages from my server?After your server is used as an open relay or receives unsolicited commercial e-mail messages, thousands of messages may remain in the Internet Mail Service. These thousands of unsolicited commercial e-mail messages may prevent the delivery of e-mail messages from your users. You must delete the unsolicited commercial e-mail messages to make your Exchange organization work correctly again. To do so, follow these steps:
How do I replay messages?If you have messages that were moved from the active Imcdata folder to a renamed folder or to a temporary folder that you want to manage, follow these steps:
back to "How do I delete unsolicited commercial e-mail messages from my server?" How do these changes affect my clients?Your clients will not be affected when you reject connections by IP address unless some of your clients have e-mail accounts on those systems. Clients cannot send e-mail messages to your system from e-mail accounts on systems that use IP addresses that cannot connect to your system.What are some recommended account security measures?The following is a list of measures that you can take to help enhance the security of your Exchange server:
http://www.microsoft.com/security/
(http://www.microsoft.com/security/)
What are some recommended system maintenance measures?The following is a list of measures that you can take to help maintain your Exchange server and to help prevent problems later:
MORE INFORMATIONWhat is a firewall SMTP e-mail handler?A SMTP e-mail handler may be a program or service. A SMTP e-mail handler is included with many firewall programs to handle incoming requests and outbound requests. Because a firewall SMTP e-mail handler can be open for relay, you must verify that this service is not open for relay.Generally, this service is not required because the typical SMTP e-mail handler supports only basic SMTP commands. This service does not support extended commands, including the AUTH command that is used to authenticate users. What is a block list?A block list is a database that contains a list of known open relay servers, IP addresses, Internet service provider (ISP) dial-up addresses, and open proxies. Many domains use these block list databases to prevent delivery of e-mail to their domain. You can use a block list to reduce the number of unsolicited commercial e-mail messages that you receive.The following is a list of Web sites that you can use to determine if your domain is contained in a block list: http://work-rss.mail-abuse.org/rss/
(http://work-rss.mail-abuse.org/rss/)
Microsoft
provides third-party contact information to help you find technical support.
This contact information may change without notice. Microsoft does not
guarantee the accuracy of this third-party contact information.
http://postmaster.info.aol.com/ (http://postmaster.info.aol.com/) http://www.stopspam.org/ (http://www.stopspam.org/) http://spam.abuse.net/ (http://spam.abuse.net/) http://www.cauce.org/ (http://www.cauce.org/) What is an open proxy?An open proxy is a proxy server or a proxy port that is used for Web-based services and that permits other services that reside on the server, such as SMTP, to be used as open relays. Many block-list vendors search for an open proxy and an open relay when they test servers.Each proxy server version has its own methods of closing proxy ports. See the documentation that was included with your software to determine the best security methods and settings for your proxy server. | Article Translations
|


Back to the top
