smtp server IIS 6

If I have an smtp server with folders Queue, Badmail, Drop, Pickup

How can I determine if the emails are being sent?
Larry Bristersr. DeveloperAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

Schnell SolutionsConnect With a Mentor Systems Infrastructure EngineerCommented:
Not with the folders, as far as if the message is sent, after been queued it will not be saved anymore in none of them. Basically you will just see the message there if it is not send yet... Queue=Pending, Badmail=MessageError with the syntax, parameters or corruption, etc.

The only way to ensure that the message was delivered is reviewing the SMTP logs, there you will find the answer from the receiving messaging system indicating if it was successful or not.
If everything is ok, these folders should be empty.
Please see for detailed description of each folder.
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Larry Bristersr. DeveloperAuthor Commented:
If I do a Right CLick=Properties" on the Queue folder...
Get the files count
Do it again in 10 minutes

That should give me a sense that they ARE going out?

I realize we can never guarantee they actually get to a particular email address
Schnell SolutionsSystems Infrastructure EngineerCommented:
partially and 'probably' yes. If they are not in the queue any longer it means that the SMTP service stopped processing them. However, if something abnormal happened, then they will be in other folder, such as Badmail (It should not be something common).
Larry Bristersr. DeveloperAuthor Commented:
But if there are 30,000 emails in the queue
And I check the file count 15 minutes apart
I SHOULD see that some have gone out
And any difference would be in comparing how much the bad mail went up?
Schnell SolutionsSystems Infrastructure EngineerCommented:
It is better to review the logs, Damjam put a detailed link about how to activate this feature.

These logs are difficult to read, specially if you want to get statistical information. In my case, when I want to get metrics of what is going on I use a microsoft tool called 'LogParser'. This tool can read the log files (even a group of them) and operate them as a database. Then, you can make queries and extract the desired data that you want... the only thing is that the LogParser is not very friendly, you need to know how to query using this tool.

There is an article with many examples here:
Schnell SolutionsConnect With a Mentor Systems Infrastructure EngineerCommented:
Yes, if you have many thousand emails in your queue, and then you see that the amount is reduced. It means that your messages where delivered to a destination SMTP service.

And... normally if everything is ok you should not have messages on badmail, you will just need to be aware that it is a possibility.
Larry Bristersr. DeveloperAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.