[quoted text, click to view] > I was wondering if anyone has done something along the line of monitoring
> all the IIS SMPT queues (folders) via a HTA page that refreshes ever 5
> minutes or so informing you as to the # of files and length of time they
> have been in the queue? I need for this service to be available via a web
> access where by keeping users off the physical server. I good starting
> point for doing this project would be very welcomed.
For general queue stats, the Perfmon counters SMTP Server\Remote Queue
Length and SMTP Server\Remote Retry Queue Length will prove useful.
The counters are accessible over WMI. Note that these counters are
slightly more effective than using a simple directory scan, because
they show the first-try and retry subqueues separately.
For more details about the length of time (<n>th retry) that messages
have been in the queue, my best advice is to read in the first line of
each message (should be the Received: header added by IIS SMTP, and
thus can be trusted), grab the submission timestamp from there, and do
some calculations based on your retry interval(s). No doubt, there is
more exact data available in the message's live properties stream, but
as this is almost totally undocumented, I wouldn't go down that path.
--Sandy
------------------------------------
Sanford Whiteman, Chief Technologist
Broadleaf Systems, a division of
Cypress Integrated Systems, Inc.