

Type the following command at a shell prompt: # chown lighttpd:lighttpd /home/lighttpd/theos.in/stats/awstats Step 4: Generate stats # mkdir -p /home/lighttpd/theos.in/stats/awstats Set this value to the directory where you want AWStats to save its database and working files into.

All those files are written in the directory defined by the “DirData” parameter.
#Hmailserver awstats log analyzer full#
A full path to your log file /var/log/lighttpd/theos.in/access.log LogFile : Defines the web, ftp or mail server log file to analyze.LogFile="/var/log/lighttpd/theos.in/access.log"ĭirData="/home/lighttpd/theos.in/stats/awstats" Make a copy of default configuration file as : # /etc/init.d/lighttpd restart Step # 3: Configure domain "/awstats/" => "/usr/local/awstats/wwwroot/cgi-bin/",

"/awstatsicons" => "/usr/local/awstats/wwwroot/icon/", "/awstatscss" => "/usr/local/awstats/wwwroot/css/", Open nf file and configure perl cgi access (see tutorial for more info):Īppend following configuration directive: alias.url = ( /home/lighttpd//stats/awstats/ : Directory to store awstats data files./home/lighttpd//http/ : Web root for your domain./var/log/lighttpd//access.log : Web server access log file./usr/local/awstats/wwwroot/cgi-bin/ : Main program directory./etc/awstats/ – Configuration file for all your domains./usr/local/awstats/wwwroot/ – Default installtion directory.# rpm -ivh Important Configuration Files Visit project web site to grab latest stable version. But I can only specify one domain in SiteDomain, even though I host several domains on my machine.You can easily configure awstats under Lighttpd web server. If I specify a SiteDomain in the AWStats configuration, emails from this domain is shown as "Local" in the statistics. What I can't figure out is how AWStats determines whether an sender is local or external. If you check the sample statistics, it splits statistics for senders & receivers in two groups, Local & External. This would have the effect that the SMTP Error codes never shows error codes given by hMailServer - only error codes giving by the receiving servers.īut then email from external servers to users on the hMailServer machine wouldn't be logged at all, which would be very confusing as well.

Not when it receives messages from other servers. So my best bet right now is that hMailServer should only log when it sends messages to other servers. For example, the SMTP Error codes statistics would contain error codes both from hMailServer, and from some external server. If hMailServer would count both received / sent and put them both in the Mail succesfully sent column, it would be very confusing. If you look on the statistics, it counts Mail successfully sent but there doesn't seem to be a mail succesfully received. I've already managed to create a log which AWStats can parse.Īnyway, there's still a couple of things that I can't figure out.ĪWStats seems to be made only for outgoing SMTP traffic, not incoming. I think we're misunderstanding eachother. That's how the Apache logs work anyway.Īs for the log format, I played with AWStats and hMail logs a while back trying to figure a way to make it work, and I believe it requires a one line detail of the mail action performed (not like hMail currently where there are multiple lines) I could be wrong but that was my impression. I *think* that it is not necessary to delete the file after parsing (unless it is just too darn big) If I remember correctly, AWStats will remember it's place in the log file and pick up from there the next time.
#Hmailserver awstats log analyzer update#
So when you want to update your statistics, you take a copy of the file, delete the original, parse the statistics in the copy, and then delete the copy. If you check this, hMailServer will create a log file with a fixed name (hmailserver_awstats.log) which awstats records will be written to. Martin wrote:Perhaps it would be a better idéa to add a checkbox on the logging page named "Enable AWStats log".
