This article is part one of a two-part article that describes the different configuration options for the Simple Mail Transfer Protocol (SMTP) service in Exchange 2000 Server. This article assumes that you have already installed Microsoft Windows 2000 Server, Microsoft Windows 2000 Advanced Server, or Microsoft Windows 2000 Datacenter Server and Exchange 2000 Server.
Part 1 covers the following topics:
Configuration
How to Start the Exchange System Manager
Virtual Servers
How to Create an Additional SMTP Virtual Server
How to Change the IP Address and Port Number
How to Stop, Start, or Pause a Virtual Server
How to Limit Inbound Connections
How to Set the Connection Time-Out
How to Enable Transaction Logging
How to Configure ODBC Logging
How to Customize W3C Extended Logging
How to Authenticate Connections
How to Encrypt Connections
How to Deny Inbound Connections
How to Restrict Relaying
How to Limit Inbound Message Size
How to Limit Inbound Session Size
How to Limit Outbound Messages for Each Connection
How to Limit Outbound Recipients for Each Message
How to Process Non-Delivery Reports
How to Process Badmail Messages
How to Process Unresolved Recipients
How to Set Retry Intervals
How to Set Outbound Delay Notifications
How to Set Outbound Message Expiration
How to Set Local Delay Notifications
How to Set Local Message Expiration
How to Set Outbound Security
How to Limit Outbound Connections
How to Specify the Outbound Port
How to Specify the Hop Count
How to Set a Masquerade Domain
How to Change the Fully Qualified Domain Name
How to Set a Smart Host
How to Enable Reverse Domain Name System Lookups
How to Enable Message Filtering (Turf List)
Part 2 covers the following topics:
Monitoring
Current Sessions
How to View Current Sessions
How to Stop Current Sessions
Queues
How to Gain Access to Queues
How to Set the Queue Display
How to View Queued Messages
How to Delete Messages in a Queue
How to Delete One Message in a Queue
How to Delete All Messages in a Queue
How to Delete a Specific List of Messages in a Queue
How to Freeze and Unfreeze Messages in a Queue
How to Freeze One Message in a Queue
How to Freeze All Messages in a Queue
How to Freeze a Specific List of Messages in a Queue
This article is continued in the following Microsoft Knowledge Base article:
268163
(http://support.microsoft.com/kb/268163/EN-US/
)
XCON: How to Configure a SMTP Virtual Server Part 2
After you install Exchange 2000, the SMTP service is ready to process e-mail. No further configuration is required to send and receive e-mail. The SMTP service is very flexible and can be customized to suit most messaging requirements. All of the steps in this article are performed in the Exchange System Manager.
How to Start Exchange System Manager
On the Start menu, point to Programs, point to Microsoft Exchange, and then click System Manager.
Double-click Administrative Groups.
Double-click First Administrative Group.
NOTE: If you have changed the name of the default administrative group, expand the appropriate node for that administrative group.
Double-click Servers and find the default SMTP virtual server on any server.
This section describes how to configure SMTP virtual servers.
How to Create an Additional SMTP Virtual Server
In most cases, you only need one SMTP virtual server. However, in certain situations (if you host multiple domains and want to have more than one default domain, for example) you can create multiple SMTP virtual servers. When you create an SMTP virtual server, a home directory is automatically created in the Exchange Server MDBData folder.
To create an additional SMTP virtual server:
Click SMTP.
On the Action menu, point to New, and then click SMTP Virtual Server.
In the SMTP Virtual Server dialog box, type a description for your virtual server, and then click Next.
Click the Internet Protocol (IP) address that the virtual server will use, and then click Finish.
NOTE: If you click All Unassigned, this virtual server monitors port 25 of all IP addresses that are not currently assigned to a virtual server by default.
How to Change the IP Address and Port Number
Click the virtual server that you want to change the IP address and port number for.
On the Action menu, click Properties.
On the General tab, click Advanced.
In the Advanced IP address configuration list, click the identity, and then click Edit.
Change either the IP address or the port number so that there is no conflict with any other virtual servers.
Click OK until you close the virtual server properties.
Start the virtual server.
How to Stop, Start, or Pause a Virtual Server
In Exchange System Manager, click the virtual server that you want to stop, start, or pause.
On the Action menu, click either Start, Stop, or Pause, as applicable.
NOTE: If you pause a virtual server, you prevent new client connections but you enable the SMTP service to continue to process existing client connections and deliver queued messages. You can also pause a virtual server to gracefully stop the virtual server without interrupting active connections.
How to Limit Inbound Connections
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
On the General tab, click to select the Limit number of connections to check box.
Type the inbound connection limit.
Click OK or Apply to save the setting.
How to Set the Connection Time-Out
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
On the General tab, type the connection time-out time in minutes.
Click OK or Apply to save the setting.
How to Enable Transaction Logging
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
On the General tab, click to select the Enable Logging check box.
Click any active log format.
Click Properties to gain access to additional log file settings.
In the Extended Logging Properties dialog box, click the General tab. You can specify the following options:
New log file creation
Log file naming and rollover
Log file directory
After you set the options that you want, click OK.
Click OK or Apply to save the settings.
NOTE: Both the Open Database Connectivity Logging (ODBC) and World Wide Web Consortium (W3C) extended log file format have different extended logging properties.
How To Configure ODBC Logging
Create a database that contains a table with the appropriate fields for the logging data. Microsoft Internet Information Service (IIS) includes a Structured Query Language (SQL) template file, which can be run in a SQL database to create a table that accepts log entries from IIS. The file is called Logtemp.sql and is available in the Winnt\System32\Inetsrv folder. The following fields are required:
ClientHost: varchar(255)
Username: varchar(255)
LogTime: datetime
Service: varchar(255)
Machine: varchar(255)
ServerIP: varchar(50)
ProcessingTime: int
BytesRecvd: int
BytesSent: int
ServiceStatus: int
Win32Status: int
Operation: varchar(255)
Target: varchar(255)
Parameters: varchar(255)
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
On the General tab, click to select the Enable Logging check box.
In the Active log format list, click ODBC Logging.
Click Properties to gain access to the ODBC Logging properties.
Type the ODBC Data Source Name (DSN).
Type the name of the table.
Type the user name and password that you need to use to gain access to the database.
Click OK or Apply to save the settings.
How to Customize W3C Extended Logging
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
On the General tab, click to select the Enable Logging check box.
In the Active log format list, click W3C Extended Log File Format.
Click Properties to open the Extended Logging properties.
Click the Extended Properties tab. The SMTP service uses the following extended logging options:
Date (date)
Time (time)
Client IP Address (c-ip)
User Name (cs-username)
Service Name (s-sitename)
Server Name (s-computername)
Server IP (s-ip)
Method (cs-method)
URI Stem (cs-uri-stem)
URI Query (cs-uri-query)
Protocol Status (sc-status)
Win32 Status (sc-win32-status)
Bytes Sent (sc-bytes)
Bytes Received (cs-bytes)
Time Taken (time-taken)
Protocol Version (cs-version)
The Time (time), Client IP Address (c-ip), Method (cs-method), URI Stem (cs-uri-stem), and Protocol Status (sc-status) options are default log file entries.
Click OK or Apply to save the settings.
How to Authenticate Connections
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Access tab, and then click Authentication.
Click any combination of Allow anonymous, Basic authentication, Windows Security Package, or Enable SSL client authentication.
NOTE: If you use basic authentication, passwords are transmitted in clear text. A certificate is required to enable Secure Sockets Layer (SSL) client authentication.
If you click Allow anonymous, type the account that will be used to gain access to resources when an anonymous connection is made.
Click OK, and then click OK again to close the virtual server properties.
How to Encrypt Connections
To enable encryption, you must install a valid certificate on the virtual server:
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Access tab, and then click Certificate. The Web Server Certificate Wizard starts.
Complete the wizard to generate a certificate request.
Send the certificate to a trusted certification authority (CA).
After you obtain the new certificate, perform steps 1 through 3 again.
The Web Server Certificate Wizard starts again.
Complete the wizard to process the pending certificate request.
At this point, the server is ready for encryption.
Click the Access tab, and then click Authentication.
In the Authentication Methods dialog box, click to select the Enable SSL client authentication check box to enable SSL authentication.
Click to select the Require SSL client authentication check box to require that all connections use SSL.
To enable mapping client certificates to Windows accounts, click to select the Enable client certificate mapping to Windows user accounts check box.
Click OK and then click OK again to close the virtual server properties.
How to Deny Inbound Connections
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Access tab, and then click Connection.
In the Connection dialog box, either click Only the list below to limit access to this virtual server to the listed computers, or click All except the list below to prevent the listed computers from gaining access to this virtual server.
Click Add.
In the Computer dialog box, you can specify computers by one of the following criteria:
IP Address
Range of IP Addresses
Domain
Click OK to add the restriction and return to the Connection dialog box.
Click OK, and then click OK again to close the virtual server properties.
How to Restrict Relaying
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Access tab, and then click Relay.
In the Relay Restrictions dialog box, either click Only the list below to restrict relaying mail through this virtual server to the listed computers, or click All except the list below to prevent the listed computers from relaying mail through this virtual server.
Click Add.
In the Computer dialog box, you can specify computers by one of the following criteria:
IP Address
Range of IP Addresses
Domain
Click OK to add the restriction and return to the Connection dialog box.
To add more restrictions, repeat the preceding steps.
Click to select the Allow all computers which successfully authenticate to relay check box, regardless of the list that you selected in step 4, to allow all authenticated clients to relay.
Click OK, and then click OK.
How to Limit Inbound Message Size
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, and then type a value in kilobytes (KB) in the Limit message size to box.
Click OK or Apply to save the setting.
How to Limit Inbound Session Size
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, end then type a value in KB in the Limit session size to box.
Click OK or Apply to save the setting.
How to Limit Outbound Messages for Each Connection
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, and then type a value in the Limit number of messages per connection to box.
Click OK or Apply to save the setting.
How to Limit Outbound Recipients for Each Message
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, and then type a value in the Limit the number of recipients per message to box.
Click OK or Apply to save the setting.
How to Handle Non-Delivery Reports
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, and then type the name of the account that you want non-delivery reports (NDRs) sent to in the Send copy of Non-Delivery report to box.
Click OK or Apply to save the setting.
How to Process Badmail Messages
By default, the Badmail directory is located in the virtual server's home directory.
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, and then type the new location for the Badmail directory in the Badmail directory box.
Click OK or Apply to save the setting.
How to Process Unresolved Recipients
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Messages tab, and then type the host name or IP address (enter the IP address in square brackets []) in the Forward all mail with unresolved recipients to host box.
Click OK or Apply to save the setting.
How to Set Retry Intervals
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then type a time interval in minutes for the first, second, third, and subsequent retry intervals.
Click OK or Apply to save the setting.
How to Set Outbound Delay Notifications
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then type a value (in minutes, hours, or days) for the time when a delay notification should be sent.
Click OK or Apply to save the setting.
How to Set Outbound Message Expiration
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then type a value (in minutes, hours, or days) for the message expiration to time out.
Click OK or Apply to save the setting.
How to Set Local Delay Notifications
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then type a value (in minutes, hours, or days) for the time when a delay notification should be sent.
Click OK or Apply to save the setting.
How to Set Local Message Expiration
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then type a value (in minutes, hours, or days) for the message expiration to time out.
Click OK or Apply to save the setting.
How to Set Outbound Security
These settings affect all outbound connections. Outbound security can also be configured for each domain.
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Outbound Security.
In the Outbound Security dialog box, click either Anonymous access, Basic authentication, or Windows security package as the authentication method.
If you select either Basic authentication or Windows security package, type or browse for the user name. Also, type the password for this account.
You can encrypt the connection by clicking to select the TLS encryption check box.
Click OK and then click OK again to close the virtual server properties.
How to Limit Outbound Connections
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Outbound Connections.
In the Outbound Connections dialog box, click to select the Limit connections to check box, and then type a value for the maximum outbound connections.
By default, the time-out time is set to 600 minutes. Type a new value if you want to change the default value.
Click to select the Limit connections per domain to check box, and then type a value for the number of connections that you want to allow for each domain.
Click OK and then click OK again to close the virtual server properties.
How to Specify the Outbound Port
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Outbound Connections.
In the Outbound Connections dialog box, type the Transmission Control Protocol (TCP) port that the virtual server will connect to on the remote server.
Click OK and then click OK again to close the virtual server properties.
How to Specify the Hop Count
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Advanced.
In the Advanced Delivery dialog box, type a value for the number of received headers that a message can have before an NDR is generated in the Maximum hop count box.
Click OK and then click OK again to close the virtual server properties.
How to Set a Masquerade Domain
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Advanced..
In the Advanced Delivery dialog box, type a domain name in the Masquerade Domain box.
Click OK, and then click OK again to close the virtual server properties.
How to Change the Fully Qualified Domain Name
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Advanced..
In the Advanced Delivery dialog box, type a new fully qualified domain name (FQDN).
By default, the FQDN is derived from the information on the Network Identification tab of the system properties.
Click OK, and then click OK again to close the virtual server properties.
How to Set a Smart Host
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Advanced.
In the Advanced Delivery dialog box, type a host name or IP address (type the IP address in square brackets []) for the smart host.
Click to select the Attempt direct delivery before sending to smart host check box if you want the virtual server to attempt to deliver messages to the destination before the virtual server sends messages to the smart host.
Click OK, and then click OK again to close the virtual server properties.
How to Enable Reverse DNS Lookups
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
Click the Delivery tab, and then click Advanced.
In the Advanced Delivery dialog box, click to select the Perform reverse DNS lookup on incoming messages check box to verify that the host specified in the EHLO/HELO is the actual host that is connected to the virtual server.
Click OK, and then click OK again to close the virtual server properties.
How to Enable Message Filtering (Turf List)
The "turf list" is set on the Filtering tab of the Message Delivery Properties dialog box. You can gain access to this dialog box by using Global Settings in Exchange System Manager.
When turf list filtering is enabled on an SMTP virtual server, e-mail received from anyone on the turf list is filtered out. For example, if an SMTP virtual server is connected to the Internet, you can filter e-mail from one or more outside users who are trying to gain access to the organization by using a particular IP address. If, however, a different IP address is configured on the same virtual server (for example, for internal users who connect to the Internet), you may need to enable filtering for connections on this IP address.
This is why turf list filtering is set in the Identification dialog box.
To enable message filtering on a virtual server:
In Exchange System Manager, click the virtual server that you want to configure.
On the Action menu, click Properties.
On the General tab, click Advanced.
In the Advanced dialog box, type the IP address to which you want the filter applied, and then click Edit.
In the Identification dialog box, click to select the Apply Filter check box, and then click OK.
Click OK, and then click OK again to close the virtual server properties.
NOTE: This article is continued in the following Microsoft Knowledge Base article:
268163
(http://support.microsoft.com/kb/268163/EN-US/
)
How to Configure the Simple Mail Transfer Protocol Service Part 2