Log Files



In the hMailServer's Logs directory at RootDir/Logs, with the ListServer running, you will find a few kinds of log files:


hmailserver_2013-03-01.log

This log records all mail actions such as clients connecting to their imap folders, the delivery of mail, the exchange of protocols between servers.

hmailserver_awstats.log

This is a log of all the connections made - both to and from.  It helps you to analyze the traffic.

hmailserver_event_2013-03-01.log

This logs whatever happens in the EventHandlers.vbs file.  In other words, look here for any debugging you might do in the script.

ERROR_hmailserver_2013-03-01.log

This log contains information about when hMailServer encounters a script error, or a serious configuration error or a server error.  If you see a new one in your logs directory, check it out!



If you want to modify the format of the log files a little bit, you can adjust the spacing.  There are a set of variables toward the top of the EventsHandler.vbs script that you may modify.


There are double-quotation marks that appear in the log files.  These had been put there for backward compatibility with hMailServer version 4.  The ListServer Script would parse the log files in an attempt to retrieve email addresses.  This will be removed in future version of this script.


token

Output

Description

s0

"~"

Used for the first level messages

s1

"     "

Used for informational details

s2

"          "

Used for sub-details

a1

"-->"

Used to indicate an action that should be easier to notice

e1

"===ERROR===>"

Used to show an error

w1

"===WARNING=>"

Used to indicate a warning

d1

"-------------------------"

Used to separate Event Sections