Troubleshooting SMTP Virtual Server Settings in Windows Server 2008

One of our development servers today needed to be configured to send emails from our web site to users and staff within the organization. We knew that the application was coded properly, as the email piece was functioning on other servers using the same code base.

Within Windows Server 2008, you must first add the IIS 6.0 Manager Components. We had this piece installed and configured using the IP of the web server and the default port of 25. Everything looked fine, but for some reason email wasn’t sending.

What I really needed was a way to troubleshoot the problem. I couldn’t step through the code, so I needed a way to determine what about the SMTP virtual server message delivery settings were incorrect. I then found a helpful KBA on troubleshooting via telnet.

By using telnet and following the steps in the KBA referenced above, I was able to see at which step during the email process the failure occurred. Making an EHLO command, the failure showed a domain different than what I was expecting. Instead of “oattravel.com”, I saw the name of the server. Going back into the SMTP virtual server properties, I quickly realized where the problem was.

The SMTP Advanced Delivery Options required domains for both:

  • Masquerade domain
  • Fully-qualified domain name

After changing the settings above, then retracing the steps to telnet back into the server and send an email, I then got a successful “Queued message for delivery” status.

Telnet test SMTP settings blur

One last note… make sure your SMTP Service is set to start up automatically. Ours wasn’t. For every IISRESET, the SMTP virtual server would stop and remain stopped until manually started again.

SMTP Service Automatic Startup

Set the SMTP Service to automatic startup

Advertisements

How to Register ASP.NET with IIS7

The ASP.NET IIS Registration Tool is no longer required to register ASP.NET with IIS7. Follow the steps below to register ASP.NET with IIS7 for both Windows 7 and Windows Server 2008:

Windows 7

1. Go to Start > Control Panel > Programs and Features
2. Click on the Turn Windows features on or off link.
Turn Windows Features On or Off

3. Expand Internet Information Services > World Wide Web Services > Application Development Features and select ASP.NET and any other features you wish to install.

Choose ASP.NET

Choose ASP.NET

 

Windows Server 2008

1. Go to Start > Control Panel > Programs and Features
2. Click on the Turn Windows features on or off link. The Server Manager window will open.

Windows Server 2008 Server Manager

3. From within the Server Manager, Click on Roles.
4. Click on Add Roles.
5. Select Web Server (IIS).

Windows Server 2008 Add Role

Next, add the ASP.NET Role Service while still remaining within the Server Manager:

1. Click on Role Services.
2. Click on Add Role Services.
3. Select ASP.NET and follow any confirmation messages.

Windows Server 20008 IIS Role Services

Add Role Services for ASP.NET

Windows Server 2008 IIS Role Services Confirmation

Confirm Installation of Required Components