ISA Server intercepts all SMTP traffic that arrives on port 25 of the ISA Server computer. The SMTP filter on the ISA Server computer accepts the traffic, inspects it, and passes it on, only if the rules allow it.
The SMTP filter examines SMTP commands sent by Internet SMTP servers and clients. This application layer filter can intercept SMTP commands and check whether they are larger than they should be. SMTP commands that are larger than the limits you configure in the SMTP filter are assumed to be attacks against the SMTP server and can be stopped by the SMTP filter.
Each SMTP command has a maximum length associated with it. This length represents the number of bytes allowed for each command. If an attacker sends a command that exceeds the number of bytes allowed for the command, ISA Server drops the connection and prevents the attacker from communicating with the corporate mail server.
When a client uses a command that is defined but disabled, the filter closes that connection. When a client uses a command that is unrecognized by the SMTP filter, no filtering is performed on that message.
The RFC considers the AUTH command as part of the MAIL FROM command. For this reason, the SMTP filter blocks MAIL FROM commands only when they exceed the length of the MAIL FROM and AUTH commands issued (when AUTH is enabled). For example, if you specify maximum length of MAIL FROM as 266 bytes and AUTH as 1024 bytes, the message will be blocked only if the MAIL FROM command exceeds 1290 bytes.
Note: |
|---|
|
We recommend that you not add the TURN command to the SMTP filter because the SMTP filter does not currently support filtering on that command.
|
The SMTP filter can work in conjunction with Message Screener, to provide deeper content inspection. The SMTP filter filters all SMTP traffic that arrives at the ISA Server computer that matches a server publishing rule on the SMTP protocol.
Message Screener
Message Screener works together with the SMTP filter, to intercept all SMTP traffic arriving on TCP port 25 of the ISA Server computer. Message Screener is designed for filtering spam. Using Message Screener, you can filter e-mail messages based on keywords or attachments, or block e-mail messages from specific senders and domains. Message Screener must be installed on a SMTP server running Internet Information Services (IIS) 6.0 or IIS 5.0. You can install Message Screener in the Internal network, where we recommend you install your Exchange servers, in a perimeter network, or on the ISA Server computer. We recommend that you install Message Screener in a perimeter network, because this provides an additional layer of protection between the Internet and your mail servers.
When you use Message Screener, you will be publishing Message Screener to receive e-mail messages, rather than your Exchange server or other mail server. You therefore must configure your mail server to receive mail from the Message Screener computer.
Important: |
|---|
|
We do not recommend that you use Message Screener together with Exchange Server 2003, because Message Screener will interfere with the functioning of the Exchange Server Connection and Recipient Filtering feature. The SMTP filter can be used with Exchange Server 2003
|
The Message Screener component can filter incoming mail based on:
-
Value sent in the MAIL FROM SMTP command, used for Sender and Domain name filtering.
-
Content-Disposition header field for each attachment. This field commonly contains the attachment file name and extension. Message Screener can filter attachments by extension, by name, or by size.
-
Message subject, body of either text/plain or text/html content type.
Message Screener can be configured to hold the e-mail message for later inspection or forward the message to a security administrator's account for further examination and analysis.
Consider, for example, a common virus that sends e-mail messages containing a specific keyword. You can configure Message Screener to take one of three actions when an e-mail message with this keyword is received:
-
Delete the message
-
Hold the message
-
Forward the message
Logging Blocked Messages
Messages that are allowed or blocked by Message Screener are logged locally to a file on the machine running Message Screener. The file is located by default in %ProgramFiles%\Microsoft ISA Server\ISALogs.
Note: |
|---|
|
Application layer inspection of outbound mail is also possible. An organization may wish to block outgoing viruses and worms in an effort to protect other Internet connected networks. In addition, outbound mail inspection prevents users from sending attachment documents and other files that contain proprietary corporate data.
|