Windows IIS

smtp logging

 

SMTP Service

The IIS SMTP service is a simple component for forwarding e-mail messages to an SMTP server for delivery. To send e-mail from an ASP.NET Web application, you must have the Internet Information Services (IIS) Simple Mail Transfer Protocol (SMTP) service installed and configured on your server. The IIS SMTP service is a simple component that sends e-mail messages to an SMTP server for delivery.

Installing the SMTP Service

IIS does not include the SMTP service by default. The SMTP service must be installed using the Control Panel. When you install the SMTP service, it generates a default SMTP configuration that you may eventually change using IIS Manager.

The SMTP service is configured using the IIS 6.0 Manager!

To install the SMTP service on IIS 6.0

  1. On the Start menu, click Control Panel, double-click Add or Remove Programs, and then click Add/Remove Windows Components.
  2. In the Components list, click Application Server, and then click Details.
  3. In the Subcomponents of Application Server list, click Internet Information Services (IIS), and then click Details.
  4. In the Subcomponents of Internet Information Services (IIS) list, select the SMTP Service check box, and then click OK.
  5. Click Next. If you are prompted for the Windows CD or the network install path, follow the instructions.
  6. Click Finish.

When you install the SMTP service, a standard SMTP server setup with a message storage at C:\Inetpub\Mailroot is created. When configuring the SMTP service, you may define global settings as well as settings for particular components of the virtual server. The IIS SMTP service is only a relay agent. E-mails are routed to an SMTP server for delivery.

To start IIS Manager from the Run dialog box

  1. On the Start menu, click Run.
  2. In the Open box, type inetmgr and then click OK.

To start IIS Manager from the Administrative Services console

  1. On the Start menu, click Run. In the Run text box, type control panel, and then click OK.
  2. In the Control Panel window, click Administrative Tools.
  3. In the Administrative Tools window, click Internet Information Services.

How To Check SMTP Logs in Windows Server (IIS)?

  • Enable SMTP Logs
  • Open Start > Programs > Administrative Tools > Internet Information Service (IIS) Manager. Right click “Default SMTP Virtual Server” and choose “Properties”. Check “Enable logging”.
  • Click “Properties …” to check all options.
  • Check SMTP Logs. You can check the SMTP log files at C:\WINDOWS\system32\LogFiles\SMTPSVC1.
  • SNow you can open the log file and check the email logs. The most important field is status code. “250” means ok.

Understand SMTP logs

You can look at the email logs by opening the log file. The status code is the most significant field. “250” indicates Ok. The following are a list of SMTP status codes.

Status Code
Description
211
System status, or system help reply
214
Help message
220
Service ready
221
Service closing transmission channel
250
Requested mail action okay, completed
251
User not local; will forward to
354
Start mail input; end with “.”
421
Service not available, closing transmission channel
450
Requested mail action not taken: mailbox unavailable
451
Requested action aborted: local error in processing
452
Requested action not taken: insufficient system storage
500
Syntax error, command unrecognized
501
Syntax error in parameters or arguments
502
Command not implemented
503
Bad sequence of commands
504
Command parameter not implemented
550
Requested action not taken: mailbox unavailable
551
User not local; please try <….>
552
Requested mail action aborted: exceeded storage allocation
553
Requested action not taken: mailbox name not allowed
554
Transaction failed

In fact, Windows Server 2016 still uses IIS 6 tools to host and manage the SMTP service. This is truly remarkable that a fundamental service like SMTP has not been changed for at least the last 13 years. The old adage of, ‘If it isn’t broken, do not fix it’ comes to mind.

 

Recommended contents

Can we create one Application Pool From Another Application Pool

What Is IIs Application Pool

How To Restart Iis From Command Prompt

What Are The Execution Permission For Virtual Directory

Tell us what are the main layers of IIS Architecture?

Tell us default IIs Port Numbers?

Guys please don’t forget to like and share the post.Also join our WindowsTechno Community and where you can post your queries/doubts and our experts will address them .

You can also share the feedback on below windows techno email id.

If you have any questions feel free to contact us on admin@windowstechno.com also follow us on facebook@windowstechno to get updates about new blog posts.

How useful was this post?

Click on a star to rate it!

As you found this post useful...

Follow us on social media!

Was this article helpful?
YesNo

Vipan Kumar

He is an Active Directory Engineer. He has been working in IT industry for more than 10 years. He is dedicated and enthusiastic information technology expert who always ready to resolve any technical problem. If you guys need any further help on subject matters, feel free to contact us on admin@windowstechno.com Please subscribe our Facebook page as well website for latest article. https://www.facebook.com/windowstechno
Back to top button