I have found an loginscript that reports error to an administrator in case something goes wrong.
That script uses postie.exe

You can find it here : http://www.infradig.com/infradig/index.shtml

I hope this is what you are looking for

regards
broekkie