When first getting into IIS 7 on Windows Server 2008 R2, one thing that seems get a little bit confusing is SMTP. Simple Mail Transfer protocol (SMTP) is an absolute must for your server if your applications are going to send mail. As most things in Server 2008 it is not enabled by default, and it’s actually not available in the IIS 7 Console.
Exchange & SMTP
IIS 7 is sporting an all new code base and management console, so it’s only natural to think that SMTP would be new too. Not exactly, as it turns out that the SMTP code base is actually owned by the Microsoft Exchange Team, which is completely separate from the IIS Team. From Windows Server 2003/IIS6 to 2008/IIS7 no changes were made to SMTP. Because of this SMTP must still be managed through the old IIS 6 console, which has to be installed in addition to the IIS 7 console.
SMTP Install Summary:
- In the Server Management Console select Features in the left pane, then Add Features on the Right
- Find and select SMTP Server, add required roles/services, finish the install.
- Open the IIS 6 Console, Start > Administrative Tools > IIS 6 Manager
- Expand the host in the left pane to see the SMTP Server, right click on the SMTP server then select Properties
- Set the IP to the local IP or loopback
- On the Access Tab under Relay Restrictions click the Relay button
- Add the local IP or the loopback, apply all changes
- Go to services.msc to set the Send Mail Transfer Protocol to automatically start