This step-by-step article describes how to set up a Simple Mail Transfer Protocol (SMTP) virtual server on a Windows 2000-based computer.
Microsoft SMTP Service uses the Internet-standard SMTP to transport and deliver mail messages.
Microsoft SMTP Service does not support the use of individual mailboxes; it places incoming messages in a Drop folder or it forwards them to other SMTP servers (if the message is addressed to a remote domain). This feature allows Microsoft SMTP Service to be used as a mail receiver for other programs.
back to the top
Install Microsoft Internet Information Services (IIS) and Microsoft SMTP ServiceBecause Microsoft SMTP Service is a component of Microsoft Internet Information Services (IIS), you must install IIS to use Microsoft SMTP Service. To install IIS and Microsoft SMTP service, follow these steps:
Configure the SMTP Virtual ServerWhen you install Microsoft SMTP Service, a default SMTP virtual server is created to handle basic mail delivery functions. The SMTP virtual server is automatically configured with default settings that enable it to accept local client computer connections and to process messages. You can either accept the default settings or change the SMTP virtual server configuration. You can configure the SMTP virtual server to meet your messaging requirements; this article describes basic configuration and security settings that you may want to consider.
This section includes the following topics:
How to Configure the Default DomainSMTP virtual servers must have one local default domain. The default domain is used to stamp messages from addresses that do not contain a domain. By default, the name that you specify on the Network Identification tab of the System tool in Control Panel is used as the default domain name.
All incoming mail messages that are designated for the default domain are placed in the Drop folder. By default, the Drop folder is located in the Inetpub\Mailroot folder.
To change the location of the Drop folder, follow these steps:
Click Browse, locate a folder that you want to use for your Drop folder, and then click OK.
NOTE: You must place the Drop folder in a folder on the local computer on which Microsoft SMTP Service is installed.
How to Set Relay RestrictionsBy default, all computers are denied relay access. Microsoft SMTP Service does not allow computers to relay unwanted mail through the virtual server. Also, all computers are denied relay access except those that meet the authentication requirements that are specified in the Authentication box on the Access tab, by default. If your virtual server is on the Internet, it is not recommended that you grant relay access. If you do so, unsolicited mail may be propagated.
To grant or deny permissions to relay messages through the SMTP virtual server, follow these steps:
Click the settings that you want to use, add the computers, the group of computers, or the domain that you want to specify as exceptions to the access setting that you selected in step 6, and then click OK three times.
How to Set Up a Smart HostIf you want to designate another SMTP server to handle all outgoing messages, you can set up a smart host to perform this task. After you set up the smart host, all outgoing messages that are designated for remote domains are routed through it.
To configure a smart host, follow these steps:
In the Smart host box, type either the fully qualified domain name (FQDN) or the IP address of the smart host server.
If you type an IP address, enclose the address in brackets (for example, [192.168.188.228]). When you do so, you can increase performance because Microsoft SMTP Service does not perform name resolution.
If you want Microsoft SMTP Service to attempt to deliver the remote messages directly before it forwards them to the smart host, click to select the Attempt to direct delivery before sending to smart host check box. By default, this check box is not selected.
Either the Drop folder or the hard disk in which the Drop folder is located is full.
To troubleshoot this issue, free hard disk space in either the Drop folder or on the hard disk in which the Drop folder is located.For additional information about how to troubleshoot Microsoft SMTP Service, click the article number below
to view the article in the Microsoft Knowledge Base:
297954 HOW TO: Troubleshoot the Web Server in Windows 2000
For additional information about how to test Microsoft SMTP Service, click the article number below
to view the article in the Microsoft Knowledge Base:
REFERENCESFor more information about Microsoft SMTP Service, refer to the Microsoft Mail (SMTP) Service documentation. To do so, start Microsoft Internet Explorer, and then type the following address in the Address bar:
file:\\%systemroot%\help\mail.chmFor additional information about how to create additional SMTP Virtual Servers, click the article number below
to view the article in the Microsoft Knowledge Base:
303707 HOW TO: Create Additional SMTP Virtual Servers
For additional information about how to create or delete a Microsoft SMTP Service domain, click the article number below
to view the article in the Microsoft Knowledge Base:
303708 HOW TO: Create or Delete a Microsoft SMTP Service Domain
For additional information about how to configure Microsoft SMTP Service local domains, click the article number below
to view the article in the Microsoft Knowledge Base:
303537 HOW TO: Configure Microsoft SMTP Service Local Domains
For additional information about how to start, stop, or pause Microsoft SMTP Service, click the article number below
to view the article in the Microsoft Knowledge Base:
303783 HOW TO: Start or Stop or Pause the Microsoft SMTP Service
For additional information about how to start, stop, or pause an SMTP virtual server, click the article number below
to view the article in the Microsoft Knowledge Base:
303812 HOW TO: Start, Stop, and Pause an SMTP Virtual Server
For additional information about how to enable SMTP protocol logging for IIS, click the article number below
to view the article in the Microsoft Knowledge Base:
303738 HOW TO: Enable SMTP Protocol Logging for Internet Information Services
For additional information about how to configure Microsoft SMTP Service on a Windows 2000-Based server cluster, click the article number below
to view the article in the Microsoft Knowledge Base:
It seems that in IIS 7 (7.5, Windows Server 2008 R2) the SMTP virtual server is a second-class citizen, only being configurable through the IIS 6.0 compatibility-mode management tool. This arrangement leads me to wonder whether the SMTP virtual server is deprecated, or otherwise "on it's way out".
The IIS SMTP Virtual Server Component that is mentioned in this article is part of IIS 6.0, the support for which has ended with the support of Windows Server 2003. To relay emails to Office 365, use one of the supported versions of Exchange Server.
Personally, I usually install sendmail on Linux over postfix, but that really is a personal choice because I am familiar with the three steps I have to go through to install it, configure it and get it running so it can relay.
I have worked with Smartermail from Smartertools for years. I used it on all the windows webservers I had to manage in my previous job. They have a free version which you can setup for outgoing mail. There is a lot of logging posibilities too. mailserver is managed by webinterface.
A 2nd for Mailenable here. Using the paid version on a few larger setups as the primary setup, and using the free version here and there on servers that I need an SMTP server on. While the free version is perfectly capable of sending external emails most are configured as smarthosts and relay email to another proper mail provider.
we strongly encourage customers to move away from using Basic authentication with SMTP AUTH when possible. Other options for sending authenticated mail include using alternative protocols, such as the Microsoft Graph API.
Hello,
I installed the IIS role and the SMTP server function on Windows Server 2022. Everything went well (we solved the mmc console error). I configured the SMTP Virtual Server generated by the first installation.
I added a second IP address to the server and installed a second virtual SMTP server in the IIS service. Unfortunately, this server is installed and can be started, but any settings are not possible. It reports an error for every management operation: The system cannot find the path specified.
I've tried removing the whole IIS installation, creating more Smtp servers and still nothing...
Does anyone know what's up with that?
What happened is probably the default location for the SMTP site have been moved, and the site properties have not been updated to reflect this, is there any difference between the second virtual SMTP server you installed and the first one?
i also tried it on another windows servr 2022 and the result is the same error. Can anyone try the same. Create second SMTP server via IIS6 console?
I wonder if anyone knows how to generate a new second SMTP server via powershell? maybe it will go through him...
Unfortunately, when I create a second smtp via the IIS6 GUI - an error occurs and the generation does not finish. I compared both steps on W2012 and W2022. On W2022, there is significantly less configuration for SMTP 2 in the MetaBase.xml file.
There was also an attempt to connect to W2022 with Gui IIS6 from W2012. This of course works, but Gui also falls.
My question is, do we include all of these entries under the second SMTP server, or just the IIsSmtpAlias, IIsSmtpDL, and IIsSmtpDomain entries? When I include just these and repoint the directories, I am still having the error. If I include all entries to which I have stated above, IIS admin service fails to start because of the metabase file being wrong.
7fc3f7cf58